s3

package
v0.0.0-...-e07045a Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: BSD-3-Clause, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	v1alpha1.S3StorageProvider
	// contains filtered or unexported fields
}

Provider is storage implementation of provider.Interface.

func NewProvider

func NewProvider(provider *v1alpha1.S3StorageProvider, credentials map[string]string) (*Provider, error)

NewProvider creates a new S3 (compatible) storage provider.

func (*Provider) Retrieve

func (p *Provider) Retrieve(key string) (io.ReadCloser, error)

Retrieve the given key from S3 storage service.

func (*Provider) Store

func (p *Provider) Store(key string, body io.ReadCloser) error

Store the given data at the given key.

Jump to

Keyboard shortcuts

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