Help us shape the future of Go! Take the 2026 Go Developer Survey

ctl

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func GetAPIVersionAndKind(data []byte) (string, string, error)

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

func ParseAndPrintDescriptor added in v1.1.0

func ParseAndPrintDescriptor(file string, data []byte, values map[string]interface{}, config config.Config) error

ParseAndPrintDescriptor parse and print the 'data'

Types

This section is empty.

Jump to

Keyboard shortcuts

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