Back to godoc.org
github.com/jenkins-x/jx / pkg / kube / resources

Package resources

v1.3.1119
Latest Go to latest

The latest major version is v2.

Published: Apr 15, 2019 | License: Apache-2.0 | Module: github.com/jenkins-x/jx

Index

type Installer

type Installer interface {
	// Install installs the Kubernetes resources provided in the file
	Install(file string) (string, error)
	// InstallDir installs the Kubernetes resources provided in the directory
	InstallDir(dir string) (string, error)
}

Installer provides support for installing Kuberntes resources directly from files go:generate pegomock generate github.com/jenkins-x/jx/pkg/kube/resources Installer -o mocks/installer.go

type KubeCtlInstaller

type KubeCtlInstaller struct {
	// contains filtered or unexported fields
}

KubeCtlInstaller kubectl based resources installer

func NewKubeCtlInstaller

func NewKubeCtlInstaller(cwd string, wait, validate bool) *KubeCtlInstaller

NewKubeCtlInstaller creates a new kubectl installer

func (*KubeCtlInstaller) Install

func (i *KubeCtlInstaller) Install(file string) (string, error)

Install installs the resources provided in the file

func (*KubeCtlInstaller) InstallDir

func (i *KubeCtlInstaller) InstallDir(dir string) (string, error)

InstallDir installs the resources provided in the directory

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier