s3

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpClient = HTTPClient{}
)

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient struct{}

type S3

type S3 struct {
	Id               string
	ActionID         string
	Name             string
	StorageBucket    string
	SecretRef        string
	CredentialType   string
	StorageVaultType string
	Location         string
	Region           string
	S3Session        *storage.S3
	// contains filtered or unexported fields
}

func NewS3Default

func NewS3Default(vault backupapi.StorageVault, actionID string, limitUpload, limitDownload int, backupClient *backupapi.Client) (*S3, error)

func (*S3) GetObject

func (s3 *S3) GetObject(key string) ([]byte, error)

func (*S3) HeadObject

func (s3 *S3) HeadObject(key string) (bool, string, error)

func (*S3) ID

func (s3 *S3) ID() (string, string)

func (*S3) PutObject

func (s3 *S3) PutObject(key string, data []byte) error

func (*S3) RefreshCredential

func (s3 *S3) RefreshCredential(credential storage_vault.Credential) error

func (*S3) Type

func (s3 *S3) Type() storage_vault.Type

func (*S3) VerifyObject

func (s3 *S3) VerifyObject(key string) (bool, bool, string, error)

Jump to

Keyboard shortcuts

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