blob

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobClient

type BlobClient interface {
	Create(ctx context.Context, objectName string, reader io.Reader) error
	Read(ctx context.Context, objectName string) (io.Reader, error)
	List(ctx context.Context) <-chan interface{}
	Delete(ctx context.Context, objectName string) error
	Close() error
}

func CreateBlobClientFromConfig

func CreateBlobClientFromConfig(configFilePath string) (BlobClient, error)

type BlobStorageConfig

type BlobStorageConfig struct {
	Type   BlobStorageType `yaml:"type"`
	Config interface{}     `yaml:"config"`
}

type BlobStorageType

type BlobStorageType string
const (
	GCS BlobStorageType = "GCS"
	S3  BlobStorageType = "S3"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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