policy

package
v0.0.5-0...-3bd4ab3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: CC0-1.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 Condition

type Condition struct {
	Operator string
	Property string
	Value    []string
}

Condition ... holds an AWS policy condition

type Document

type Document struct {
	Version   string
	Statement []*Statement
}

Document ... is a generic structure that is used by UnmarshalPolicy

func Unmarshal

func Unmarshal(raw string) (*Document, error)

Unmarshal ... unmarshals a raw policy document

type Principal

type Principal struct {
	Type   string
	Values []string
}

Principal ... holds an AWS policy principal

type Statement

type Statement struct {
	Sid       string
	Effect    string
	Action    []string
	Resource  []string
	Principal *Principal
	Condition []*Condition
}

Statement ... is a generic structure to hold an AWS policy statement

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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