v1beta1

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package v1beta1 contains API Schema definitions for the wao v1beta1 API group +kubebuilder:object:generate=true +groupName=wao.bitmedia.co.jp

Index

Constants

View Source
const (
	TypeFake                = "Fake"
	TypeRedfish             = "Redfish"
	TypeDPAPI               = "DifferentialPressureAPI"
	TypeV2InferenceProtocol = "V2InferenceProtocol"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "wao.bitmedia.co.jp", Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func TemplateParseNodeConfig

func TemplateParseNodeConfig(nc *NodeConfig, data TemplateData)

func TemplateParseString

func TemplateParseString(s string, data TemplateData) (string, error)

Types

type EndpointTerm

type EndpointTerm struct {
	// Type specifies the type of endpoint. This value means which client is used.
	Type string `json:"type"`
	// Endpoint specifies the endpoint URL. Behavior depends on the client specified by Type.
	Endpoint string `json:"endpoint"`
	// BasicAuthSecret specifies the name of the Secret in the same namespace used for basic auth. Some Types require this value.
	// +optional
	BasicAuthSecret *corev1.LocalObjectReference `json:"basicAuthSecret,omitempty"`
	// FetchInterval specifies the data retrieval interval. Some Types require this value, and behavior depends on the client.
	// +optional
	FetchInterval *metav1.Duration `json:"fetchInterval,omitempty"`
}

func TemplateParseEndpointTerm

func TemplateParseEndpointTerm(in *EndpointTerm, data TemplateData) *EndpointTerm

func (*EndpointTerm) DeepCopy

func (in *EndpointTerm) DeepCopy() *EndpointTerm

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointTerm.

func (*EndpointTerm) DeepCopyInto

func (in *EndpointTerm) DeepCopyInto(out *EndpointTerm)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MetricsCollector

type MetricsCollector struct {
	InletTemp EndpointTerm `json:"inletTemp"`
	DeltaP    EndpointTerm `json:"deltaP"`
}

func (*MetricsCollector) DeepCopy

func (in *MetricsCollector) DeepCopy() *MetricsCollector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsCollector.

func (*MetricsCollector) DeepCopyInto

func (in *MetricsCollector) DeepCopyInto(out *MetricsCollector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeConfig

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

	Spec   NodeConfigSpec   `json:"spec,omitempty"`
	Status NodeConfigStatus `json:"status,omitempty"`
}

NodeConfig is the Schema for the nodeconfigs API

func (*NodeConfig) DeepCopy

func (in *NodeConfig) DeepCopy() *NodeConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfig.

func (*NodeConfig) DeepCopyInto

func (in *NodeConfig) DeepCopyInto(out *NodeConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeConfig) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodeConfigList

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

NodeConfigList contains a list of NodeConfig

func (*NodeConfigList) DeepCopy

func (in *NodeConfigList) DeepCopy() *NodeConfigList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigList.

func (*NodeConfigList) DeepCopyInto

func (in *NodeConfigList) DeepCopyInto(out *NodeConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeConfigList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodeConfigSpec

type NodeConfigSpec struct {
	NodeName         string           `json:"nodeName"`
	MetricsCollector MetricsCollector `json:"metricsCollector"`
	Predictor        Predictor        `json:"predictor"`
}

NodeConfigSpec defines the desired state of NodeConfig

func (*NodeConfigSpec) DeepCopy

func (in *NodeConfigSpec) DeepCopy() *NodeConfigSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigSpec.

func (*NodeConfigSpec) DeepCopyInto

func (in *NodeConfigSpec) DeepCopyInto(out *NodeConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeConfigStatus

type NodeConfigStatus struct {
}

NodeConfigStatus defines the observed state of NodeConfig

func (*NodeConfigStatus) DeepCopy

func (in *NodeConfigStatus) DeepCopy() *NodeConfigStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigStatus.

func (*NodeConfigStatus) DeepCopyInto

func (in *NodeConfigStatus) DeepCopyInto(out *NodeConfigStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeConfigTemplate

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

	Spec   NodeConfigTemplateSpec   `json:"spec,omitempty"`
	Status NodeConfigTemplateStatus `json:"status,omitempty"`
}

NodeConfigTemplate is the Schema for the nodeconfigtemplates API

func (*NodeConfigTemplate) DeepCopy

func (in *NodeConfigTemplate) DeepCopy() *NodeConfigTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigTemplate.

func (*NodeConfigTemplate) DeepCopyInto

func (in *NodeConfigTemplate) DeepCopyInto(out *NodeConfigTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeConfigTemplate) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodeConfigTemplateList

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

NodeConfigTemplateList contains a list of NodeConfigTemplate

func (*NodeConfigTemplateList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigTemplateList.

func (*NodeConfigTemplateList) DeepCopyInto

func (in *NodeConfigTemplateList) DeepCopyInto(out *NodeConfigTemplateList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeConfigTemplateList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodeConfigTemplateSpec

type NodeConfigTemplateSpec struct {
	// NodeSelector selects nodes to apply this template.
	NodeSelector metav1.LabelSelector `json:"nodeSelector"`
	// Template is a template of NodeConfig.
	// You can use Go template syntax like `{{ .Hostname }}` `{{ .IPv4.Octet3 }}`
	// in string fields, see docs for more details.
	//
	// NOTE: template.nodeName is ignored.
	Template NodeConfigSpec `json:"template"`
}

NodeConfigTemplateSpec defines the desired state of NodeConfigTemplate

func (*NodeConfigTemplateSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigTemplateSpec.

func (*NodeConfigTemplateSpec) DeepCopyInto

func (in *NodeConfigTemplateSpec) DeepCopyInto(out *NodeConfigTemplateSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeConfigTemplateStatus

type NodeConfigTemplateStatus struct {
}

NodeConfigTemplateStatus defines the observed state of NodeConfigTemplate

func (*NodeConfigTemplateStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigTemplateStatus.

func (*NodeConfigTemplateStatus) DeepCopyInto

func (in *NodeConfigTemplateStatus) DeepCopyInto(out *NodeConfigTemplateStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Predictor

type Predictor struct {
	// +optional
	PowerConsumption *EndpointTerm `json:"powerConsumption,omitempty"`
	// +optional
	PowerConsumptionEndpointProvider *EndpointTerm `json:"powerConsumptionEndpointProvider,omitempty"`
}

func (*Predictor) DeepCopy

func (in *Predictor) DeepCopy() *Predictor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Predictor.

func (*Predictor) DeepCopyInto

func (in *Predictor) DeepCopyInto(out *Predictor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TemplateData

type TemplateData struct {
	// Hostname contains `kubernetes.io/hostname` label value.
	Hostname string
	// IPv4 contains address value of the first `InternalIP` in `status.addresses`.
	IPv4 TemplateDataIPv4
}

TemplateData is a data structure for template rendering. This is not a part of CRD.

func NewTemplateDataFromNode

func NewTemplateDataFromNode(node corev1.Node) TemplateData

func (*TemplateData) DeepCopy

func (in *TemplateData) DeepCopy() *TemplateData

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateData.

func (*TemplateData) DeepCopyInto

func (in *TemplateData) DeepCopyInto(out *TemplateData)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TemplateDataIPv4

type TemplateDataIPv4 struct {
	Address string
	Octet1  string
	Octet2  string
	Octet3  string
	Octet4  string
}

TemplateDataIPv4 is a part of TemplateData.

func (*TemplateDataIPv4) DeepCopy

func (in *TemplateDataIPv4) DeepCopy() *TemplateDataIPv4

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateDataIPv4.

func (*TemplateDataIPv4) DeepCopyInto

func (in *TemplateDataIPv4) DeepCopyInto(out *TemplateDataIPv4)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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