s3

package
v0.0.0-...-51e37ce Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache is a cache implementation that stores data in a S3 bucket.

func NewCache

func NewCache(opt *Option) (*Cache, error)

func (*Cache) Handler

func (c *Cache) Handler(ctx context.Context, req *protocol.ProgRequest, resp *protocol.ProgResponse) error

func (*Cache) KnownCommands

func (c *Cache) KnownCommands() ([]protocol.ProgCmd, error)

type Option

type Option struct {
	// AccessKey is the access key for S3.
	AccessKey string
	// SecretKey is the secret key for S3.
	SecretKey string
	// Endpoint is the endpoint for S3.
	Endpoint string
	// Bucket is the bucket for S3.
	Bucket string
	// Region is the region for S3.
	Region string
}

Option is the option for S3 cache.

Jump to

Keyboard shortcuts

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