models

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Account

type Account struct {
	Id               string
	Arn              string
	Email            string
	Name             string
	Status           string
	JoinedMethod     string
	JoinedTimestamp  string
	IsOrgMgmt        bool
	IsChildAccount   bool
	OrgMgmtAccountID string
	OrganizationID   string
}

func (*Account) MakeRelationships

func (a *Account) MakeRelationships() []schema.Relationship

type Organization

type Organization struct {
	Id                 string
	OrgId              string
	Arn                string
	MasterAccountArn   string
	MasterAccountId    string
	MasterAccountEmail string
	ChildAccounts      []Account
	MgmtAccount        Account
}

func (*Organization) MakeRelationships

func (o *Organization) MakeRelationships() []schema.Relationship

type Resource

type Resource struct {
	ARN string
}

type Role

type Role struct {
	Id                        string
	AccountID                 string
	ARN                       string
	Name                      string
	TrustsDoc                 policy.TrustPolicyDocument
	TrustedPrincipals         []TrustedPrincipal
	TrustedServices           []TrustedService
	TrustedFederatedProviders []TrustedFederatedProvider
	CanPrivEscToAdmin         string
	IsAdmin                   string
	IdValue                   string
	IsAdminP                  bool
	PathToAdminSameAccount    bool
	PathToAdminCrossAccount   bool
}

func (*Role) MakeEdges

func (a *Role) MakeEdges(GlobalGraph graph.Graph[string, string]) []schema.Relationship

func (*Role) MakeRelationships

func (a *Role) MakeRelationships() []schema.Relationship

func (*Role) MakeVertices

func (a *Role) MakeVertices(GlobalGraph graph.Graph[string, string])

type TrustedFederatedProvider

type TrustedFederatedProvider struct {
	TrustedFederatedProvider string
	ProviderShortName        string
	TrustedSubjects          string
}

type TrustedPrincipal

type TrustedPrincipal struct {
	TrustedPrincipal string
	ExternalID       string
	VendorName       string
}

type TrustedService

type TrustedService struct {
	TrustedService string
	AccountID      string
}

type User

type User struct {
	Id                string
	ARN               string
	Name              string
	IsAdmin           string
	CanPrivEscToAdmin string
	IdValue           string
}

func (*User) GenerateAttributes

func (a *User) GenerateAttributes() map[string]string

func (*User) MakeRelationships

func (a *User) MakeRelationships() []schema.Relationship

func (*User) MergeAttributes

func (a *User) MergeAttributes(other map[string]string)

Jump to

Keyboard shortcuts

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