command

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

type CloudProvider interface {
	SetupEventStream(input *client.EventStreamConfig) error
	GetOrgTree() ([]*TreeNode, error)
	CreateNewRole(input *client.RoleCreationInfo) (arn string, externalID string, err error)
	DeleteRole(roleName, policyArn string)
}

CloudProvider for adding cloud account

type GetOrgTreeInput added in v0.0.21

type GetOrgTreeInput struct {
	AwsProfile     string
	AwsProfilePath string
	RoleArn        string
}

type Interface

type Interface interface {
	ListTeams() ([]*client.Team, error)
	ShowTeamByID(teamID string) (*client.Team, error)
	CreateTeam(teamName, teamDescripton string) (*client.Team, error)

	ListTokens() ([]*client.Token, error)
	ShowTokenByID(tokenID string) (*client.Token, error)
	DeleteTokenByID(tokenID string) error

	ListCloudAccounts(teamID string) ([]*client.CloudAccount, error)
	ShowCloudAccountByID(teamID, cloudID string) (*client.CloudAccount, error)
	CreateCloudAccount(input *client.CreateCloudAccountInput) (*client.CloudAccount, error)
	DeleteCloudAccountByID(teamID, cloudID string) error

	ShowResultObject(teamID, cloudID, level string) ([]*client.ResultObject, error)
	ShowResultRule(teamID, cloudID, level string) ([]*client.ResultRule, error)

	GetEventStreamConfig(teamID, cloudID string) (*client.EventStreamConfig, error)
	GetRoleCreationInfo(input *client.CreateCloudAccountInput) (*client.RoleCreationInfo, error)
}

Interface for Coreo client for mocking in tests

type OrgNode added in v0.0.21

type OrgNode struct {
	ID         string
	Name       string
	Type       string
	Properties map[string]string
}

OrgNode of account

type Organization added in v0.0.21

type Organization struct {
	ID            string
	MasterAccount *OrgNode
	Properties    map[string]string
}

Organization struct

type SetupEventStreamInput

type SetupEventStreamInput struct {
	AwsProfile     string
	AwsProfilePath string
	Config         *client.EventStreamConfig
}

SetupEventStreamInput is the input for event stream setup

type TreeNode added in v0.0.21

type TreeNode struct {
	Info     *OrgNode
	Parent   *TreeNode
	Children []*TreeNode
}

TreeNode is the fundamental element of an org tree

Jump to

Keyboard shortcuts

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