Documentation
¶
Index ¶
- func Compress(files []string) io.Reader
- func Decompress(ctx *context.Context, r io.Reader, out chan (*DecompressedFile)) error
- func DownloadLogs(ctx context.Context, settings *BucketSettings, filter *ListFilter, ...) error
- func HorseStapleToUUID(id string) (uuid.UUID, error)
- func ListLogBucketKeys(ctx context.Context, settings *BucketSettings, filter *ListFilter, ...) error
- func ParseDate(value string) (time.Time, error)
- func UUIDToHorseStaple(id uuid.UUID) string
- func UploadLogs(ctx context.Context, settings *BucketSettings, data *UploadData, ...) error
- type BucketSettings
- type Credentials
- type DecompressedFile
- type ListFilter
- type LogEntry
- type ProgressEvent
- type ReaderWithProgress
- type TokenRequest
- type UploadData
- type WriterWithProgress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
Decompress is broken this is all just WIP TODO(manuel, 2023-01-05): fix this, not sure if this is even really that needed
func DownloadLogs ¶
func DownloadLogs( ctx context.Context, settings *BucketSettings, filter *ListFilter, outputDirectory string, progressCh chan ProgressEvent, ) error
func ListLogBucketKeys ¶
func ListLogBucketKeys( ctx context.Context, settings *BucketSettings, filter *ListFilter, entryCh chan LogEntry, ) error
func UUIDToHorseStaple ¶
func UploadLogs ¶
func UploadLogs(ctx context.Context, settings *BucketSettings, data *UploadData, progressCh chan ProgressEvent) error
Types ¶
type BucketSettings ¶
type BucketSettings struct { // The AWS region that the bucket is in. Region string Bucket string Credentials *Credentials }
func (*BucketSettings) CreateSession ¶
func (us *BucketSettings) CreateSession() (*session.Session, error)
type Credentials ¶
type Credentials struct { AccessKeyID string `json:"access_key"` SecretAccessKey string `json:"secret_key"` SessionToken string `json:"session_token"` Expiration time.Time `json:"expiration"` }
func GetUploadCredentials ¶
func GetUploadCredentials(ctx context.Context, api string) (*Credentials, error)
type DecompressedFile ¶
type ListFilter ¶
type ProgressEvent ¶
type ReaderWithProgress ¶
type ReaderWithProgress struct {
// contains filtered or unexported fields
}
func NewReaderWithProgress ¶
func NewReaderWithProgress( reader io.ReadSeeker, progressCh chan ProgressEvent, totalBytes int64, stepName string, ) *ReaderWithProgress
type TokenRequest ¶
type TokenRequest struct {
AppId string `json:"app_id"`
}
type UploadData ¶
type WriterWithProgress ¶
type WriterWithProgress struct {
// contains filtered or unexported fields
}
func NewWriterWithProgress ¶
func NewWriterWithProgress( writer io.WriterAt, progressCh chan ProgressEvent, totalBytes int64, stepName string, ) *WriterWithProgress
Source Files
¶
Click to show internal directories.
Click to hide internal directories.