config

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetStorageConfig

type AssetStorageConfig struct {
	Type   string
	Config static.Config
}

func (*AssetStorageConfig) UnmarshalJSON

func (c *AssetStorageConfig) UnmarshalJSON(data []byte) error

type NoStorage

type NoStorage struct{}

func (*NoStorage) CreateBucket

func (_ *NoStorage) CreateBucket(ctx context.Context, name, location string) error

func (*NoStorage) GetObject

func (_ *NoStorage) GetObject(ctx context.Context, bucketName, objectName string) (io.Reader, func() (*domain.AssetInfo, error), error)

func (*NoStorage) GetObjectInfo

func (_ *NoStorage) GetObjectInfo(ctx context.Context, bucketName, objectName string) (*domain.AssetInfo, error)

func (*NoStorage) GetObjectPresignedURL

func (_ *NoStorage) GetObjectPresignedURL(ctx context.Context, bucketName, objectName string, expiration time.Duration) (*url.URL, error)

func (*NoStorage) ListBuckets

func (_ *NoStorage) ListBuckets(ctx context.Context) ([]*domain.BucketInfo, error)

func (*NoStorage) ListObjectInfos

func (_ *NoStorage) ListObjectInfos(ctx context.Context, bucketName, prefix string, recursive bool) ([]*domain.AssetInfo, error)

func (*NoStorage) NewStorage

func (_ *NoStorage) NewStorage() (static.Storage, error)

func (*NoStorage) PutObject

func (_ *NoStorage) PutObject(ctx context.Context, bucketName, objectName, contentType string, object io.Reader, objectSize int64, createBucketIfNotExisting bool) (*domain.AssetInfo, error)

func (*NoStorage) RemoveBucket

func (_ *NoStorage) RemoveBucket(ctx context.Context, name string) error

func (*NoStorage) RemoveObject

func (_ *NoStorage) RemoveObject(ctx context.Context, bucketName, objectName string) error

func (*NoStorage) RemoveObjects

func (_ *NoStorage) RemoveObjects(ctx context.Context, bucketName, path string, recursive bool) error

Jump to

Keyboard shortcuts

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