factory

package
v1.74.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

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 BuildGSClient(ctx context.Context, params params.GS) (*storage.Client, error)

func BuildS3Client added in v0.65.0

func BuildS3Client(ctx context.Context, params params.S3) (*s3.Client, error)

func BuildSingleGSAdapter added in v1.71.0

func BuildSingleGSAdapter(ctx context.Context, params params.GS, adapterOpts ...gs.AdapterOption) (*gs.Adapter, error)

BuildSingleGSAdapter creates a single GS adapter

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL