sse

package
v7.0.28 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplySSEByDefault

type ApplySSEByDefault struct {
	KmsMasterKeyID string `xml:"KMSMasterKeyID,omitempty"`
	SSEAlgorithm   string `xml:"SSEAlgorithm"`
}

ApplySSEByDefault defines default encryption configuration, KMS or SSE. To activate KMS, SSEAlgoritm needs to be set to "aws:kms" Minio currently does not support Kms.

type Configuration

type Configuration struct {
	XMLName xml.Name `xml:"ServerSideEncryptionConfiguration"`
	Rules   []Rule   `xml:"Rule"`
}

Configuration is the default encryption configuration structure

func NewConfigurationSSEKMS

func NewConfigurationSSEKMS(kmsMasterKey string) *Configuration

NewConfigurationSSEKMS initializes a new SSE-KMS configuration

func NewConfigurationSSES3

func NewConfigurationSSES3() *Configuration

NewConfigurationSSES3 initializes a new SSE-S3 configuration

type Rule

type Rule struct {
	Apply ApplySSEByDefault `xml:"ApplyServerSideEncryptionByDefault"`
}

Rule layer encapsulates default encryption configuration

Jump to

Keyboard shortcuts

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