Documentation
¶
Overview ¶
+kubebuilder:validation:Optional
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true +groupName=core.oam.dev
Index ¶
- Constants
- Variables
- func Translate(v interface{}, p []ParameterValue) error
- type AccessMode
- type ApplicationCondition
- type ApplicationConditionType
- type ApplicationConfiguration
- func (in *ApplicationConfiguration) DeepCopy() *ApplicationConfiguration
- func (in *ApplicationConfiguration) DeepCopyInto(out *ApplicationConfiguration)
- func (in *ApplicationConfiguration) DeepCopyObject() runtime.Object
- func (c *ApplicationConfiguration) SetComponent(component *ComponentConfiguration)
- type ApplicationConfigurationList
- type ApplicationConfigurationSpec
- type ApplicationConfigurationStatus
- func (m *ApplicationConfigurationStatus) ClearAllConditions()
- func (m *ApplicationConfigurationStatus) ClearError()
- func (m *ApplicationConfigurationStatus) ConditionReason(ctype ApplicationConditionType) string
- func (in *ApplicationConfigurationStatus) DeepCopy() *ApplicationConfigurationStatus
- func (in *ApplicationConfigurationStatus) DeepCopyInto(out *ApplicationConfigurationStatus)
- func (m *ApplicationConfigurationStatus) GetCondition(ctype ApplicationConditionType) *ApplicationCondition
- func (m *ApplicationConfigurationStatus) IsConditionTrue(ctype ApplicationConditionType) bool
- func (m *ApplicationConfigurationStatus) IsNotReady() bool
- func (m *ApplicationConfigurationStatus) IsReady() bool
- func (m *ApplicationConfigurationStatus) NotReady(reason, message string)
- func (m *ApplicationConfigurationStatus) Ready(reason, message string)
- func (m *ApplicationConfigurationStatus) RemoveAllConditions()
- func (m *ApplicationConfigurationStatus) RemoveCondition(ctype ApplicationConditionType)
- func (m *ApplicationConfigurationStatus) SetConditionFalse(ctype ApplicationConditionType, reason, message string)
- func (m *ApplicationConfigurationStatus) SetConditionTrue(ctype ApplicationConditionType, reason, message string)
- func (m *ApplicationConfigurationStatus) SetError(reason, message string)
- func (m *ApplicationConfigurationStatus) Update(rsrcs []metav1.Object, err error)
- type ApplicationPhase
- type ApplicationScope
- type ApplicationScopeList
- type ApplicationScopeSpec
- type ApplicationScopeStatus
- type CPU
- type ComponentConfiguration
- type ComponentSchematic
- type ComponentSchematicList
- type ComponentSpec
- type ComponentStatus
- type ConfigFile
- type Container
- type Disk
- type Env
- type Exec
- type ExtendedResource
- type GPU
- type HealthProbe
- type HttpGet
- type HttpHeader
- type InterfaceParam
- type InterfaceStruct
- func (in *InterfaceStruct) DeepCopy() *InterfaceStruct
- func (in *InterfaceStruct) DeepCopyInto(out *InterfaceStruct)
- func (inter *InterfaceStruct) MarshalJSON() ([]byte, error)
- func (InterfaceStruct) OpenAPISchemaFormat() []string
- func (InterfaceStruct) OpenAPISchemaType() []string
- func (inter *InterfaceStruct) Real() []byte
- func (inter *InterfaceStruct) UnmarshalJSON(value []byte) error
- type Memory
- type ModuleStatus
- type Names
- type Parameter
- type ParameterType
- type ParameterValue
- type Port
- type PortProtocol
- type Resources
- type ScopeBinding
- type SharingPolicy
- type TcpSocket
- type Trait
- type TraitBinding
- type TraitList
- type TraitSpec
- type TraitStatus
- type Variable
- type Volume
- type WorkloadSetting
- type WorkloadType
- type WorkloadTypeList
- type WorkloadTypeSpec
- type WorkloadTypeStatus
Constants ¶
const ( Group = "core.oam.dev" Version = "v1alpha1" Separator = "/" )
const ( StatusReady = "Ready" StatusProgressing = "Progressing" StatusFailed = "Failed" )
ComponentConfiguration status
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: Group, Version: Version} // 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 Translate ¶
func Translate(v interface{}, p []ParameterValue) error
* Translate []ParameterValue to struct, the struct always should be empty struct pointer. e.g: Translate(&RollOutParameter{}, p)
Types ¶
type AccessMode ¶
type AccessMode string
/ AccessMode defines the access modes for file systems. / / Currently, only read/write and read-only are supported.
const ( RW AccessMode = "RW" RO AccessMode = "RO" )
type ApplicationCondition ¶
type ApplicationCondition struct { // Type of Application condition. Type ApplicationConditionType `json:"type"` // Status is the status of the condition. // Can be True, False, Unknown. // - True means application in this condition type // - False means application not in this condition type // - Unknown means whether application in this condition type is unknown Status corev1.ConditionStatus `json:"status"` // The last time this condition was updated. LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty"` }
+k8s:deepcopy-gen=true
func (*ApplicationCondition) DeepCopy ¶
func (in *ApplicationCondition) DeepCopy() *ApplicationCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationCondition.
func (*ApplicationCondition) DeepCopyInto ¶
func (in *ApplicationCondition) DeepCopyInto(out *ApplicationCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationConditionType ¶
type ApplicationConditionType string
const ( // Ready type shows application's readiness condition. Ready ApplicationConditionType = "Ready" // Cleanup type shows application's cleanup condition. Cleanup ApplicationConditionType = "Cleanup" // Error type shows application's error condition. Error ApplicationConditionType = "Error" )
These are valid conditions of a application.
type ApplicationConfiguration ¶
type ApplicationConfiguration struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationConfigurationSpec `json:"spec,omitempty"` Status ApplicationConfigurationStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true ApplicationConfiguration is the Schema for the operationalconfigurations API
func (*ApplicationConfiguration) DeepCopy ¶
func (in *ApplicationConfiguration) DeepCopy() *ApplicationConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationConfiguration.
func (*ApplicationConfiguration) DeepCopyInto ¶
func (in *ApplicationConfiguration) DeepCopyInto(out *ApplicationConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationConfiguration) DeepCopyObject ¶
func (in *ApplicationConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ApplicationConfiguration) SetComponent ¶
func (c *ApplicationConfiguration) SetComponent(component *ComponentConfiguration)
type ApplicationConfigurationList ¶
type ApplicationConfigurationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ApplicationConfiguration `json:"items"` }
+kubebuilder:object:root=true ApplicationConfigurationList contains a list of ApplicationConfiguration
func (*ApplicationConfigurationList) DeepCopy ¶
func (in *ApplicationConfigurationList) DeepCopy() *ApplicationConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationConfigurationList.
func (*ApplicationConfigurationList) DeepCopyInto ¶
func (in *ApplicationConfigurationList) DeepCopyInto(out *ApplicationConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationConfigurationList) DeepCopyObject ¶
func (in *ApplicationConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationConfigurationSpec ¶
type ApplicationConfigurationSpec struct { // +optional Variables []Variable `json:"variables,omitempty"` // +optional Scopes []ScopeBinding `json:"scopes,omitempty"` Components []ComponentConfiguration `json:"components"` }
ApplicationConfigurationSpec defines the desired state of ApplicationConfiguration
func (*ApplicationConfigurationSpec) DeepCopy ¶
func (in *ApplicationConfigurationSpec) DeepCopy() *ApplicationConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationConfigurationSpec.
func (*ApplicationConfigurationSpec) DeepCopyInto ¶
func (in *ApplicationConfigurationSpec) DeepCopyInto(out *ApplicationConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationConfigurationStatus ¶
type ApplicationConfigurationStatus struct { // The phase of a application is a simple, high-level summary of where the whole Application is in its lifecycle. // The conditions array contains more detail about the appConf's status. // There are five possible phase values: // Pending: The Application has been accepted by the Kubernetes system, but not get processed by EDAS. // Progressing: The Application has been processed by EDAS, related resources provision are progressing. // Ready: All related resources provision are ready, application is on serving. // Failed: Occur some failures in the process of creating Application, you can get detail infos from Conditions. // Unknown: For some reason the state of the Application could not be obtained, typically due to an // error in controller. // +optional Phase ApplicationPhase `json:"phase,omitempty"` // Module status array for all modules constitute this application. // Module is k8s build-in or CRD object, only show cswt level. // +optional Modules []ModuleStatus `json:"modules,omitempty"` // Represents the latest available observations of a application's current state. // +patchMergeKey=type // +patchStrategy=merge Conditions []ApplicationCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` }
ApplicationConfigurationStatus defines the observed state of ApplicationConfiguration
func (*ApplicationConfigurationStatus) ClearAllConditions ¶
func (m *ApplicationConfigurationStatus) ClearAllConditions()
ClearAllConditions updates or creates a new condition
func (*ApplicationConfigurationStatus) ClearError ¶
func (m *ApplicationConfigurationStatus) ClearError()
ClearError - shortcut to set error condition
func (*ApplicationConfigurationStatus) ConditionReason ¶
func (m *ApplicationConfigurationStatus) ConditionReason(ctype ApplicationConditionType) string
ConditionReason - return condition reason
func (*ApplicationConfigurationStatus) DeepCopy ¶
func (in *ApplicationConfigurationStatus) DeepCopy() *ApplicationConfigurationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationConfigurationStatus.
func (*ApplicationConfigurationStatus) DeepCopyInto ¶
func (in *ApplicationConfigurationStatus) DeepCopyInto(out *ApplicationConfigurationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationConfigurationStatus) GetCondition ¶
func (m *ApplicationConfigurationStatus) GetCondition(ctype ApplicationConditionType) *ApplicationCondition
GetCondition get existing condition
func (*ApplicationConfigurationStatus) IsConditionTrue ¶
func (m *ApplicationConfigurationStatus) IsConditionTrue(ctype ApplicationConditionType) bool
IsConditionTrue - if condition is true
func (*ApplicationConfigurationStatus) IsNotReady ¶
func (m *ApplicationConfigurationStatus) IsNotReady() bool
IsNotReady returns true if ready condition is set
func (*ApplicationConfigurationStatus) IsReady ¶
func (m *ApplicationConfigurationStatus) IsReady() bool
IsReady returns true if ready condition is set
func (*ApplicationConfigurationStatus) NotReady ¶
func (m *ApplicationConfigurationStatus) NotReady(reason, message string)
NotReady - shortcut to set ready contition to false
func (*ApplicationConfigurationStatus) Ready ¶
func (m *ApplicationConfigurationStatus) Ready(reason, message string)
Ready - shortcut to set ready contition to true
func (*ApplicationConfigurationStatus) RemoveAllConditions ¶
func (m *ApplicationConfigurationStatus) RemoveAllConditions()
RemoveAllConditions updates or creates a new condition
func (*ApplicationConfigurationStatus) RemoveCondition ¶
func (m *ApplicationConfigurationStatus) RemoveCondition(ctype ApplicationConditionType)
RemoveCondition removes the condition with the provided type.
func (*ApplicationConfigurationStatus) SetConditionFalse ¶
func (m *ApplicationConfigurationStatus) SetConditionFalse(ctype ApplicationConditionType, reason, message string)
SetConditionFalse updates or creates a new condition
func (*ApplicationConfigurationStatus) SetConditionTrue ¶
func (m *ApplicationConfigurationStatus) SetConditionTrue(ctype ApplicationConditionType, reason, message string)
SetConditionTrue updates or creates a new condition
func (*ApplicationConfigurationStatus) SetError ¶
func (m *ApplicationConfigurationStatus) SetError(reason, message string)
SetError - shortcut to set error condition
type ApplicationPhase ¶
type ApplicationPhase string
ApplicationPhase is a label for the condition of a Application at the current time.
const ( // ApplicationPending means the Application has been accepted by the Kubernetes system, // but not get processed by EDAS. ApplicationPending ApplicationPhase = "Pending" // ApplicationProgressing means the Application has been processed by EDAS, // related resources provision are progressing. ApplicationProgressing ApplicationPhase = "Progressing" // ApplicationReady means All related resources provision are ready, application is on serving. ApplicationReady ApplicationPhase = "Ready" // ApplicationFailed means some failures occurred in the process of creating Application, // you can get detail info from Conditions. ApplicationFailed ApplicationPhase = "Failed" )
These are valid status of a Application
type ApplicationScope ¶
type ApplicationScope struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationScopeSpec `json:"spec,omitempty"` Status ApplicationScopeStatus `json:"status,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ApplicationScope) DeepCopy ¶
func (in *ApplicationScope) DeepCopy() *ApplicationScope
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationScope.
func (*ApplicationScope) DeepCopyInto ¶
func (in *ApplicationScope) DeepCopyInto(out *ApplicationScope)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationScope) DeepCopyObject ¶
func (in *ApplicationScope) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationScopeList ¶
type ApplicationScopeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ApplicationScope `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ApplicationScopeList) DeepCopy ¶
func (in *ApplicationScopeList) DeepCopy() *ApplicationScopeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationScopeList.
func (*ApplicationScopeList) DeepCopyInto ¶
func (in *ApplicationScopeList) DeepCopyInto(out *ApplicationScopeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationScopeList) DeepCopyObject ¶
func (in *ApplicationScopeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationScopeSpec ¶
type ApplicationScopeSpec struct { Type string `json:"type"` AllowComponentOverlap bool `json:"allowComponentOverlap"` Parameters []Parameter `json:"parameters"` }
func (*ApplicationScopeSpec) DeepCopy ¶
func (in *ApplicationScopeSpec) DeepCopy() *ApplicationScopeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationScopeSpec.
func (*ApplicationScopeSpec) DeepCopyInto ¶
func (in *ApplicationScopeSpec) DeepCopyInto(out *ApplicationScopeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationScopeStatus ¶
type ApplicationScopeStatus struct { }
func (*ApplicationScopeStatus) DeepCopy ¶
func (in *ApplicationScopeStatus) DeepCopy() *ApplicationScopeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationScopeStatus.
func (*ApplicationScopeStatus) DeepCopyInto ¶
func (in *ApplicationScopeStatus) DeepCopyInto(out *ApplicationScopeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CPU ¶
/ CPU describes a CPU resource allocation for a container. / / The minimum number of logical cpus required for running this container.
func (*CPU) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CPU.
func (*CPU) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentConfiguration ¶
type ComponentConfiguration struct { ComponentName string `json:"componentName"` InstanceName string `json:"instanceName"` // extension field, workload reference name // +optional RefName string `json:"refName,omitempty"` // +optional ParameterValues []ParameterValue `json:"parameterValues,omitempty"` // +optional Traits []TraitBinding `json:"traits,omitempty"` // +optional ApplicationScopes []string `json:"applicationScopes,omitempty"` }
func (*ComponentConfiguration) DeepCopy ¶
func (in *ComponentConfiguration) DeepCopy() *ComponentConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentConfiguration.
func (*ComponentConfiguration) DeepCopyInto ¶
func (in *ComponentConfiguration) DeepCopyInto(out *ComponentConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ComponentConfiguration) SetReplicas ¶
func (c *ComponentConfiguration) SetReplicas(s string)
type ComponentSchematic ¶
type ComponentSchematic struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ComponentSpec `json:"spec,omitempty"` Status ComponentStatus `json:"status,omitempty"` }
ComponentSchematic is the Schema for the components API +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ComponentSchematic) DeepCopy ¶
func (in *ComponentSchematic) DeepCopy() *ComponentSchematic
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSchematic.
func (*ComponentSchematic) DeepCopyInto ¶
func (in *ComponentSchematic) DeepCopyInto(out *ComponentSchematic)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ComponentSchematic) DeepCopyObject ¶
func (in *ComponentSchematic) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ComponentSchematicList ¶
type ComponentSchematicList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ComponentSchematic `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object ComponentSchematicList contains a list of ComponentSchematic
func (*ComponentSchematicList) DeepCopy ¶
func (in *ComponentSchematicList) DeepCopy() *ComponentSchematicList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSchematicList.
func (*ComponentSchematicList) DeepCopyInto ¶
func (in *ComponentSchematicList) DeepCopyInto(out *ComponentSchematicList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ComponentSchematicList) DeepCopyObject ¶
func (in *ComponentSchematicList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ComponentSpec ¶
type ComponentSpec struct { Parameters []Parameter `json:"parameters,omitempty"` WorkloadType string `json:"workloadType"` OsType string `json:"osType"` Arch string `json:"arch"` Containers []Container `json:"containers,omitempty"` WorkloadSettings []WorkloadSetting `json:"workloadSettings,omitempty"` }
ComponentSpec defines the desired state of ComponentSchematic
func (*ComponentSpec) DeepCopy ¶
func (in *ComponentSpec) DeepCopy() *ComponentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSpec.
func (*ComponentSpec) DeepCopyInto ¶
func (in *ComponentSpec) DeepCopyInto(out *ComponentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentStatus ¶
type ComponentStatus struct { }
func (*ComponentStatus) DeepCopy ¶
func (in *ComponentStatus) DeepCopy() *ComponentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentStatus.
func (*ComponentStatus) DeepCopyInto ¶
func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigFile ¶
type ConfigFile struct { Path string `json:"path"` Value string `json:"value"` FromParam string `json:"fromParam"` }
func (*ConfigFile) DeepCopy ¶
func (in *ConfigFile) DeepCopy() *ConfigFile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigFile.
func (*ConfigFile) DeepCopyInto ¶
func (in *ConfigFile) DeepCopyInto(out *ConfigFile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Container ¶
type Container struct { Name string `json:"name"` Image string `json:"image"` Resources Resources `json:"resources"` Cmd []string `json:"cmd,omitempty"` Args []string `json:"args,omitempty"` Env []Env `json:"env,omitempty"` Config []ConfigFile `json:"config,omitempty"` Ports []Port `json:"ports,omitempty"` LivenessProbe HealthProbe `json:"livenessProbe"` ReadinessProbe HealthProbe `json:"readinessProbe"` ImagePullSecret string `json:"imagePullSecret"` }
func (*Container) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Container.
func (*Container) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Disk ¶
Disk describes the disk requirements for backing a Volume.
func (*Disk) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Disk.
func (*Disk) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Env ¶
type Env struct { Name string `json:"name"` Value string `json:"value"` FromParam string `json:"fromParam"` }
func (*Env) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Env.
func (*Env) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Exec ¶
type Exec struct {
Command []string `json:"command,omitempty"`
}
func (*Exec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Exec.
func (*Exec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExtendedResource ¶
func (*ExtendedResource) DeepCopy ¶
func (in *ExtendedResource) DeepCopy() *ExtendedResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtendedResource.
func (*ExtendedResource) DeepCopyInto ¶
func (in *ExtendedResource) DeepCopyInto(out *ExtendedResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GPU ¶
/ GPU describes a Container's need for a GPU. / / The minimum number of gpus required for running this container.
func (*GPU) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GPU.
func (*GPU) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealthProbe ¶
type HealthProbe struct { Exec Exec `json:"exec"` HttpGet HttpGet `json:"httpGet"` TcpSocket TcpSocket `json:"tcpSocket"` InitialDelaySeconds int32 `json:"initialDelaySeconds"` PeriodSeconds int32 `json:"periodSeconds"` TimeoutSeconds int32 `json:"timeoutSeconds"` SuccessThreshold int32 `json:"successThreshold"` FailureThreshold int32 `json:"failureThreshold"` }
func (*HealthProbe) DeepCopy ¶
func (in *HealthProbe) DeepCopy() *HealthProbe
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthProbe.
func (*HealthProbe) DeepCopyInto ¶
func (in *HealthProbe) DeepCopyInto(out *HealthProbe)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HttpGet ¶
type HttpGet struct { Path string `json:"path"` Port int32 `json:"port"` HttpHeaders []HttpHeader `json:"httpHeaders,omitempty"` }
func (*HttpGet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HttpGet.
func (*HttpGet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HttpHeader ¶
func (*HttpHeader) DeepCopy ¶
func (in *HttpHeader) DeepCopy() *HttpHeader
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HttpHeader.
func (*HttpHeader) DeepCopyInto ¶
func (in *HttpHeader) DeepCopyInto(out *HttpHeader)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InterfaceParam ¶
type InterfaceParam struct { Name string `json:"name"` Val *InterfaceStruct `json:"value"` }
func (*InterfaceParam) DeepCopy ¶
func (in *InterfaceParam) DeepCopy() *InterfaceParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterfaceParam.
func (*InterfaceParam) DeepCopyInto ¶
func (in *InterfaceParam) DeepCopyInto(out *InterfaceParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InterfaceStruct ¶
type InterfaceStruct struct {
// contains filtered or unexported fields
}
func (*InterfaceStruct) DeepCopy ¶
func (in *InterfaceStruct) DeepCopy() *InterfaceStruct
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterfaceStruct.
func (*InterfaceStruct) DeepCopyInto ¶
func (in *InterfaceStruct) DeepCopyInto(out *InterfaceStruct)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InterfaceStruct) MarshalJSON ¶
func (inter *InterfaceStruct) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface.
func (InterfaceStruct) OpenAPISchemaFormat ¶
func (InterfaceStruct) OpenAPISchemaFormat() []string
func (InterfaceStruct) OpenAPISchemaType ¶
func (InterfaceStruct) OpenAPISchemaType() []string
func (*InterfaceStruct) Real ¶
func (inter *InterfaceStruct) Real() []byte
func (*InterfaceStruct) UnmarshalJSON ¶
func (inter *InterfaceStruct) UnmarshalJSON(value []byte) error
UnmarshalJSON implements the json.Unmarshaller interface.
type Memory ¶
/ Memory describes the memory allocation for a container. / / The minimum amount of memory in MB required for running this container. The value should be a positive integer, greater than zero.
func (*Memory) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Memory.
func (*Memory) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModuleStatus ¶
type ModuleStatus struct { // NamespacedName of component NamespacedName string `json:"name,omitempty"` // Kind of component Kind string `json:"kind,omitempty"` // ComponentConfiguration groupVersion GroupVersion string `json:"groupVersion,omitempty"` // Status. Values: Progressing, Ready, Failed Status string `json:"status,omitempty"` }
ModuleStatus is a generic status holder for components +k8s:deepcopy-gen=true
func (*ModuleStatus) DeepCopy ¶
func (in *ModuleStatus) DeepCopy() *ModuleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModuleStatus.
func (*ModuleStatus) DeepCopyInto ¶
func (in *ModuleStatus) DeepCopyInto(out *ModuleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Names ¶
type Names struct { Kind string `json:"kind"` Singular string `json:"singular"` Plural string `json:"plural"` }
func (*Names) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Names.
func (*Names) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Parameter ¶
type Parameter struct { // The parameter's name. Must be unique per component. Name string `json:"name"` // A description of the parameter. // +optional Description string `json:"description,omitempty"` // The parameter's type. One of boolean, number, string, or null // as defined in the JSON specification and the JSON Schema Validation spec ParameterType ParameterType `json:"type"` // Whether a value must be provided for the parameter. // Default is false. // +optional Required bool `json:"required,omitempty"` // The parameter's default value. // type indicated by type field. // +optional Default string `json:"default,omitempty"` }
parameter declaration
func (*Parameter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Parameter.
func (*Parameter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParameterType ¶
type ParameterType string
const ( Boolean ParameterType = "boolean" String ParameterType = "string" Number ParameterType = "number" Null ParameterType = "null" )
type ParameterValue ¶
/ A value that is substituted into a parameter.
func TranslateReverse ¶
func TranslateReverse(v interface{}) []ParameterValue
* Translate struct to []ParameterValue.
func (*ParameterValue) DeepCopy ¶
func (in *ParameterValue) DeepCopy() *ParameterValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterValue.
func (*ParameterValue) DeepCopyInto ¶
func (in *ParameterValue) DeepCopyInto(out *ParameterValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Port ¶
type Port struct { Name string `json:"name"` ContainerPort int32 `json:"port"` Protocol PortProtocol `json:"protocol"` }
func (*Port) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port.
func (*Port) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Resources ¶
type Resources struct { Cpu CPU `json:"cpu"` Memory Memory `json:"memory"` Gpu GPU `json:"gpu"` Volumes []Volume `json:"volumes,omitempty"` Extended []ExtendedResource `json:"extended,omitempty"` }
func (*Resources) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.
func (*Resources) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScopeBinding ¶
type ScopeBinding struct { Name string `json:"name"` Type string `json:"type"` // A properties object (for trait and scope configuration) is an object whose structure is determined by the trait or scope property schema. It may be a simple value, or it may be a complex object. // Properties are validated against the schema appropriate for the trait or scope. Properties []map[string]intstr.IntOrString `json:"properties"` }
func (*ScopeBinding) DeepCopy ¶
func (in *ScopeBinding) DeepCopy() *ScopeBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopeBinding.
func (*ScopeBinding) DeepCopyInto ¶
func (in *ScopeBinding) DeepCopyInto(out *ScopeBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SharingPolicy ¶
type SharingPolicy string
/ SharingPolicy defines whether a filesystem can be shared across containers. / / An Exclusive filesystem can only be attached to one container.
const ( Exclusive SharingPolicy = "Exclusive" )
type TcpSocket ¶
type TcpSocket struct {
Port int32 `json:"port"`
}
func (*TcpSocket) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TcpSocket.
func (*TcpSocket) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Trait ¶
type Trait struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TraitSpec `json:"spec,omitempty"` Status TraitStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true Trait is the Schema for the traits API
func (*Trait) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trait.
func (*Trait) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Trait) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TraitBinding ¶
type TraitBinding struct { Name string `json:"name"` // extension field // +optional InstanceName string `json:"instanceName,omitempty"` // extension field, trait resource reference name // +optional RefName string `json:"refName,omitempty"` Properties []InterfaceParam `json:"properties,omitempty"` }
func (*TraitBinding) DeepCopy ¶
func (in *TraitBinding) DeepCopy() *TraitBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TraitBinding.
func (*TraitBinding) DeepCopyInto ¶
func (in *TraitBinding) DeepCopyInto(out *TraitBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TraitList ¶
type TraitList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Trait `json:"items"` }
TraitList contains a list of Trait
func (*TraitList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TraitList.
func (*TraitList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TraitList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TraitSpec ¶
type TraitSpec struct { Group string `json:"group"` Version string `json:"version"` Names Names `json:"names"` // The list of workload types that this trait applies to. "*" means any workload type // Default is ['*'] // +optional AppliesTo []string `json:"appliesTo,omitempty"` // description of json schema // +optional Properties string `json:"properties,omitempty"` }
TraitSpec defines the desired state of Trait
func (*TraitSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TraitSpec.
func (*TraitSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TraitStatus ¶
type TraitStatus struct { }
TraitStatus defines the observed state of Trait
func (*TraitStatus) DeepCopy ¶
func (in *TraitStatus) DeepCopy() *TraitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TraitStatus.
func (*TraitStatus) DeepCopyInto ¶
func (in *TraitStatus) DeepCopyInto(out *TraitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Variable ¶
/ A value that is substituted into a parameter.
func (*Variable) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable.
func (*Variable) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Volume ¶
type Volume struct { Name string `json:"name"` MountPath string `json:"mountPath"` AccessMode AccessMode `json:"accessMode"` SharingPolicy SharingPolicy `json:"sharingPolicy"` Disk Disk `json:"disk"` }
/ Volume describes a path that is attached to a Container. / / It specifies not only the location, but also the requirements.
func (*Volume) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume.
func (*Volume) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadSetting ¶
type WorkloadSetting struct { Name string `json:"name,omitempty"` Value intstr.IntOrString `json:"value,omitempty"` Type string `json:"type,omitempty"` FromParam string `json:"fromParam,omitempty"` }
func (*WorkloadSetting) DeepCopy ¶
func (in *WorkloadSetting) DeepCopy() *WorkloadSetting
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSetting.
func (*WorkloadSetting) DeepCopyInto ¶
func (in *WorkloadSetting) DeepCopyInto(out *WorkloadSetting)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadType ¶
type WorkloadType struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WorkloadTypeSpec `json:"spec,omitempty"` Status WorkloadTypeStatus `json:"status,omitempty"` }
WorkloadType is the Schema for the workloadtypes API
func (*WorkloadType) DeepCopy ¶
func (in *WorkloadType) DeepCopy() *WorkloadType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadType.
func (*WorkloadType) DeepCopyInto ¶
func (in *WorkloadType) DeepCopyInto(out *WorkloadType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkloadType) DeepCopyObject ¶
func (in *WorkloadType) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkloadTypeList ¶
type WorkloadTypeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []WorkloadType `json:"items"` }
WorkloadTypeList contains a list of WorkloadType
func (*WorkloadTypeList) DeepCopy ¶
func (in *WorkloadTypeList) DeepCopy() *WorkloadTypeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadTypeList.
func (*WorkloadTypeList) DeepCopyInto ¶
func (in *WorkloadTypeList) DeepCopyInto(out *WorkloadTypeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkloadTypeList) DeepCopyObject ¶
func (in *WorkloadTypeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkloadTypeSpec ¶
type WorkloadTypeSpec struct { //The group that this workload type belongs to (e.g. core.hydra.io) Group string `json:"group"` Version string `json:"version"` Names Names `json:"names"` // The workload type's settings options. // +optional Settings []Parameter `json:"settings,omitempty"` }
WorkloadTypeSpec defines the desired state of WorkloadType
func (*WorkloadTypeSpec) DeepCopy ¶
func (in *WorkloadTypeSpec) DeepCopy() *WorkloadTypeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadTypeSpec.
func (*WorkloadTypeSpec) DeepCopyInto ¶
func (in *WorkloadTypeSpec) DeepCopyInto(out *WorkloadTypeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadTypeStatus ¶
type WorkloadTypeStatus struct { }
WorkloadTypeStatus defines the observed state of WorkloadType
func (*WorkloadTypeStatus) DeepCopy ¶
func (in *WorkloadTypeStatus) DeepCopy() *WorkloadTypeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadTypeStatus.
func (*WorkloadTypeStatus) DeepCopyInto ¶
func (in *WorkloadTypeStatus) DeepCopyInto(out *WorkloadTypeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.