s3

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyTemplate

func ApplyTemplate(policy string, params PolicyTemplateParams) (string, error)

func IsNotFound

func IsNotFound(err error) bool

Types

type Client

type Client interface {
	Prune(ctx context.Context, region, bucket string) error
	SetBucketPolicy(ctx context.Context, region, bucketName, policy string) error
	GetBucketPolicy(ctx context.Context, region, bucketName string) (string, error)
}

type ClientS3

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

func New

func New(
	cache cache.Cache,
	s3AccessKey, s3SecretKey string,
	s3SSL bool,
) *ClientS3

func (*ClientS3) GetBucketPolicy

func (c *ClientS3) GetBucketPolicy(ctx context.Context, region, bucket string) (string, error)

func (*ClientS3) Prune

func (c *ClientS3) Prune(ctx context.Context, region, bucket string) error

func (*ClientS3) SetBucketPolicy

func (c *ClientS3) SetBucketPolicy(ctx context.Context, region, bucket, policy string) error

type PolicyTemplateParams

type PolicyTemplateParams struct {
	BucketName string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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