oss

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.2.6

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

func NewClient added in v0.2.6

func NewClient(credential jdauth.Credential, opts ...awsapi.Option) *Client

func (*Client) ListObjectsV2 added in v0.2.6

func (c *Client) ListObjectsV2(ctx context.Context, bucket, region, continuationToken string, maxKeys int) (ListObjectsV2Output, error)

type Driver

type Driver struct {
	Client       *api.Client
	Credential   jdauth.Credential
	Region       string
	ObjectClient *Client
}

func (*Driver) ListBuckets

func (d *Driver) ListBuckets(ctx context.Context) ([]schema.Storage, error)

func (*Driver) ListObjects added in v0.2.6

func (d *Driver) ListObjects(ctx context.Context, buckets map[string]string)

func (*Driver) ResolveBucketRegion added in v0.2.6

func (d *Driver) ResolveBucketRegion(ctx context.Context, bucket string) (string, error)

func (*Driver) TotalObjects added in v0.2.6

func (d *Driver) TotalObjects(ctx context.Context, buckets map[string]string)

type ListObjectsV2Output added in v0.2.6

type ListObjectsV2Output struct {
	Objects               []Object
	IsTruncated           bool
	NextContinuationToken string
}

type Object added in v0.2.6

type Object struct {
	Key  string
	Size int64
}

Jump to

Keyboard shortcuts

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