khstatecrd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: Apache-2.0 Imports: 12 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)

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
}

func Client

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

Client creates a rest client to use for interacting with CRDs

func (*KuberhealthyStateClient) Create

func (*KuberhealthyStateClient) Delete

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

func (*KuberhealthyStateClient) Get

func (*KuberhealthyStateClient) List

func (*KuberhealthyStateClient) Update

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

type KuberhealthyStateList

type KuberhealthyStateList struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `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