spec

package
v0.0.0-...-432d548 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Scheme = runtime.NewScheme()

Scheme the schme

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "carbon.taobao.com", Version: "v1"}

SchemeGroupVersion the group & version

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type HealthCondition

type HealthCondition struct {
	Success bool              `json:"success"`
	Metas   map[string]string `json:"metas" until:"1.0.0"`
}

HealthCondition holds the health checking result.

type WorkerNode

type WorkerNode struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Nick string `json:"nick"`
	Age  int    `json:"age"`

	Kvs    map[string]string `json:"kvs,omitempty"`
	Status WorkerNodeStatus  `json:"status"`
}

WorkerNode sample object spec.

func (*WorkerNode) DeepCopyObject

func (in *WorkerNode) DeepCopyObject() runtime.Object

DeepCopyObject deep copy

type WorkerNodeList

type WorkerNodeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []WorkerNode `json:"items"`
}

WorkerNodeList list object for WorkerNode.

func (*WorkerNodeList) DeepCopyObject

func (in *WorkerNodeList) DeepCopyObject() runtime.Object

DeepCopyObject deep copy

type WorkerNodeStatus

type WorkerNodeStatus struct {
	Health     HealthCondition `json:"health"`
	EntityName string          `json:"entityName"`
}

WorkerNodeStatus the status for the worker.

Jump to

Keyboard shortcuts

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