Documentation
¶
Index ¶
- func PersistReportsToGCS(gcsClient Client, outputParams []ReportOutputParam, ...) error
- func WithCreateFileFunction(createFile func(name string) (io.WriteCloser, error)) clientOptions
- func WithGCSClientOptions(opts ...option.ClientOption) clientOptions
- func WithOpenFileFunction(openFile func(name string) (io.ReadCloser, error)) clientOptions
- type Client
- type ReportOutputParam
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PersistReportsToGCS ¶
func WithCreateFileFunction ¶
func WithCreateFileFunction(createFile func(name string) (io.WriteCloser, error)) clientOptions
WithCreateFileFunction sets the createFile function in gcsClient
func WithGCSClientOptions ¶ added in v1.429.0
func WithGCSClientOptions(opts ...option.ClientOption) clientOptions
WithGCSClientOptions sets the Google Cloud Storage client options
func WithOpenFileFunction ¶
func WithOpenFileFunction(openFile func(name string) (io.ReadCloser, error)) clientOptions
WithOpenFileFunction sets the openFile function in gcsClient
Types ¶
type Client ¶
type Client interface {
UploadFile(ctx context.Context, bucketID string, sourcePath string, targetPath string) error
DownloadFile(ctx context.Context, bucketID string, sourcePath string, targetPath string) error
ListFiles(ctx context.Context, bucketID string) ([]string, error)
Close() error
}
Client is an interface to mock gcsClient
func NewClientLegacy ¶ added in v1.429.0
NewClientLegacy is also still here because of integration tests
type ReportOutputParam ¶
Click to show internal directories.
Click to hide internal directories.