cmd

package
v0.0.0-...-d1e1776 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketSSEConfig

type BucketSSEConfig struct {
	XMLNS   string    `xml:"xmlns,attr,omitempty"`
	XMLName xml.Name  `xml:"ServerSideEncryptionConfiguration"`
	Rules   []SSERule `xml:"Rule"`
}

BucketSSEConfig - represents default bucket encryption configuration

func ParseBucketSSEConfig

func ParseBucketSSEConfig(r io.Reader) (*BucketSSEConfig, error)

ParseBucketSSEConfig - Decodes given XML to a valid default bucket encryption config

type EncryptionAction

type EncryptionAction struct {
	Algorithm   SSEAlgorithm `xml:"SSEAlgorithm,omitempty"`
	MasterKeyID string       `xml:"KMSMasterKeyID,omitempty"`
}

EncryptionAction - for ApplyServerSideEncryptionByDefault XML tag

type SSEAlgorithm

type SSEAlgorithm string

SSEAlgorithm - represents valid SSE algorithms supported; currently only AES256 is supported

const (
	// AES256 is used with SSE-S3
	AES256 SSEAlgorithm = "AES256"
	// AWSKms is used with SSE-KMS
	AWSKms SSEAlgorithm = "aws:kms"
)

func (*SSEAlgorithm) MarshalXML

func (alg *SSEAlgorithm) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML - Marshals given SSE algorithm to valid XML

func (*SSEAlgorithm) UnmarshalXML

func (alg *SSEAlgorithm) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML - Unmarshals XML tag to valid SSE algorithm

type SSERule

type SSERule struct {
	DefaultEncryptionAction EncryptionAction `xml:"ApplyServerSideEncryptionByDefault"`
}

SSERule - for ServerSideEncryptionConfiguration XML tag

Jump to

Keyboard shortcuts

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