Documentation
¶
Overview ¶
Package restore provides archived object restore request types.
Package restore provides restore request types for archived objects.
Index ¶
- type Encryption
- type GlacierJobParameters
- type MetadataEntry
- type OutputLocation
- type RestoreRequest
- func (r *RestoreRequest) Normalize()
- func (r *RestoreRequest) SetDays(v int)
- func (r *RestoreRequest) SetDescription(v string)
- func (r *RestoreRequest) SetGlacierJobParameters(v GlacierJobParameters)
- func (r *RestoreRequest) SetOutputLocation(v OutputLocation)
- func (r *RestoreRequest) SetSelectParameters(v SelectParameters)
- func (r *RestoreRequest) SetTier(v TierType)
- func (r *RestoreRequest) SetType(v RestoreType)
- type RestoreType
- type S3
- type SelectParameters
- type Tag
- type Tagging
- type TierType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encryption ¶
type Encryption struct {
EncryptionType string `xml:"EncryptionType,omitempty"`
KMSContext string `xml:"KMSContext,omitempty"`
KMSKeyID string `xml:"KMSKeyId,omitempty"`
}
Encryption describes the server-side encryption for the restored object copy.
type GlacierJobParameters ¶
type GlacierJobParameters struct {
Tier TierType `xml:"Tier,omitempty"`
}
GlacierJobParameters represents the retrieval tier parameter.
type MetadataEntry ¶
type MetadataEntry struct {
Name string `xml:"Name,omitempty"`
Value string `xml:"Value,omitempty"`
}
MetadataEntry represents a metadata entry for restore output.
type OutputLocation ¶
OutputLocation holds properties of the copy of the archived object.
type RestoreRequest ¶
type RestoreRequest struct {
XMLName xml.Name `xml:"RestoreRequest"`
XMLNS string `xml:"xmlns,attr,omitempty"`
Type *RestoreType `xml:"Type,omitempty"`
Tier *TierType `xml:"Tier,omitempty"`
Days *int `xml:"Days,omitempty"`
GlacierJobParameters *GlacierJobParameters `xml:"GlacierJobParameters,omitempty"`
Description *string `xml:"Description,omitempty"`
SelectParameters *SelectParameters `xml:"SelectParameters,omitempty"`
OutputLocation *OutputLocation `xml:"OutputLocation,omitempty"`
}
RestoreRequest describes a restore object request.
func (*RestoreRequest) Normalize ¶
func (r *RestoreRequest) Normalize()
Normalize ensures required XML defaults.
func (*RestoreRequest) SetDays ¶
func (r *RestoreRequest) SetDays(v int)
SetDays sets the days parameter of the restore request.
func (*RestoreRequest) SetDescription ¶
func (r *RestoreRequest) SetDescription(v string)
SetDescription sets the description of the restore request.
func (*RestoreRequest) SetGlacierJobParameters ¶
func (r *RestoreRequest) SetGlacierJobParameters(v GlacierJobParameters)
SetGlacierJobParameters sets the GlacierJobParameters of the restore request.
func (*RestoreRequest) SetOutputLocation ¶
func (r *RestoreRequest) SetOutputLocation(v OutputLocation)
SetOutputLocation sets the properties of the copy of the archived object.
func (*RestoreRequest) SetSelectParameters ¶
func (r *RestoreRequest) SetSelectParameters(v SelectParameters)
SetSelectParameters sets SelectParameters of the restore select request.
func (*RestoreRequest) SetTier ¶
func (r *RestoreRequest) SetTier(v TierType)
SetTier sets the retrieval tier of the restore request.
func (*RestoreRequest) SetType ¶
func (r *RestoreRequest) SetType(v RestoreType)
SetType sets the type of the restore request.
type RestoreType ¶
type RestoreType string
RestoreType represents the restore request type.
const ( // RestoreSelect represents a select restore operation. RestoreSelect RestoreType = "SELECT" )
type S3 ¶
type S3 struct {
AccessControlList *acl.ACL `xml:"AccessControlPolicy,omitempty"`
BucketName string `xml:"BucketName,omitempty"`
Prefix string `xml:"Prefix,omitempty"`
CannedACL *string `xml:"CannedACL,omitempty"`
Encryption *Encryption `xml:"Encryption,omitempty"`
StorageClass *string `xml:"StorageClass,omitempty"`
Tagging *Tagging `xml:"Tagging,omitempty"`
UserMetadata *MetadataEntry `xml:"UserMetadata,omitempty"`
}
S3 holds properties of the restored object copy.
type SelectParameters ¶
type SelectParameters struct {
XMLName xml.Name `xml:"SelectParameters"`
ExpressionType s3select.QueryExpressionType `xml:"ExpressionType"`
Expression string `xml:"Expression"`
InputSerialization s3select.InputSerialization `xml:"InputSerialization"`
OutputSerialization s3select.OutputSerialization `xml:"OutputSerialization"`
}
SelectParameters holds the select request parameters.
type Tagging ¶
type Tagging struct {
TagSet []Tag `xml:"TagSet>Tag,omitempty"`
}
Tagging represents a tagging set.