store

package
v0.0.0-...-1f45d43 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFrontInvalidator

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

func (*CloudFrontInvalidator) Invalidate

func (i *CloudFrontInvalidator) Invalidate(ctx context.Context, paths []string) error

type Invalidator

type Invalidator interface {
	Invalidate(context.Context, []string) error
}

func NewCloudFrontInvalidator

func NewCloudFrontInvalidator(i *do.Injector) (Invalidator, error)

type S3Uploader

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

func (*S3Uploader) Upload

func (u *S3Uploader) Upload(ctx context.Context, params UploadParams) error

type UploadParams

type UploadParams struct {
	Name        string
	Data        []byte
	ContentType string
	Metadata    map[string]string
}

type Uploader

type Uploader interface {
	Upload(context.Context, UploadParams) error
}

func NewS3Uploader

func NewS3Uploader(i *do.Injector) (Uploader, error)

Jump to

Keyboard shortcuts

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