manipulate

package
v0.0.0-...-f4cebfc Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

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) Web1Check

func (r RealRunner) Web1Check(wd string) ([]byte, error)

func (RealRunner) Web1_2_check

func (r RealRunner) Web1_2_check(wd string, opts ...string) ([]byte, error)

func (RealRunner) Web2Check

func (r RealRunner) Web2Check(wd 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

Jump to

Keyboard shortcuts

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