kubectl

package
v0.0.0-...-9cf51b1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashResource

func HashResource(v interface{}) int

func Provider

func Provider() *schema.Provider

func ReadFile

func ReadFile(path string) (string, error)

Types

type CLICommand

type CLICommand struct {
	*exec.Cmd
}

func NewCLICommand

func NewCLICommand(name string, args ...string) *CLICommand

func (*CLICommand) RunCommand

func (c *CLICommand) RunCommand() error

type CLICommandFactory

type CLICommandFactory struct {
	KubectlConfig *KubectlConfig
}

func (*CLICommandFactory) CreateApplyManifestCommand

func (c *CLICommandFactory) CreateApplyManifestCommand(
	manifestResource, namespace string) *CLICommand

func (*CLICommandFactory) CreateDeleteByHandleCommand

func (c *CLICommandFactory) CreateDeleteByHandleCommand(
	resourceHandle, namespace string) *CLICommand

func (*CLICommandFactory) CreateGetByHandleCommand

func (c *CLICommandFactory) CreateGetByHandleCommand(
	resourceHandle, namespace string, stdout *bytes.Buffer) *CLICommand

func (*CLICommandFactory) CreateGetByManifestCommand

func (c *CLICommandFactory) CreateGetByManifestCommand(
	resourceManifest, namespace string, stdout *bytes.Buffer) *CLICommand

type Config

type Config struct {
	Kubeconfig  string
	Kubecontent string
	Kubecontext string
}

type KubectlConfig

type KubectlConfig struct {
	Kubeconfig  string
	Kubecontent string
	Kubecontext string
	// contains filtered or unexported fields
}

func NewKubectlConfig

func NewKubectlConfig(m interface{}) (*KubectlConfig, error)

func (*KubectlConfig) Cleanup

func (k *KubectlConfig) Cleanup() error

func (*KubectlConfig) InitializeConfiguration

func (k *KubectlConfig) InitializeConfiguration() error

func (*KubectlConfig) RenderArgs

func (k *KubectlConfig) RenderArgs(args ...string) []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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