account

package
v2.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Permissions []string
	Policies    []Ref
}

type AccountInfo added in v2.10.0

type AccountInfo struct {
	Name        string
	AccountUUID string
}

func (AccountInfo) String added in v2.10.0

func (a AccountInfo) String() string

type Environment

type Environment struct {
	Name        string
	Permissions []string
	Policies    []Ref
}

type Group

type Group struct {
	ID                       string
	Name                     string
	Description              string
	FederatedAttributeValues []string
	Account                  *Account
	Environment              []Environment
	ManagementZone           []ManagementZone
	OriginObjectID           string
}

type GroupId

type GroupId = string

type ManagementZone

type ManagementZone struct {
	Environment    string
	ManagementZone string
	Permissions    []string
}

type Policy

type Policy struct {
	ID             string
	Name           string
	Level          PolicyLevel
	Description    string
	Policy         string
	OriginObjectID string
}

type PolicyId

type PolicyId = string

type PolicyLevel

type PolicyLevel = any // either PolicyLevelAccount or PolicyLevelEnvironment is allowed

type PolicyLevelAccount

type PolicyLevelAccount struct {
	Type string
}

type PolicyLevelEnvironment

type PolicyLevelEnvironment struct {
	Type        string
	Environment string
}

type Ref

type Ref interface {
	ID() string
}

type Reference

type Reference struct {
	Id string
}

func (Reference) ID

func (r Reference) ID() string

type Resources

type Resources struct {
	Policies map[PolicyId]Policy
	Groups   map[GroupId]Group
	Users    map[UserId]User
}

func NewAccountManagementResources

func NewAccountManagementResources() *Resources

type StrReference

type StrReference string

func (StrReference) ID

func (r StrReference) ID() string

type User

type User struct {
	Email  secret.Email
	Groups []Ref
}

type UserId

type UserId = string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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