Documentation ¶
Index ¶
- Variables
- func ConfigureScheme(GroupName string, GroupVersion string) error
- type KuberhealthyState
- type KuberhealthyStateClient
- func (c *KuberhealthyStateClient) Create(state *KuberhealthyState, resource string, namespace string) (*KuberhealthyState, error)
- func (c *KuberhealthyStateClient) Delete(state *KuberhealthyState, resource string, name string, namespace string) (*KuberhealthyState, error)
- func (c *KuberhealthyStateClient) Get(opts metav1.GetOptions, resource string, name string, namespace string) (*KuberhealthyState, error)
- func (c *KuberhealthyStateClient) List(opts metav1.ListOptions, resource string, namespace string) (*KuberhealthyStateList, error)
- func (c *KuberhealthyStateClient) RestClient() rest.Interface
- func (c *KuberhealthyStateClient) Update(state *KuberhealthyState, resource string, name string, namespace string) (*KuberhealthyState, error)
- func (c *KuberhealthyStateClient) Watch(opts metav1.ListOptions, resource string, namespace string) (watch.Interface, error)
- type KuberhealthyStateList
Constants ¶
This section is empty.
Variables ¶
var SchemeGroupVersion schema.GroupVersion
SchemeGroupVersion variable for newly added kh state to be added to Kuberhealthy
Functions ¶
func ConfigureScheme ¶
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.WorkloadDetails `json:"spec"` }
KuberhealthyState struct containing meta objects and health state in spec
func NewKuberhealthyState ¶
func NewKuberhealthyState(name string, spec health.WorkloadDetails) 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 CreateClient ¶ added in v2.3.0
func CreateClient(client rest.Interface) *KuberhealthyStateClient
CreateClient returns a Kuberhealthy State client using an existing rest client
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
RestClient 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"` }
KuberhealthyStateList is a struct from the module k8s.io/apimachinery/pkg/apis/meta/v1"
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