awskms

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2016 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AliasPrefix is the prefix of all KMS Key Aliases.
	AliasPrefix = "alias/" + shared.ProgName + "-"

	// GrantPrefix is the prefix of all KMS Grant Names.
	GrantPrefix = shared.ProgName + "-"
)

Variables

This section is empty.

Functions

func NewKmsDeprovision

func NewKmsDeprovision(c *kingpin.CmdClause) shared.Command

NewKmsDeprovision configures the flags for kmsDeprovision.

func NewKmsEditKeyPolicy

func NewKmsEditKeyPolicy(c *kingpin.CmdClause) shared.Command

NewKmsEditKeyPolicy configures the flags for kmsEditKeyPolicy.

func NewKmsGrantsCreate

func NewKmsGrantsCreate(c *kingpin.CmdClause) shared.Command

NewKmsGrantsCreate constructs the command to create a grant.

func NewKmsGrantsList

func NewKmsGrantsList(c *kingpin.CmdClause) shared.Command

NewKmsGrantsList constructs the command to list grants.

func NewKmsGrantsRetire

func NewKmsGrantsRetire(c *kingpin.CmdClause) shared.Command

NewKmsGrantsRetire constructs the command to retire grants.

func NewKmsInit

func NewKmsInit(c *kingpin.CmdClause, keyCloudformationTemplate string) shared.Command

NewKmsInit configures the command to configure AWS.

Types

type KmsGetCallerIdentity

type KmsGetCallerIdentity struct{}

KmsGetCallerIdentity prints AWS client configuration info.

func (*KmsGetCallerIdentity) Run

func (w *KmsGetCallerIdentity) Run() error

Run prints the results of STS GetCallerIdentity.

type MultiRegionKey

type MultiRegionKey struct {
	Policy string
	// contains filtered or unexported fields
}

MultiRegionKey represents a collection of KMS Keys that are operated on simultaneously.

func NewMultiRegionKey

func NewMultiRegionKey(aliasName string, regions []string, forceRegion string) (*MultiRegionKey, error)

NewMultiRegionKey constructs a MultiRegionKey.

func (*MultiRegionKey) AddGrant

AddGrant adds a grant to all of the underlying regions. Returns a map of region -> grant.

func (*MultiRegionKey) GetGrantDetails

func (m *MultiRegionKey) GetGrantDetails() (map[string][]*kms.GrantListEntry, error)

GetGrantDetails returns a list of grants for each region.

func (*MultiRegionKey) RetireGrant

func (m *MultiRegionKey) RetireGrant(name string) error

RetireGrant retires a grant in all regions.

func (*MultiRegionKey) SetKeyPolicy

func (m *MultiRegionKey) SetKeyPolicy(policy string) error

SetKeyPolicy sets a new Key Policy.

Jump to

Keyboard shortcuts

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