Documentation
¶
Index ¶
- Variables
- func AppCommand() cli.Command
- func CatalogCommand() cli.Command
- func ClusterCommand() cli.Command
- func ContextCommand() cli.Command
- func DeleteCommand() cli.Command
- func FormatEndpoint(data interface{}) string
- func FormatIPAddresses(data interface{}) string
- func FormatJSON(data interface{}) (string, error)
- func GetClient(ctx *cli.Context) (*cliclient.MasterClient, error)
- func GetResourceType(c *cliclient.MasterClient, resource string) (string, error)
- func GlobalDNSCommand() cli.Command
- func InspectCommand() cli.Command
- func KubectlCommand() cli.Command
- func LoginCommand() cli.Command
- func Lookup(c *cliclient.MasterClient, name string, types ...string) (*ntypes.Resource, error)
- func MultiClusterAppCommand() cli.Command
- func NamespaceCommand() cli.Command
- func NodeCommand() cli.Command
- func ProjectCommand() cli.Command
- func PromptCommand() cli.Command
- func PsCommand() cli.Command
- func RandomLetters(n int) string
- func RandomName() string
- func RunCommand() cli.Command
- func SSHCommand() cli.Command
- func SettingsCommand() cli.Command
- func SimpleFormat(values [][]string) (string, string)
- func SplitOnColon(s string) []string
- func UpCommand() cli.Command
- func WaitCommand() cli.Command
- type AppData
- type CACertResponse
- type CatalogData
- type ClusterData
- type LoginData
- type MemberData
- type MultiClusterAppData
- type NamespaceData
- type NodeData
- type PSHolder
- type ProjectData
- type RoleTemplate
- type RoleTemplateBinding
- type TableWriter
- type TemplateData
- type VersionData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ManagementResourceTypes lists the types we use the management client for ManagementResourceTypes = []string{"cluster", "node", "project"} // ProjectResourceTypes lists the types we use the cluster client for ProjectResourceTypes = []string{"secret", "namespacedSecret", "workload"} // ClusterResourceTypes lists the types we use the project client for ClusterResourceTypes = []string{"persistentVolume", "storageClass", "namespace"} )
Functions ¶
func AppCommand ¶
func CatalogCommand ¶
func ClusterCommand ¶
func ContextCommand ¶
func DeleteCommand ¶
func FormatEndpoint ¶
func FormatEndpoint(data interface{}) string
func FormatIPAddresses ¶
func FormatIPAddresses(data interface{}) string
func FormatJSON ¶
func GetResourceType ¶
func GetResourceType(c *cliclient.MasterClient, resource string) (string, error)
GetResourceType maps an incoming resource type to a valid one from the schema
func GlobalDNSCommand ¶
func InspectCommand ¶ added in v0.1.0
func KubectlCommand ¶
func LoginCommand ¶
func MultiClusterAppCommand ¶
func NamespaceCommand ¶
func NodeCommand ¶
func ProjectCommand ¶
func PromptCommand ¶
func RandomLetters ¶
RandomLetters returns a string with random letters of length n
func RandomName ¶
func RandomName() string
func RunCommand ¶
func SSHCommand ¶
func SettingsCommand ¶
func SimpleFormat ¶
func SplitOnColon ¶
func WaitCommand ¶
Types ¶
type CACertResponse ¶
type CatalogData ¶
type CatalogData struct {
ID string
Catalog managementClient.Catalog
}
type ClusterData ¶
type LoginData ¶
type LoginData struct {
Project managementClient.Project
Index int
ClusterName string
}
type MemberData ¶
type MultiClusterAppData ¶
type MultiClusterAppData struct {
ID string
App managementClient.MultiClusterApp
Version string
Targets string
}
type NamespaceData ¶
type NamespaceData struct {
ID string
Namespace clusterClient.Namespace
}
type NodeData ¶
type NodeData struct {
ID string
Node managementClient.Node
Name string
Pool string
}
type ProjectData ¶
type ProjectData struct {
ID string
Project managementClient.Project
}
type RoleTemplate ¶
type RoleTemplateBinding ¶
type TableWriter ¶
type TableWriter struct {
HeaderFormat string
ValueFormat string
Writer *tabwriter.Writer
// contains filtered or unexported fields
}
func NewTableWriter ¶
func NewTableWriter(values [][]string, ctx *cli.Context) *TableWriter
func (*TableWriter) Close ¶
func (t *TableWriter) Close() error
func (*TableWriter) Err ¶
func (t *TableWriter) Err() error
func (*TableWriter) Write ¶
func (t *TableWriter) Write(obj interface{})
type TemplateData ¶ added in v0.4.0
type TemplateData struct {
ID string
Template managementClient.Template
Category string
}
type VersionData ¶
Click to show internal directories.
Click to hide internal directories.