s3

package
v0.0.0-...-880cb89 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRetention = clues.New("missing ObjectLock configuration")

Functions

This section is empty.

Types

type Client

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

func New

func New(opt *Options) (*Client, error)

func (*Client) ListUntilAllFound

func (c *Client) ListUntilAllFound(
	ctx context.Context,
	wantedPrefixes []string,
	alsoFindDeleted bool,
) (map[string]ObjInfo, map[string]ObjInfo, error)

func (*Client) ObjectRetention

func (c *Client) ObjectRetention(
	ctx context.Context,
	obj ObjInfo,
) (*minio.RetentionMode, *time.Time, error)

type ObjInfo

type ObjInfo struct {
	Key     string
	Version string
}

type Options

type Options struct {
	BucketName string
	Prefix     string

	Endpoint       string
	DoNotUseTLS    bool
	DoNotVerifyTLS bool

	AccessKeyID     string
	SecretAccessKey string
	SessionToken    string

	Region string
}

Jump to

Keyboard shortcuts

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