khstatecrd

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SchemeGroupVersion schema.GroupVersion

Functions

func ConfigureScheme

func ConfigureScheme(GroupName string, GroupVersion string) error

ConfigureScheme configures the runtime scheme for use with CRD creation

Types

type KuberhealthyState

type KuberhealthyState struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              health.CheckDetails `json:"spec"`
}

func NewKuberhealthyState

func NewKuberhealthyState(name string, spec health.CheckDetails) KuberhealthyState

NewKuberhealthyState creates a KuberhealthyState struct which represents the data inside a KuberHealthyCheck resource

func (KuberhealthyState) DeepCopyInto

func (h KuberhealthyState) DeepCopyInto(out *KuberhealthyState)

DeepCopyInto copies all properties of this object into another object of the same type that is provided as a pointer.

func (KuberhealthyState) DeepCopyObject

func (h KuberhealthyState) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

func (KuberhealthyState) String

func (h KuberhealthyState) String() string

String satisfies the stringer interface for cleaner output when printing

type KuberhealthyStateClient

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

KuberhealthyStateClient holds client data for talking to Kubernetes about the khstate custom resource

func Client

func Client(GroupName string, GroupVersion string, kubeConfig string, namespace string) (*KuberhealthyStateClient, error)

Client creates a rest client to use for interacting with CRDs

func (*KuberhealthyStateClient) Create

func (c *KuberhealthyStateClient) Create(state *KuberhealthyState, resource string, namespace string) (*KuberhealthyState, error)

Create creates a new resource for this CRD

func (*KuberhealthyStateClient) Delete

func (c *KuberhealthyStateClient) Delete(state *KuberhealthyState, resource string, name string, namespace string) (*KuberhealthyState, error)

Delete deletes a resource for this CRD

func (*KuberhealthyStateClient) Get

func (c *KuberhealthyStateClient) Get(opts metav1.GetOptions, resource string, name string, namespace string) (*KuberhealthyState, error)

Get fetches a resource of this CRD

func (*KuberhealthyStateClient) List

func (c *KuberhealthyStateClient) List(opts metav1.ListOptions, resource string, namespace string) (*KuberhealthyStateList, error)

List lists resources for this CRD

func (*KuberhealthyStateClient) RestClient

func (c *KuberhealthyStateClient) RestClient() rest.Interface

ResetClient returns the rest client for easy listWatcher use

func (*KuberhealthyStateClient) Update

func (c *KuberhealthyStateClient) Update(state *KuberhealthyState, resource string, name string, namespace string) (*KuberhealthyState, error)

Update updates a resource for this CRD

func (*KuberhealthyStateClient) Watch

func (c *KuberhealthyStateClient) Watch(opts metav1.ListOptions, resource string, namespace string) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested clusterTestTypes.

type KuberhealthyStateList

type KuberhealthyStateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KuberhealthyState `json:"items"`
}

func (*KuberhealthyStateList) DeepCopyInto

func (h *KuberhealthyStateList) DeepCopyInto(out *KuberhealthyStateList)

DeepCopyInto copies all properties of this object into another object of the same type that is provided as a pointer.

func (*KuberhealthyStateList) DeepCopyObject

func (h *KuberhealthyStateList) DeepCopyObject() runtime.Object

DeepCopyObject returns a generically typed copy of an object

Jump to

Keyboard shortcuts

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