Documentation
¶
Index ¶
- type AWS
- func (a *AWS) GetDirectURL(oid string) string
- func (a *AWS) LoadManifest(ctx context.Context) ([]string, bool, error)
- func (a *AWS) OIDExists(ctx context.Context, oid string) (bool, error)
- func (a *AWS) PresignObject(ctx context.Context, oid string, ttl time.Duration) (string, time.Time, error)
- func (a *AWS) SaveManifest(ctx context.Context, oids []string) error
- func (a *AWS) UploadOID(ctx context.Context, oid string, body io.ReadCloser) error
- type AWSService
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 (*AWS) LoadManifest ¶ added in v0.4.0
func (*AWS) PresignObject ¶ added in v0.4.0
func (*AWS) SaveManifest ¶ added in v0.4.0
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 ¶
Click to show internal directories.
Click to hide internal directories.