org

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USER_SEARCH = 1
	EBS_SEARCH  = 2
)

Variables

This section is empty.

Functions

func AddOutputFlag

func AddOutputFlag(flags *pflag.FlagSet)

func IsJsonOutput

func IsJsonOutput() bool

func NewCmdOrg

func NewCmdOrg() *cobra.Command

func PrintJson

func PrintJson(data interface{})

func SearchClusters

func SearchClusters(cmd *cobra.Command, args []string) error

Types

type AWSAccountItems

type AWSAccountItems struct {
	Accounts []*organizations.Child `json:"items"`
}

type Account

type Account struct {
	Organization Organization `json:"organization"`
}

type AccountItem

type AccountItem struct {
	Org Organization `json:"organization"`
}

type AccountItems

type AccountItems struct {
	AccountItems []AccountItem `json:"items"`
}

type Customer

type Customer struct {
	ID             string `json:"id"`
	OrganizationID string `json:"organization-id"`
	SKU            string `json:"sku"`
}

type CustomerItems

type CustomerItems struct {
	Customers []Customer `json:"items"`
}

type Label

type Label struct {
	ID    string `json:"id"`
	Key   string `json:"key"`
	Value string `json:"value"`
}

type LabelItems

type LabelItems struct {
	Labels []Label `json:"items"`
}

type OrgItems

type OrgItems struct {
	Orgs []Organization `json:"items"`
}

type Organization

type Organization struct {
	ID           string `json:"id"`
	ExternalID   string `json:"external_id"`
	Name         string `json:"name"`
	EBSAccoundID string `json:"ebs_account_id"`
	Created      string `json:"created_at"`
	Updated      string `json:"updated_at"`
}

type Subscription

type Subscription struct {
	ClusterID   string `json:"cluster_id"`
	DisplayName string `json:"display_name"`
	Status      string `json:"status"`
}

type SubscriptionItems

type SubscriptionItems struct {
	Subscriptions []Subscription `json:"items"`
}

type UserItems

type UserItems struct {
	Users []*userModel `json:"items"`
}

Jump to

Keyboard shortcuts

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