glacier

package
v0.0.0-...-97c84cb Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveRetrievalOptions

type ArchiveRetrievalOptions struct {
	Tier RetrievalTier `` /* 481-byte string literal not displayed */

}

type Connection

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

func NewConnection

func NewConnection(cli Cli, vaultName, accountId string) Connection

func OpenConnection

func OpenConnection(cfg VaultConfig) (*Connection, error)

func (*Connection) AddInventoryToIndex

func (c *Connection) AddInventoryToIndex(idx index.Index) error

func (*Connection) CreateArchiveJob

func (*Connection) CreateInventoryJob

func (c *Connection) CreateInventoryJob() (*glacier.JobDescription, error)

func (*Connection) Delete

func (c *Connection) Delete(id string) error

func (*Connection) FindNewestInventoryJob

func (c *Connection) FindNewestInventoryJob() (*glacier.JobDescription, error)

func (*Connection) FindOrCreateArchiveJob

func (c *Connection) FindOrCreateArchiveJob(file model.IdentifiableHashedFile, options ArchiveRetrievalOptions) (*glacier.JobDescription, error)

func (*Connection) GetJobAwsOutput

func (c *Connection) GetJobAwsOutput(jobId string) (*glacier.GetJobOutputOutput, error)

func (*Connection) GetJobOutput

func (c *Connection) GetJobOutput(jobId string) ([]byte, error)

func (*Connection) InventoryContent

func (c *Connection) InventoryContent() (string, error)

func (*Connection) ListInventoryAllFiles

func (c *Connection) ListInventoryAllFiles() ([]model.IdentifiableHashedFile, error)

func (*Connection) ListInventoryNewestFiles

func (c *Connection) ListInventoryNewestFiles() (map[string]model.IdentifiableHashedFile, error)

func (*Connection) LoadContentFromGlacier

func (c *Connection) LoadContentFromGlacier(file model.IdentifiableHashedFile) (model.FileWithContent, error)

func (*Connection) Process

func (c *Connection) Process(committer model.ChangeCommitter, changes model.Changes) error

func (*Connection) Upload

func (c *Connection) Upload(file model.FileWithContent) (id string, err error)

type RetrievalTier

type RetrievalTier string
const (
	TierExpedited RetrievalTier = "Expedited"
	TierStandard  RetrievalTier = "Standard"
	TierBulk      RetrievalTier = "Bulk"
)

type VaultConfig

type VaultConfig struct {
	AccountId string `env:"ACCOUNT_ID" help:"AWS account id" required:"" group:"AWS Glacier"`
	RegionId  string `env:"REGION_ID" help:"AWS region" required:"" placeholder:"sl-bottom-0" group:"AWS Glacier"`
	VaultName string `env:"VAULT_NAME" help:"AWS Glacier VaultConfig" required:"" group:"AWS Glacier"`
	KeyId     string `env:"KEY_ID" help:"AWS Access Key Id" required:"" group:"AWS IAM"`
	KeySecret string `env:"KEY_SECRET" help:"AWS Access Key Secret" required:"" group:"AWS IAM"`
}

Directories

Path Synopsis
Package mock_glacier is a generated GoMock package.
Package mock_glacier is a generated GoMock package.

Jump to

Keyboard shortcuts

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