Versions in this module Expand all Collapse all v3 v3.2.0 Aug 11, 2017 v3.1.0 Jun 21, 2017 Changes in this version type ErrorCode + const ErrorCodeCancelled v3.0.0 May 15, 2017 Changes in this version + func ErrorEqual(first, second error) bool + func JobsErrorEqual(first, second error) bool + func MultipartErrorEqual(first, second error) bool + func MultipartUploadLimit(value int64) + func PartSize(value int64) + func WaitJobTime(value time.Duration) + type AWSCloud struct + AccountID string + Clock Clock + Glacier glacieriface.GlacierAPI + Logger log.Logger + VaultName string + func NewAWSCloud(logger log.Logger, config AWSConfig, debug bool) (*AWSCloud, error) + func (a *AWSCloud) Get(ctx context.Context, ids ...string) (map[string]string, error) + func (a *AWSCloud) List(ctx context.Context) ([]Backup, error) + func (a *AWSCloud) Remove(ctx context.Context, id string) error + func (a *AWSCloud) Send(ctx context.Context, filename string) (Backup, error) + type AWSConfig struct + AccessKeyID string + AccountID string + Region string + SecretAccessKey string + VaultName string + type AWSInventoryArchiveList []struct + func (a AWSInventoryArchiveList) Len() int + func (a AWSInventoryArchiveList) Less(i, j int) bool + func (a AWSInventoryArchiveList) Swap(i, j int) + type Backup struct + Checksum string + CreatedAt time.Time + ID string + Size int64 + VaultName string + type Clock interface + Now func() time.Time + type Cloud interface + Get func(ctx context.Context, ids ...string) (filenames map[string]string, err error) + List func(ctx context.Context) ([]Backup, error) + Remove func(ctx context.Context, id string) error + Send func(ctx context.Context, filename string) (Backup, error) + type Error struct + Code ErrorCode + Err error + ID string + func (e Error) Error() string + func (e Error) String() string + type ErrorCode string + const ErrorCodeArchiveInfo + const ErrorCodeComparingChecksums + const ErrorCodeCompleteMultipart + const ErrorCodeCopyingData + const ErrorCodeCreatingArchive + const ErrorCodeDecodingData + const ErrorCodeInitJob + const ErrorCodeInitMultipart + const ErrorCodeInitializingSession + const ErrorCodeJobComplete + const ErrorCodeJobFailed + const ErrorCodeOpeningArchive + const ErrorCodeRemovingArchive + const ErrorCodeSendingArchive + func (e ErrorCode) String() string + type JobsError struct + Code JobsErrorCode + Err error + Jobs []string + func (c JobsError) Error() string + func (c JobsError) String() string + type JobsErrorCode string + const JobsErrorCodeCancelled + const JobsErrorCodeJobNotFound + const JobsErrorCodeRetrievingJob + func (e JobsErrorCode) String() string + type MultipartError struct + Code MultipartErrorCode + Err error + Offset int64 + Size int64 + func (c MultipartError) Error() string + func (c MultipartError) String() string + type MultipartErrorCode string + const MultipartErrorCodeCancelled + const MultipartErrorCodeComparingChecksums + const MultipartErrorCodeReadingArchive + const MultipartErrorCodeSendingArchive + func (c MultipartErrorCode) String() string Other modules containing this package gopkg.in/rafaeljusto/toglacier.v2