policy

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(document Document) (string, error)

Print the document.

Types

type Conditions

type Conditions struct {
	StringEquals map[string]string `json:"StringEquals"`
}

Conditions which are part of a Document Statement.

type Document

type Document struct {
	Version   string      `json:"Version"`
	Statement []Statement `json:"Statement"`
}

Document for defining a policy.

type Statement

type Statement struct {
	Effect    string     `json:"Effect"`
	Action    []string   `json:"Action"`
	Resource  string     `json:"Resource"`
	Condition Conditions `json:"Condition"`
}

Statement which is part of a Document.

Jump to

Keyboard shortcuts

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