v1alpha1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the codeco v1alpha1 API group +kubebuilder:object:generate=true +groupName=codeco.he-codeco.eu

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "codeco.he-codeco.eu", Version: "v1alpha1"}

	// 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

This section is empty.

Types

type CocdcoSecurityClass

type CocdcoSecurityClass string
const (
	High   CocdcoSecurityClass = "High"
	Medium CocdcoSecurityClass = "Medium"
	Dev    CocdcoSecurityClass = "Dev"
)

type CodecoApp

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

	Spec   CodecoAppSpec   `json:"spec,omitempty"`
	Status CodecoAppStatus `json:"status,omitempty"`
}

CodecoApp is the Schema for the codecoapps API

func (*CodecoApp) DeepCopy

func (in *CodecoApp) DeepCopy() *CodecoApp

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

func (*CodecoApp) DeepCopyInto

func (in *CodecoApp) DeepCopyInto(out *CodecoApp)

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

func (*CodecoApp) DeepCopyObject

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

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

type CodecoAppList

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

CodecoAppList contains a list of CodecoApp

func (*CodecoAppList) DeepCopy

func (in *CodecoAppList) DeepCopy() *CodecoAppList

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

func (*CodecoAppList) DeepCopyInto

func (in *CodecoAppList) DeepCopyInto(out *CodecoAppList)

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

func (*CodecoAppList) DeepCopyObject

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

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

type CodecoAppMSSpec

type CodecoAppMSSpec struct {

	// Name is an used to identify the CODECO micro service. Edit codecoapp_types.go to remove/update
	Name string `json:"name"`

	// A reference to the PodSpec of the microservice. Edit codecoapp_types.go to remove/update
	PodSpecName string `json:"podspecname"`

	// RequiredResources is used to identify the CODECO micro service required resources. Edit codecoapp_types.go to remove/update
	RequiredResources CodecoAppResource `json:"required-resources,omitempty"`
}

CodecoAppMSSpec defines the desired state of CodecoApp micro service

func (*CodecoAppMSSpec) DeepCopy

func (in *CodecoAppMSSpec) DeepCopy() *CodecoAppMSSpec

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

func (*CodecoAppMSSpec) DeepCopyInto

func (in *CodecoAppMSSpec) DeepCopyInto(out *CodecoAppMSSpec)

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

type CodecoAppResource

type CodecoAppResource struct {
	//+kubebuilder:validation:default=100
	CpuUsagePct string `json:"cpu,omitempty"`

	//+kubebuilder:validation:default=8
	MemUsageGB string `json:"mem,omitempty"`

	//+kubebuilder:validation:default=25
	NWBandwidthMbs string `json:"nwbandwidth,omitempty"`

	//+kubebuilder:validation:default=10
	NWLatencyMs string `json:"nwlatency,omitempty"`
}

CodecoAppResource defines the resource consumption of CodecoApp

func (*CodecoAppResource) DeepCopy

func (in *CodecoAppResource) DeepCopy() *CodecoAppResource

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

func (*CodecoAppResource) DeepCopyInto

func (in *CodecoAppResource) DeepCopyInto(out *CodecoAppResource)

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

type CodecoAppSpec

type CodecoAppSpec struct {

	// Name is an used to identify the CODECO application. Edit codecoapp_types.go to remove/update
	Name string `json:"name,omitempty"`

	// QosClass is used to identify the CODECO application QoS. Edit codecoapp_types.go to remove/update
	QosClass CodecoQosClass `json:"qosclass,omitempty"`

	//+kubebuilder:validation:MinItems=1
	// MCSpecs is used to identify the CODECO micro services which compose the application. Edit codecoapp_types.go to remove/update
	MCSpecs []CodecoAppMSSpec `json:"codecoapp-msspec,omitempty"`

	// SecurityClass is used to identify the CODECO application security class. Edit codecoapp_types.go to remove/update
	SecurityClass CocdcoSecurityClass `json:"securityclass,omitempty"`
}

CodecoAppSpec defines the desired state of CodecoApp

func (*CodecoAppSpec) DeepCopy

func (in *CodecoAppSpec) DeepCopy() *CodecoAppSpec

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

func (*CodecoAppSpec) DeepCopyInto

func (in *CodecoAppSpec) DeepCopyInto(out *CodecoAppSpec)

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

type CodecoAppStatus

type CodecoAppStatus struct {

	// Status expresses the CODECO application status by the CODECO framework. Edit codecoapp_types.go to remove/update
	Status CodecoStatus `json:"status,omitempty"`
	// ErrorMsg describes the CODECO application error. Edit codecoapp_types.go to remove/update
	ErrorMsg string                 `json:"errormsg,omitempty"`
	Metrics  CodecoAppStatusMetrics `json:"metrics"`
}

CodecoAppStatus defines the observed state of CodecoApp

func (*CodecoAppStatus) DeepCopy

func (in *CodecoAppStatus) DeepCopy() *CodecoAppStatus

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

func (*CodecoAppStatus) DeepCopyInto

func (in *CodecoAppStatus) DeepCopyInto(out *CodecoAppStatus)

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

type CodecoAppStatusMetrics

type CodecoAppStatusMetrics struct {
	Numpods        int    `json:"numpods,omitempty"`
	AvgLoad        uint64 `json:"avgload,omitempty"`
	NetworkAvgLoad uint64 `json:"networkavgload,omitempty"`
}

CodecoAppStatusMetrics defines the observed metrics of CodecoApp

func (*CodecoAppStatusMetrics) DeepCopy

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

func (*CodecoAppStatusMetrics) DeepCopyInto

func (in *CodecoAppStatusMetrics) DeepCopyInto(out *CodecoAppStatusMetrics)

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

type CodecoQosClass

type CodecoQosClass string
const (
	Gold       CodecoQosClass = "Gold"
	Silver     CodecoQosClass = "Silver"
	BestEffort CodecoQosClass = "BestEffort"
)

type CodecoStatus

type CodecoStatus string
const (
	OK      CodecoStatus = "OK"
	Warning CodecoStatus = "Warning"
	Error   CodecoStatus = "Error"
)

Jump to

Keyboard shortcuts

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