Documentation
¶
Index ¶
- Variables
- type Cluster
- func (c *Cluster) Client() (*spaceclient.Client, error)
- func (c *Cluster) CreateWorkspace(name string) (*Workspace, error)
- func (c *Cluster) Domain() (string, error)
- func (c *Cluster) Kubectl(namespace, command string, args ...string) error
- func (c *Cluster) KubectlCmd(namespace, command string, args ...string) (*exec.Cmd, error)
- func (c *Cluster) Workspace() (*Workspace, error)
- func (c *Cluster) Workspaces() ([]Workspace, error)
- type Config
- func (c *Config) ClientDir() string
- func (c *Config) Cluster() (*Cluster, error)
- func (c *Config) ClusterClient() (*spaceclient.Client, error)
- func (c *Config) ClusterDir() string
- func (c *Config) Clusters() ([]Cluster, error)
- func (c *Config) DefaultClusterName() (string, error)
- func (c *Config) KubeconfigCache() string
- func (c *Config) SaveCluster(cluster *Cluster, validate bool) error
- func (c *Config) Validate() error
- func (c *Config) Workspace() (*Workspace, error)
- func (c *Config) WorkspaceClient() (*client.Client, error)
- type Workspace
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConfig = errors.New("no config found")
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { clientaccess.Info ID string `json:"id,omitempty"` Checksum string `json:"-"` Name string `json:"name,omitempty"` DefaultStackName string `json:"defaultStackName,omitempty"` DefaultWorkspaceName string `json:"defaultWorkspaceName,omitempty"` Default bool `json:"default,omitempty"` Config *Config `json:"-"` File string // contains filtered or unexported fields }
func ListClusters ¶
func (*Cluster) CreateWorkspace ¶
func (*Cluster) KubectlCmd ¶
func (*Cluster) Workspaces ¶
type Config ¶
type Config struct { Home string ClusterName string WorkspaceName string Debug bool Wait bool WaitTimeout int WaitState string ServerURL string Token string // contains filtered or unexported fields }
func (*Config) ClusterClient ¶
func (c *Config) ClusterClient() (*spaceclient.Client, error)
func (*Config) ClusterDir ¶
func (*Config) DefaultClusterName ¶
func (*Config) KubeconfigCache ¶
func (*Config) WorkspaceClient ¶
Click to show internal directories.
Click to hide internal directories.