workspace

package
v0.0.0-...-d0fd1eb Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegionWorkspaceTags

func GetRegionWorkspaceTags(instances []workspaces.Workspace, sess *session.Session) ([]workspaces.Tag, error)

func GetRegionWorkspaces

func GetRegionWorkspaces(sess *session.Session) ([]workspaces.Workspace, error)

GetRegionWorkspaces will take a session and pull all workspaces based on the region of the session

func WriteProfilesWorkspaces

func WriteProfilesWorkspaces(profileWorkspaces ProfilesWorkspaces, options utils.Ec2Options) error

Types

type AccountWorkspaces

type AccountWorkspaces []RegionWorkspaces

func GetAccountWorkspaces

func GetAccountWorkspaces(account utils.AccountInfo) (AccountWorkspaces, error)

GetAccountWorkspaces will take a profile and go through all regions to get all workspaces in the account

type ProfilesWorkspaces

type ProfilesWorkspaces []AccountWorkspaces

func GetProfilesWorkspaces

func GetProfilesWorkspaces(accounts []utils.AccountInfo) (ProfilesWorkspaces, error)

GetProfilesWorkspaces will return all the workspaces in all accounts of a given filename with a list of profiles in it

type RegionWorkspaces

type RegionWorkspaces struct {
	AccountId    string
	Region       string
	Profile      string
	Instances    []workspaces.Workspace
	InstanceTags []workspaces.Tag
}

type WorkspaceOptions

type WorkspaceOptions struct {
	Tags []string
}

Jump to

Keyboard shortcuts

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