Documentation
¶
Index ¶
- Constants
- func AddOutputFlag(flags *pflag.FlagSet)
- func IsJsonOutput() bool
- func NewCmdOrg() *cobra.Command
- func PrintJson(data interface{})
- func SearchAllSubscriptionsByOrg(orgID string, status string, managedOnly bool) ([]*accountsv1.Subscription, error)
- func SearchSubscriptions(orgId string, status string) ([]*accountsv1.Subscription, error)
- type AWSAccountItems
- type Account
- type AccountItem
- type AccountItems
- type ClusterInfo
- type Customer
- type CustomerItems
- type Label
- type LabelItems
- type OrgItems
- type Organization
- type UserItems
Constants ¶
View Source
const ( USER_SEARCH = 1 EBS_SEARCH = 2 )
View Source
const (
ServiceLogDaysSince = 30
)
View Source
const (
StatusActive = "Active"
)
Variables ¶
This section is empty.
Functions ¶
func AddOutputFlag ¶
func IsJsonOutput ¶
func IsJsonOutput() bool
func SearchAllSubscriptionsByOrg ¶ added in v0.18.0
func SearchAllSubscriptionsByOrg(orgID string, status string, managedOnly bool) ([]*accountsv1.Subscription, error)
func SearchSubscriptions ¶ added in v0.18.0
func SearchSubscriptions(orgId string, status string) ([]*accountsv1.Subscription, error)
Types ¶
type AWSAccountItems ¶
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 ClusterInfo ¶ added in v0.18.0
type ClusterInfo struct { Name string Version string ID string CloudProvider string Plan string NodeCount float64 ServiceLogs []*v1.LogEntry PdAlerts map[string][]pd.Incident JiraIssues []jira.Issue LimitedSupportReasons []*cmv1.LimitedSupportReason }
func Context ¶ added in v0.18.0
func Context(orgId string) ([]ClusterInfo, error)
type CustomerItems ¶
type CustomerItems struct {
Customers []Customer `json:"items"`
}
type LabelItems ¶
type LabelItems struct {
Labels []Label `json:"items"`
}
type OrgItems ¶
type OrgItems struct {
Orgs []Organization `json:"items"`
}
type Organization ¶
Click to show internal directories.
Click to hide internal directories.