Documentation
¶
Index ¶
- func BuildBlockAdapter(ctx context.Context, statsCollector stats.Collector, c config.AdapterConfig, ...) (block.Adapter, error)
- func BuildGSClient(ctx context.Context, params params.GS) (*storage.Client, error)
- func BuildS3Client(ctx context.Context, params params.S3) (*s3.Client, error)
- func BuildSingleGSAdapter(ctx context.Context, params params.GS, adapterOpts ...gs.AdapterOption) (*gs.Adapter, error)
- type AdapterOptions
- type BuildOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBlockAdapter ¶
func BuildBlockAdapter(ctx context.Context, statsCollector stats.Collector, c config.AdapterConfig, opts ...BuildOption) (block.Adapter, error)
func BuildGSClient ¶ added in v0.65.0
func BuildS3Client ¶ added in v0.65.0
Types ¶
type AdapterOptions ¶ added in v1.54.0
type AdapterOptions struct {
Local []func(*local.Adapter)
S3 []s3a.AdapterOption
GS []gs.AdapterOption
}
AdapterOptions holds options for each adapter type that supports options
type BuildOption ¶ added in v1.54.0
type BuildOption func(*AdapterOptions)
BuildOption is a function that modifies the adapter options
func WithAdapterOptions ¶ added in v1.54.0
func WithAdapterOptions(opts AdapterOptions) BuildOption
WithAdapterOptions returns a BuildOption that sets adapter-specific options
Click to show internal directories.
Click to hide internal directories.