Documentation ¶
Overview ¶
Inspired from https://github.com/helm/helm-classic/blob/master/kubectl/command.go
package kubectl
Inspired from https://github.com/helm/helm-classic/blob/master/kubectl/kubectl.go
package kubectl
Inspired from https://github.com/helm/helm-classic/blob/master/kubectl/get.go
package kubectl
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Path = "python"
Path is the path of the kubectl binary
Functions ¶
This section is empty.
Types ¶
type PrintRunner ¶
type PrintRunner struct{}
PrintRunner implements Runner to return a []byte of the command to be executed
type RealRunner ¶
type RealRunner struct{}
RealRunner implements Runner to execute kubectl commands
func (RealRunner) Python_00_check ¶
func (r RealRunner) Python_00_check(wd string, opts ...string) ([]byte, error)
func (RealRunner) Web1_2_check ¶
func (r RealRunner) Web1_2_check(wd string, opts ...string) ([]byte, error)
type Runner ¶
type Runner interface { // // ClusterInfo returns Kubernetes cluster info // ClusterInfo() ([]byte, error) // // Create uploads a chart to Kubernetes // Create([]byte, string) ([]byte, error) // // Delete removes a chart from Kubernetes. // Delete(string, string, string) ([]byte, error) // // Get returns Kubernetes resources // Get([]byte, string) ([]byte, error) /* awd1-4-tag-1, awd1-8-tag-1, web1-2-tag-1 */ Python_00_check(string, ...string) ([]byte, error) Web1_2_check(string, ...string) ([]byte, error) Web1Check(string) ([]byte, error) Web2Check(string) ([]byte, error) }
Runner is an interface to wrap kubectl convenience methods
var Client Runner = RealRunner{}
Client stores the instance of Runner
Click to show internal directories.
Click to hide internal directories.