Documentation ¶
Index ¶
- Variables
- func ApplyCluster(cluster clusterModel.Cluster, config config.Config) error
- func ApplyCronJob(cronJobDescriptor projectModel.CronJobDescriptor, config config.Config) error
- func ApplyDaemonSet(daemonSetDescriptor projectModel.DaemonSetDescriptor, config config.Config) error
- func ApplyDeployment(deploymentDescriptor projectModel.DeploymentDescriptor, config config.Config) error
- func ApplyDescriptor(file string, data []byte, values map[string]interface{}, config config.Config) error
- func ApplyJob(jobDescriptor projectModel.JobDescriptor, config config.Config) error
- func ApplyProject(project projectModel.Project, config config.Config) error
- func ApplyRancher(rancher rancherModel.Rancher, config config.Config) error
- func ApplyStatefulSet(statefulSetDescriptor projectModel.StatefulSetDescriptor, config config.Config) error
- func DeleteProjectResouce(projectName, namespace, resouceType, name string, config config.Config) (err error)
- func GetAPIVersionAndKind(data []byte) (string, string, error)
- func ListProjectResouces(projectName, namespace, resouceType, pattern string, config config.Config) (err error)
- func ParseAndPrintDescriptor(file string, data []byte, values map[string]interface{}, config config.Config) error
Constants ¶
This section is empty.
Variables ¶
var Version = "v1.3.0-local"
Version is the current build version
Functions ¶
func ApplyCluster ¶ added in v1.3.0
func ApplyCluster(cluster clusterModel.Cluster, config config.Config) error
ApplyCluster the the CTL perform a apply action to a cluster descriptor
func ApplyCronJob ¶ added in v1.1.0
func ApplyCronJob(cronJobDescriptor projectModel.CronJobDescriptor, config config.Config) error
ApplyCronJob the the CTL perform a apply action to a cronjob descriptor
func ApplyDaemonSet ¶ added in v1.1.0
func ApplyDaemonSet(daemonSetDescriptor projectModel.DaemonSetDescriptor, config config.Config) error
ApplyDaemonSet the the CTL perform a apply action to a daemon set descriptor
func ApplyDeployment ¶ added in v1.1.0
func ApplyDeployment(deploymentDescriptor projectModel.DeploymentDescriptor, config config.Config) error
ApplyDeployment the the CTL perform a apply action to a deployment descriptor
func ApplyDescriptor ¶ added in v1.1.0
func ApplyDescriptor(file string, data []byte, values map[string]interface{}, config config.Config) error
ApplyDescriptor the the CTL perform a apply action
func ApplyJob ¶ added in v1.1.0
func ApplyJob(jobDescriptor projectModel.JobDescriptor, config config.Config) error
ApplyJob the the CTL perform a apply action to a job descriptor
func ApplyProject ¶
func ApplyProject(project projectModel.Project, config config.Config) error
ApplyProject the the CTL perform a apply action to a project descriptor
func ApplyRancher ¶ added in v1.3.0
func ApplyRancher(rancher rancherModel.Rancher, config config.Config) error
ApplyRancher the the CTL perform a apply action to a cluster descriptor
func ApplyStatefulSet ¶ added in v1.1.0
func ApplyStatefulSet(statefulSetDescriptor projectModel.StatefulSetDescriptor, config config.Config) error
ApplyStatefulSet the the CTL perform a apply action to a stateful set descriptor
func DeleteProjectResouce ¶ added in v1.3.0
func DeleteProjectResouce(projectName, namespace, resouceType, name string, config config.Config) (err error)
DeleteProjectResouce is deleting one project resource from project
* projectName: the project to delete the resource from * resourceType: the type of the resource to delete * name: the name of the resource to delete
func GetAPIVersionAndKind ¶ added in v1.2.0
GetAPIVersionAndKind reads API version and kind from the data
func ListProjectResouces ¶ added in v1.3.0
func ListProjectResouces(projectName, namespace, resouceType, pattern string, config config.Config) (err error)
ListProjectResouces list all resources of a project to stdout
* projectName: the project to list the resources from * namespace: the namespace to list the resources from * resourceType: the type of the resources to list
Types ¶
This section is empty.