kubernetes

package
v0.0.0-...-a0a52ca Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MPL-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestClientOk = iota
	RestClientGenericError
	RestClientInvalidTypeError
)

Variables

This section is empty.

Functions

func GetDeploymentCondition

func GetDeploymentCondition(status apps_v1.DeploymentStatus, condType apps_v1.DeploymentConditionType) *apps_v1.DeploymentCondition

GetDeploymentConditionInternal returns the condition with the provided type. Borrowed from: https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/deployment/util/deployment_util.go#L135

func Provider

func Provider() *schema.Provider

Types

type KubeProvider

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

func (*KubeProvider) ToDiscoveryClient

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

func (*KubeProvider) ToRESTConfig

func (p *KubeProvider) ToRESTConfig() (*restclient.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

Jump to

Keyboard shortcuts

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