adapter

package
v0.0.0-...-a53be28 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeYandexObjectStorageAdapter

type FakeYandexObjectStorageAdapter struct {
	// contains filtered or unexported fields
}

func (*FakeYandexObjectStorageAdapter) Create

func (*FakeYandexObjectStorageAdapter) Delete

func (*FakeYandexObjectStorageAdapter) List

type YandexObjectStorageAdapter

type YandexObjectStorageAdapter interface {
	Create(ctx context.Context, sdk *s3.S3, name string) error
	List(ctx context.Context, sdk *s3.S3) ([]*s3.Bucket, error)
	Delete(ctx context.Context, sdk *s3.S3, name string) error
}

func NewFakeYandexObjectStorageAdapter

func NewFakeYandexObjectStorageAdapter() YandexObjectStorageAdapter

func NewYandexObjectStorageAdapterSDK

func NewYandexObjectStorageAdapterSDK() (YandexObjectStorageAdapter, error)

type YandexObjectStorageAdapterSDK

type YandexObjectStorageAdapterSDK struct{}

func (*YandexObjectStorageAdapterSDK) Create

func (r *YandexObjectStorageAdapterSDK) Create(_ context.Context, sdk *s3.S3, name string) error

func (*YandexObjectStorageAdapterSDK) Delete

func (r *YandexObjectStorageAdapterSDK) Delete(_ context.Context, sdk *s3.S3, name string) error

func (*YandexObjectStorageAdapterSDK) List

Jump to

Keyboard shortcuts

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