aws

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MPL-2.0 Imports: 29 Imported by: 107

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backend

func Backend() *backend

func Factory

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

Types

type PolicyDocument added in v1.5.0

type PolicyDocument struct {
	Version    string           `json:"Version"`
	Statements StatementEntries `json:"Statement"`
}

PolicyDocument represents an IAM policy document

type StatementEntries added in v1.5.0

type StatementEntries []interface{}

StatementEntries is a slice of statements that make up a PolicyDocument

func (*StatementEntries) UnmarshalJSON added in v1.5.0

func (se *StatementEntries) UnmarshalJSON(b []byte) error

UnmarshalJSON is defined here for StatementEntries because the Statement portion of an IAM Policy can either be a list or a single element, so if it's a single element this wraps it in a []interface{} so that it's easy to combine with other policy statements: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_statement.html

Directories

Path Synopsis
cmd
aws

Jump to

Keyboard shortcuts

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