cs

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(ctx context.Context) (*Client, error)

func (*Client) Attrs

func (*Client) List

func (*Client) Open

type Mock

type Mock struct {
	MockOpen  func(ctx context.Context, obj model.CloudStorageObject) (io.ReadCloser, error)
	MockAttrs func(ctx context.Context, obj model.CloudStorageObject) (*storage.ObjectAttrs, error)
	MockList  func(ctx context.Context, bucket types.CSBucket, query *storage.Query) interfaces.CSObjectIterator
}

func (*Mock) Attrs

func (*Mock) List

func (x *Mock) List(ctx context.Context, bucket types.CSBucket, query *storage.Query) interfaces.CSObjectIterator

func (*Mock) Open

type MockObjectIterator

type MockObjectIterator struct {
	MockNext func() (*storage.ObjectAttrs, error)
	Attrs    []*storage.ObjectAttrs
}

func (*MockObjectIterator) Next

Jump to

Keyboard shortcuts

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