Documentation ¶
Index ¶
- type AppBaseCreateOptions
- type AppCreateOptions
- type BaseListOptions
- type ChartGetOptions
- type ChartListOptions
- type ClusterAddNodesOptions
- type ClusterBaseOptions
- type ClusterCreateOptions
- type ClusterDeleteNodesOptions
- type ClusterDeleteOptions
- type ClusterDeployOptions
- type ClusterImportOptions
- type ClusterKubeconfigOptions
- type ClusterListOptions
- type ClusterUpdateOptions
- type DeploymentCreateFromFileOptions
- type DeploymentCreateOptions
- type IdentOptions
- type IdentsOptions
- type K8sSupportVersion
- type NamespaceOptions
- type NamespaceResourceDeleteOptions
- type NamespaceResourceGetOptions
- type NamespaceResourceListOptions
- type NamespaceWithClusterOptions
- type NodeConfigDockerRegistryOptions
- type NodeCreateOptions
- type NodeListOptions
- type ReleaseCreateOptions
- type ReleaseCreateUpdateOptions
- type ReleaseDeleteOptions
- type ReleaseListOptions
- type ReleaseUpgradeOptions
- type RepoCreateOptions
- type RepoGetOptions
- type RepoListOptions
- type RepoUpdateOptions
- type ResourceDeleteOptions
- type ResourceGetOptions
- type ResourceListOptions
- type TillerCreateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppBaseCreateOptions ¶
type AppBaseCreateOptions struct { NamespaceWithClusterOptions ReleaseCreateUpdateOptions Name string `help:"Release name, If unspecified, it will autogenerate one for you"` }
type AppCreateOptions ¶
type AppCreateOptions struct { AppBaseCreateOptions ChartName string `help:"Helm release app chart name, e.g yunion/meter, yunion/monitor-stack"` }
type BaseListOptions ¶
type BaseListOptions struct { Limit int `default:"20" help:"Page limit"` Offset int `default:"0" help:"Page offset"` Name string `help:"Search by name"` }
func (BaseListOptions) Params ¶
func (o BaseListOptions) Params() *jsonutils.JSONDict
type ChartGetOptions ¶
type ChartGetOptions struct { REPO string `help:"Repo of the chart"` NAME string `help:"Chart name"` Version string `help:"Chart version"` }
func (ChartGetOptions) Params ¶
func (o ChartGetOptions) Params() *jsonutils.JSONDict
type ChartListOptions ¶
type ChartListOptions struct { BaseListOptions Name string `help:"Chart name"` Repo string `help:"Repository name"` RepoUrl string `help:"Repository url"` AllVersion bool `json:"Get Chart all history versions"` Keyword string `json:"Chart keyword"` }
func (ChartListOptions) Params ¶
func (o ChartListOptions) Params() *jsonutils.JSONDict
type ClusterAddNodesOptions ¶
type ClusterAddNodesOptions struct { IdentOptions NodeConfig []string `help:"Node spec, 'host:[roles]' e.g: --node-config host01:controlplane,etcd,worker --node-config host02:worker"` AutoDeploy bool `help:"Auto deploy"` }
type ClusterBaseOptions ¶
type ClusterBaseOptions struct {
Cluster string `default:"$K8S_CLUSTER|default" help:"Kubernetes cluster name"`
}
func (ClusterBaseOptions) Params ¶
func (o ClusterBaseOptions) Params() *jsonutils.JSONDict
type ClusterCreateOptions ¶
type ClusterCreateOptions struct { K8sSupportVersion NAME string `help:"Name of cluster"` Mode string `help:"Cluster mode" choices:"internal"` InfraImage string `help:"Cluster kubelet infra container image"` Cidr string `help:"Cluster service CIDR, e.g. 10.43.0.0/16"` Domain string `help:"Cluster pod domain, e.g. cluster.local"` }
func (ClusterCreateOptions) Params ¶
func (o ClusterCreateOptions) Params() *jsonutils.JSONDict
type ClusterDeleteNodesOptions ¶
type ClusterDeleteNodesOptions struct { IdentOptions Node []string `help:"Node id or name"` }
type ClusterDeleteOptions ¶
type ClusterDeleteOptions struct {
IdentsOptions
}
type ClusterDeployOptions ¶
type ClusterDeployOptions struct { IdentOptions Force bool `help:"Force deploy"` }
func (ClusterDeployOptions) Params ¶
func (o ClusterDeployOptions) Params() *jsonutils.JSONDict
type ClusterImportOptions ¶
type ClusterKubeconfigOptions ¶
type ClusterKubeconfigOptions struct { IdentOptions Directly bool `help:"Get directly connect kubeconfig"` }
func (ClusterKubeconfigOptions) Params ¶
func (o ClusterKubeconfigOptions) Params() *jsonutils.JSONDict
type ClusterListOptions ¶
type ClusterListOptions struct {
options.BaseListOptions
}
func (ClusterListOptions) Params ¶
func (o ClusterListOptions) Params() *jsonutils.JSONDict
type ClusterUpdateOptions ¶
type ClusterUpdateOptions struct { NAME string `help:"Name of cluster"` K8sSupportVersion }
func (ClusterUpdateOptions) Params ¶
func (o ClusterUpdateOptions) Params() *jsonutils.JSONDict
type DeploymentCreateFromFileOptions ¶
type DeploymentCreateFromFileOptions struct { NamespaceResourceGetOptions FILE string `help:"K8s resource YAML or JSON file"` }
type DeploymentCreateOptions ¶
type DeploymentCreateOptions struct { NamespaceWithClusterOptions NAME string `help:"Name of deployment"` Image string `help:"The image for the container to run"` Replicas int64 `help:"Number of replicas for pods in this deployment"` RunAsPrivileged bool `help:"Whether to run the container as privileged user"` Label []string `help:"Labels to apply to the pod(s), e.g. 'env=prod'"` Env []string `help:"Environment variables to set in container"` Port []string `help:"Port for the service that is created, format is <protocol>:<service_port>:<container_port> e.g. tcp:80:3000"` Net string `help:"Network config, e.g. net1, net1:10.168.222.171"` Mem int `help:"Memory request MB size"` Cpu float64 `help:"Cpu request cores"` }
type IdentOptions ¶
type IdentOptions struct {
ID string `help:"ID or name of the model"`
}
type IdentsOptions ¶
type IdentsOptions struct {
ID []string `help:"ID of models to operate"`
}
type K8sSupportVersion ¶
type K8sSupportVersion struct {
K8sVersion string `help:"Cluster kubernetes components version" choices:"v1.10.5|v1.11.3|v1.12.0"`
}
type NamespaceOptions ¶
type NamespaceOptions struct {
Namespace string `help:"Namespace of this resource"`
}
func (NamespaceOptions) Params ¶
func (o NamespaceOptions) Params() *jsonutils.JSONDict
type NamespaceResourceDeleteOptions ¶
type NamespaceResourceDeleteOptions struct { ResourceDeleteOptions NamespaceOptions }
func (NamespaceResourceDeleteOptions) Params ¶
func (o NamespaceResourceDeleteOptions) Params() *jsonutils.JSONDict
type NamespaceResourceGetOptions ¶
type NamespaceResourceGetOptions struct { ResourceGetOptions NamespaceOptions }
func (NamespaceResourceGetOptions) Params ¶
func (o NamespaceResourceGetOptions) Params() *jsonutils.JSONDict
type NamespaceResourceListOptions ¶
type NamespaceResourceListOptions struct { ResourceListOptions Namespace string `help:"Namespace of this resource"` AllNamespace bool `help:"Show resource in all namespace"` }
func (NamespaceResourceListOptions) Params ¶
func (o NamespaceResourceListOptions) Params() *jsonutils.JSONDict
type NamespaceWithClusterOptions ¶
type NamespaceWithClusterOptions struct { NamespaceOptions ClusterBaseOptions }
func (NamespaceWithClusterOptions) Params ¶
func (o NamespaceWithClusterOptions) Params() *jsonutils.JSONDict
type NodeConfigDockerRegistryOptions ¶
type NodeConfigDockerRegistryOptions struct { IdentsOptions RegistryMirror []string `help:"Docker registry mirrors, e.g. 'https://registry.docker-cn.com'"` InsecureRegistry []string `help:"Docker insecure registry"` }
func (NodeConfigDockerRegistryOptions) Params ¶
func (o NodeConfigDockerRegistryOptions) Params() jsonutils.JSONObject
type NodeCreateOptions ¶
type NodeCreateOptions struct { CLUSTER string `help:"Cluster id"` Etcd bool `help:"Etcd role"` Controlplane bool `help:"Controlplane role"` Worker bool `help:"Worker role"` AllRole bool `help:"All roles"` HostnameOverride string `help:"Worker node overrided hostname"` Host string `help:"Yunion host server name or id"` Name string `help:"Name of node"` RegistryMirror []string `help:"Docker registry mirrors, e.g. 'https://registry.docker-cn.com'"` InsecureRegistry []string `help:"Docker insecure registry"` }
func (NodeCreateOptions) Params ¶
func (o NodeCreateOptions) Params() *jsonutils.JSONDict
type NodeListOptions ¶
type NodeListOptions struct { options.BaseListOptions Cluster string `help:"Filter by cluster"` }
type ReleaseCreateOptions ¶
type ReleaseCreateOptions struct { AppBaseCreateOptions CHARTNAME string `help:"Helm chart name, e.g stable/etcd"` }
type ReleaseCreateUpdateOptions ¶
type ReleaseCreateUpdateOptions struct { Values string `help:"Specify values in a YAML file (can specify multiple)" short-token:"f"` Version string `help:"Specify the exact chart version to install. If not specified, latest version installed"` //Set []string `help:"set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)"` DryRun bool `help:"Simulate an install"` Details bool `help:"Show release deploy details, include kubernetes created resources"` Timeout int64 `help:"Time in seconds to wait for any individual kubernetes operation (like Jobs for hooks)" default:"600"` }
type ReleaseDeleteOptions ¶
type ReleaseDeleteOptions struct { ClusterBaseOptions NAME string `help:"Release instance name"` }
type ReleaseListOptions ¶
type ReleaseListOptions struct { NamespaceResourceListOptions Name string `help:"Search by name"` Filter string `help:"Filter, split by space"` Admin bool `help:"Admin to show all namespace releases"` Deployed bool `help:"Show deployed status releases"` Deleted bool `help:"Show deleted status releases"` Deleting bool `help:"Show deleting status releases"` Failed bool `help:"Show failed status releases"` Superseded bool `help:"Show superseded status releases"` Pending bool `help:"Show pending status releases"` }
func (ReleaseListOptions) Params ¶
func (o ReleaseListOptions) Params() *jsonutils.JSONDict
type ReleaseUpgradeOptions ¶
type ReleaseUpgradeOptions struct { ClusterBaseOptions ReleaseCreateUpdateOptions NAME string `help:"Release instance name"` CHARTNAME string `help:"Helm chart name, e.g stable/etcd"` ReuseValues bool `` /* 134-byte string literal not displayed */ ResetValues bool `help:"When upgrading, reset the values to the ones built into the chart"` }
type RepoCreateOptions ¶
type RepoCreateOptions struct { RepoGetOptions URL string `help:"Repository url"` }
func (RepoCreateOptions) Params ¶
func (o RepoCreateOptions) Params() *jsonutils.JSONDict
type RepoGetOptions ¶
type RepoGetOptions struct {
NAME string `help:"ID or name of the repo"`
}
type RepoListOptions ¶
type RepoListOptions struct {
options.BaseListOptions
}
type RepoUpdateOptions ¶
type RepoUpdateOptions struct { RepoGetOptions Name string `help:"Repository name to change"` Url string `help:"Repository url to change"` }
func (RepoUpdateOptions) Params ¶
func (o RepoUpdateOptions) Params() *jsonutils.JSONDict
type ResourceDeleteOptions ¶
type ResourceDeleteOptions struct { ClusterBaseOptions NAME []string `help:"Name ident of the resources"` }
func (ResourceDeleteOptions) Params ¶
func (o ResourceDeleteOptions) Params() *jsonutils.JSONDict
type ResourceGetOptions ¶
type ResourceGetOptions struct { ClusterBaseOptions NAME string `help:"Name ident of the resource"` }
func (ResourceGetOptions) Params ¶
func (o ResourceGetOptions) Params() *jsonutils.JSONDict
type ResourceListOptions ¶
type ResourceListOptions struct { ClusterBaseOptions BaseListOptions }
func (ResourceListOptions) Params ¶
func (o ResourceListOptions) Params() *jsonutils.JSONDict
type TillerCreateOptions ¶
type TillerCreateOptions struct { ClusterBaseOptions KubeContext string `json:"kube_context"` Namespace string `json:"namespace" default:"kube-system"` // Upgrade if Tiller is already installed Upgrade bool `json:"upgrade"` // Name of service account ServiceAccount string `json:"service_account" default:"tiller"` // Use the canary Tiller image Canary bool `json:"canary_image"` // Override Tiller image Image string `json:"tiller_image" default:"yunion/tiller:v2.9.1"` // Limit the maximum number of revisions saved per release. Use 0 for no limit. MaxHistory int `json:"history_max"` }
func (TillerCreateOptions) Params ¶
func (o TillerCreateOptions) Params() *jsonutils.JSONDict
Click to show internal directories.
Click to hide internal directories.