Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the automation v1alpha1 API group +kubebuilder:object:generate=true +groupName=config.nephio.org
Index ¶
- Variables
- type Condition
- type ConditionReason
- type ConditionType
- type ConditionedStatus
- func (in *ConditionedStatus) DeepCopy() *ConditionedStatus
- func (in *ConditionedStatus) DeepCopyInto(out *ConditionedStatus)
- func (r *ConditionedStatus) Equal(other *ConditionedStatus) bool
- func (r *ConditionedStatus) GetCondition(t ConditionType) Condition
- func (r *ConditionedStatus) SetConditions(c ...Condition)
- type Network
- type NetworkList
- type NetworkSpec
- type NetworkStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "config.nephio.org", 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 )
var ( NetworkKind = reflect.TypeOf(Network{}).Name() NetworkGroupKind = schema.GroupKind{Group: GroupVersion.Group, Kind: NetworkKind}.String() NetworkKindAPIVersion = NetworkKind + "." + GroupVersion.String() NetworkGroupVersionKind = GroupVersion.WithKind(NetworkKind) )
Network type metadata.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
func Ready ¶
func Ready() Condition
Ready returns a condition that indicates the resource is ready for use.
func Unknown ¶
func Unknown() Condition
Unknown returns a condition that indicates the resource is in an unknown status.
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Condition) Equal ¶
Equal returns true if the condition is identical to the supplied condition, ignoring the LastTransitionTime.
func (Condition) WithMessage ¶
WithMessage returns a condition by adding the provided message to existing condition.
type ConditionReason ¶
type ConditionReason string
A ConditionReason represents the reason a resource is in a condition.
const ( ConditionReasonReady ConditionReason = "Ready" ConditionReasonFailed ConditionReason = "Failed" ConditionReasonUnknown ConditionReason = "Unknown" )
Reasons a resource is ready or not
type ConditionType ¶
type ConditionType string
A ConditionType represents a condition type for a given KRM resource
const ( // ConditionTypeReady represents the resource ready condition ConditionTypeReady ConditionType = "Ready" )
Condition Types.
type ConditionedStatus ¶
type ConditionedStatus struct { // Conditions of the resource. // +optional Conditions []Condition `json:"conditions,omitempty"` }
A ConditionedStatus reflects the observed status of a resource. Only one condition of each type may exist.
func NewConditionedStatus ¶
func NewConditionedStatus(c ...Condition) *ConditionedStatus
NewConditionedStatus returns a stat with the supplied conditions set.
func (*ConditionedStatus) DeepCopy ¶
func (in *ConditionedStatus) DeepCopy() *ConditionedStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionedStatus.
func (*ConditionedStatus) DeepCopyInto ¶
func (in *ConditionedStatus) DeepCopyInto(out *ConditionedStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConditionedStatus) Equal ¶
func (r *ConditionedStatus) Equal(other *ConditionedStatus) bool
Equal returns true if the status is identical to the supplied status, ignoring the LastTransitionTimes and order of statuses.
func (*ConditionedStatus) GetCondition ¶
func (r *ConditionedStatus) GetCondition(t ConditionType) Condition
GetCondition returns the condition for the given ConditionKind if exists, otherwise returns nil
func (*ConditionedStatus) SetConditions ¶
func (r *ConditionedStatus) SetConditions(c ...Condition)
SetConditions sets the supplied conditions, replacing any existing conditions of the same type. This is a no-op if all supplied conditions are identical, ignoring the last transition time, to those already set.
type Network ¶
type Network struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NetworkSpec `json:"spec,omitempty"` Status NetworkStatus `json:"status,omitempty"` }
Network is the Schema for the Network API
func BuildNetworkConfig ¶
func BuildNetworkConfig(meta metav1.ObjectMeta, spec NetworkSpec, status NetworkStatus) *Network
BuildNetworkConfig returns a Network from a client Object a crName and an Network Spec/Status
func (*Network) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Network.
func (*Network) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Network) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Network) GetCondition ¶
func (r *Network) GetCondition(t ConditionType) Condition
GetCondition returns the condition based on the condition kind
func (*Network) SetConditions ¶
SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once
type NetworkList ¶
type NetworkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Network `json:"items"` }
NetworkList contains a list of Repositories
func (*NetworkList) DeepCopy ¶
func (in *NetworkList) DeepCopy() *NetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkList.
func (*NetworkList) DeepCopyInto ¶
func (in *NetworkList) DeepCopyInto(out *NetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkList) DeepCopyObject ¶
func (in *NetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkSpec ¶
type NetworkSpec struct { // Lifecycle determines the lifecycle policies the resource e.g. delete is orphan or delete // will follow Lifecycle commonv1alpha1.Lifecycle `json:"lifecycle,omitempty" yaml:"lifecycle,omitempty"` // Config defines the configuration to be applied to a target device //+kubebuilder:pruning:PreserveUnknownFields Config runtime.RawExtension `json:"config,omitempty" yaml:"config,omitempty"` }
NetworkSpec defines the desired state of Network Configuration
func (*NetworkSpec) DeepCopy ¶
func (in *NetworkSpec) DeepCopy() *NetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkSpec.
func (*NetworkSpec) DeepCopyInto ¶
func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkStatus ¶
type NetworkStatus struct { // ConditionedStatus provides the status of the Readiness using conditions // if the condition is true the other attributes in the status are meaningful ConditionedStatus `json:",inline" yaml:",inline"` // LastAppliedConfig defines the configuration that was last applied to the target device //+kubebuilder:pruning:PreserveUnknownFields LastAppliedConfig runtime.RawExtension `json:"lastAppliedConfig,omitempty" yaml:"lastAppliedConfig,omitempty"` }
NetworkStatus defines the observed state of Network
func (*NetworkStatus) DeepCopy ¶
func (in *NetworkStatus) DeepCopy() *NetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkStatus.
func (*NetworkStatus) DeepCopyInto ¶
func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.