kubectl

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestClientOk = iota
	RestClientGenericError
	RestClientInvalidTypeError
)

Variables

This section is empty.

Functions

func ResourceKubectlManifestApply

func ResourceKubectlManifestApply(ctx context.Context, yaml string, waitForRolout bool, kubeProvider *KubeProvider) (string, error)

func ResourceKubectlManifestDelete

func ResourceKubectlManifestDelete(ctx context.Context, yaml string, wait bool, kubeProvider *KubeProvider) error

func ResourceKubectlManifestRead

func ResourceKubectlManifestRead(ctx context.Context, yaml string, meta interface{}) (bool, error)

Types

type KubeProvider

type KubeProvider struct {
	MainClientset       *kubernetes.Clientset
	RestConfig          rest.Config
	AggregatorClientset *aggregator.Clientset
}

func (*KubeProvider) ToDiscoveryClient

func (p *KubeProvider) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

func (*KubeProvider) ToRESTConfig

func (p *KubeProvider) ToRESTConfig() (*rest.Config, error)

func (*KubeProvider) ToRESTMapper

func (p *KubeProvider) ToRESTMapper() (meta.RESTMapper, error)

func (*KubeProvider) ToRawKubeConfigLoader

func (p *KubeProvider) ToRawKubeConfigLoader() clientcmd.ClientConfig

type RestClientResult

type RestClientResult struct {
	ResourceInterface dynamic.ResourceInterface
	Error             error
	Status            RestClientStatus
}

func RestClientResultFromErr

func RestClientResultFromErr(err error) *RestClientResult

func RestClientResultFromInvalidTypeErr

func RestClientResultFromInvalidTypeErr(err error) *RestClientResult

func RestClientResultSuccess

func RestClientResultSuccess(resourceInterface dynamic.ResourceInterface) *RestClientResult

type RestClientStatus

type RestClientStatus int

type UnstructuredManifest

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

func (*UnstructuredManifest) String

func (m *UnstructuredManifest) String() string

Jump to

Keyboard shortcuts

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