services

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

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

func (*AWS) GetDirectURL added in v0.4.0

func (a *AWS) GetDirectURL(oid string) string

func (*AWS) LoadManifest added in v0.4.0

func (a *AWS) LoadManifest(ctx context.Context) ([]string, bool, error)

func (*AWS) OIDExists

func (a *AWS) OIDExists(ctx context.Context, oid string) (bool, error)

func (*AWS) PresignObject added in v0.4.0

func (a *AWS) PresignObject(ctx context.Context, oid string, ttl time.Duration) (string, time.Time, error)

func (*AWS) SaveManifest added in v0.4.0

func (a *AWS) SaveManifest(ctx context.Context, oids []string) error

func (*AWS) UploadOID

func (a *AWS) UploadOID(ctx context.Context, oid string, body io.ReadCloser) error

type AWSService

type AWSService interface {
	OIDExists(ctx context.Context, oid string) (bool, error)
	GetDirectURL(oid string) string
	PresignObject(ctx context.Context, oid string, ttl time.Duration) (url string, expiresAt time.Time, err error)
	UploadOID(ctx context.Context, oid string, body io.ReadCloser) error
	LoadManifest(ctx context.Context) (oids []string, bootstrapped bool, err error)
	SaveManifest(ctx context.Context, oids []string) error
}

func NewAWSService

func NewAWSService(ctx context.Context, bucket string, useAccelerate bool) (AWSService, error)

Jump to

Keyboard shortcuts

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