cmd

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 48 Imported by: 18

Documentation

Index

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 AppCommand() cli.Command

func CatalogCommand

func CatalogCommand() cli.Command

func ClusterCommand

func ClusterCommand() cli.Command

func ContextCommand

func ContextCommand() cli.Command

func DeleteCommand

func DeleteCommand() cli.Command

func FormatEndpoint

func FormatEndpoint(data interface{}) string

func FormatIPAddresses

func FormatIPAddresses(data interface{}) string

func FormatJSON

func FormatJSON(data interface{}) (string, error)

func GetClient

func GetClient(ctx *cli.Context) (*cliclient.MasterClient, error)

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 GlobalDNSCommand() cli.Command

func InspectCommand added in v0.1.0

func InspectCommand() cli.Command

func KubectlCommand

func KubectlCommand() cli.Command

func LoginCommand

func LoginCommand() cli.Command

func Lookup

func Lookup(c *cliclient.MasterClient, name string, types ...string) (*ntypes.Resource, error)

func MultiClusterAppCommand

func MultiClusterAppCommand() cli.Command

func NamespaceCommand

func NamespaceCommand() cli.Command

func NodeCommand

func NodeCommand() cli.Command

func ProjectCommand

func ProjectCommand() cli.Command

func PromptCommand

func PromptCommand() cli.Command

func PsCommand

func PsCommand() cli.Command

func RandomLetters

func RandomLetters(n int) string

RandomLetters returns a string with random letters of length n

func RandomName

func RandomName() string

func RunCommand

func RunCommand() cli.Command

func SSHCommand

func SSHCommand() cli.Command

func SettingsCommand

func SettingsCommand() cli.Command

func SimpleFormat

func SimpleFormat(values [][]string) (string, string)

func SplitOnColon

func SplitOnColon(s string) []string

func UpCommand

func UpCommand() cli.Command

func WaitCommand

func WaitCommand() cli.Command

Types

type AppData

type AppData struct {
	ID       string
	App      projectClient.App
	Catalog  string
	Template string
	Version  string
}

type CACertResponse

type CACertResponse struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type CatalogData

type CatalogData struct {
	ID      string
	Catalog managementClient.Catalog
}

type ClusterData

type ClusterData struct {
	ID       string
	Current  string
	Cluster  managementClient.Cluster
	Name     string
	Provider string
	Nodes    int
	CPU      string
	RAM      string
	Pods     string
}

type LoginData

type LoginData struct {
	Project     managementClient.Project
	Index       int
	ClusterName string
}

type MemberData

type MemberData struct {
	Name       string
	MemberType string
	AccessType string
}

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 PSHolder

type PSHolder struct {
	NameSpace string
	Name      string
	Type      string
	State     string
	Image     string
	Scale     string
}

type ProjectData

type ProjectData struct {
	ID      string
	Project managementClient.Project
}

type RoleTemplate

type RoleTemplate struct {
	ID          string
	Name        string
	Description string
}

type RoleTemplateBinding

type RoleTemplateBinding struct {
	ID      string
	User    string
	Role    string
	Created string
}

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

type VersionData struct {
	Current string
	Version string
}

Jump to

Keyboard shortcuts

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