Documentation
¶
Index ¶
- Variables
- type Cluster
- func (c *Cluster) Client() (*projectclient.Client, error)
- func (c *Cluster) CreateProject(name string) (*Project, 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) Project() (*Project, error)
- func (c *Cluster) Projects() ([]Project, error)
- type Config
- func (c *Config) ClientDir() string
- func (c *Config) Cluster() (*Cluster, error)
- func (c *Config) ClusterClient() (*projectclient.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) Project() (*Project, error)
- func (c *Config) ProjectClient() (*client.Client, error)
- func (c *Config) SaveCluster(cluster *Cluster, validate bool) error
- func (c *Config) Validate() error
- type Project
Constants ¶
This section is empty.
Variables ¶
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"`
DefaultProjectName string `json:"defaultProjectName,omitempty"`
Default bool `json:"default,omitempty"`
Config *Config `json:"-"`
File string `json:"-"`
// contains filtered or unexported fields
}
func (*Cluster) Client ¶
func (c *Cluster) Client() (*projectclient.Client, error)
func (*Cluster) Kubectl ¶
func (*Cluster) KubectlCmd ¶
type Config ¶
type Config struct {
Home string
ClusterName string
ProjectName 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() (*projectclient.Client, error)
Source Files
¶
- cluster.go
- cluster_client_info.go
- config.go
- file.go
- workspace.go
Click to show internal directories.
Click to hide internal directories.