Documentation ¶
Index ¶
- type ArchiveRetrievalOptions
- type Cli
- type Connection
- func (c *Connection) AddInventoryToIndex(idx index.Index) error
- func (c *Connection) CreateArchiveJob(file model.IdentifiableHashedFile, options ArchiveRetrievalOptions) (*glacier.JobDescription, error)
- func (c *Connection) CreateInventoryJob() (*glacier.JobDescription, error)
- func (c *Connection) Delete(id string) error
- func (c *Connection) FindNewestInventoryJob() (*glacier.JobDescription, error)
- func (c *Connection) FindOrCreateArchiveJob(file model.IdentifiableHashedFile, options ArchiveRetrievalOptions) (*glacier.JobDescription, error)
- func (c *Connection) GetJobAwsOutput(jobId string) (*glacier.GetJobOutputOutput, error)
- func (c *Connection) GetJobOutput(jobId string) ([]byte, error)
- func (c *Connection) InventoryContent() (string, error)
- func (c *Connection) ListInventoryAllFiles() ([]model.IdentifiableHashedFile, error)
- func (c *Connection) ListInventoryNewestFiles() (map[string]model.IdentifiableHashedFile, error)
- func (c *Connection) LoadContentFromGlacier(file model.IdentifiableHashedFile) (model.FileWithContent, error)
- func (c *Connection) Process(committer model.ChangeCommitter, changes model.Changes) error
- func (c *Connection) Upload(file model.FileWithContent) (id string, err error)
- type RetrievalTier
- type VaultConfig
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 Cli ¶
type Cli interface { DeleteArchive(input *glacier.DeleteArchiveInput) (*glacier.DeleteArchiveOutput, error) UploadArchive(input *glacier.UploadArchiveInput) (*glacier.ArchiveCreationOutput, error) ListJobs(input *glacier.ListJobsInput) (*glacier.ListJobsOutput, error) InitiateJob(input *glacier.InitiateJobInput) (*glacier.InitiateJobOutput, error) DescribeJob(input *glacier.DescribeJobInput) (*glacier.JobDescription, error) GetJobOutput(input *glacier.GetJobOutputInput) (*glacier.GetJobOutputOutput, error) }
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 (c *Connection) CreateArchiveJob(file model.IdentifiableHashedFile, options ArchiveRetrievalOptions) (*glacier.JobDescription, error)
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"` }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_glacier is a generated GoMock package.
|
Package mock_glacier is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.