Documentation
¶
Overview ¶
Package access is the manifest of what Dormeto needs in Google Cloud: the APIs, the custom roles, the predefined roles' permissions, the router's grants and, per `dormeto gcp` command, the permissions the operator needs by step. access.json is a byte for byte copy of router/gcp/access.json (a test compares them).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFeatures ¶
CheckFeatures is nil when every name is a feature, else an error naming the first that is not and the features there are.
func Commands ¶
func Commands() []string
Commands are the operator's commands in the manifest's order.
func Needs ¶
Needs are the permissions of all of a command's steps, sorted, without duplicates (nil for an unknown command).
Types ¶
type Condition ¶
Condition is an IAM condition, its placeholders ({project}, {projectNumber}, {region}, {database}) not yet filled.
type Feature ¶
type Feature struct {
APIs []string `json:"apis"`
Roles map[string]Role `json:"roles"`
Router []Grant `json:"router"`
Operator map[string]map[string][]string `json:"operator"`
}
Feature is an optional access (`--with`): its APIs, custom roles, the router's grants and, per `dormeto gcp` command, the permissions the operator needs for it.
type Grant ¶
type Grant struct {
Role string `json:"role"`
On string `json:"on"`
Condition *Condition `json:"condition,omitempty"`
}
Grant is one of the router's grants: a role on a resource kind.
type Manifest ¶
type Manifest struct {
Version int `json:"version"`
APIs []string `json:"apis"`
Roles map[string]Role `json:"roles"`
Predefined map[string][]string `json:"predefined"`
Router []Grant `json:"router"`
Features map[string]Feature `json:"features"`
// contains filtered or unexported fields
}
Manifest is access.json.