v1

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the srl v1 API group +kubebuilder:object:generate=true +groupName=srl.ndd.henderiw.be

Index

Constants

View Source
const (
	Group   = "srl.ndd.henderiw.be"
	Version = "v1"
)

Package type metadata.

View Source
const (
	DeviceMatch                    = "srl_nokia"
	DeviceTypeSRL nddv1.DeviceType = "nokia-srl"
)

Variables

View Source
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
)
View Source
var (
	RegistrationKind             = reflect.TypeOf(Registration{}).Name()
	RegistrationGroupKind        = schema.GroupKind{Group: Group, Kind: RegistrationKind}.String()
	RegistrationKindAPIVersion   = RegistrationKind + "." + GroupVersion.String()
	RegistrationGroupVersionKind = GroupVersion.WithKind(RegistrationKind)
)

Registration type metadata.

Functions

This section is empty.

Types

type Registration

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

	Spec   RegistrationSpec   `json:"spec"`
	Status RegistrationStatus `json:"status,omitempty"`
}

Registration is the Schema for the Registrations API +kubebuilder:subresource:status +kubebuilder:printcolumn:name="TARGET",type="string",JSONPath=".status.conditions[?(@.kind=='TargetFound')].status" +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.conditions[?(@.kind=='Ready')].status" +kubebuilder:printcolumn:name="SYNC",type="string",JSONPath=".status.conditions[?(@.kind=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={ndd,srl},shortName=srlreg

func (*Registration) DeepCopy

func (in *Registration) DeepCopy() *Registration

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

func (*Registration) DeepCopyInto

func (in *Registration) DeepCopyInto(out *Registration)

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

func (*Registration) DeepCopyObject

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

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

func (*Registration) GetActive

func (mg *Registration) GetActive() bool

GetActive of this Registration.

func (*Registration) GetCondition

func (mg *Registration) GetCondition(ck nddv1.ConditionKind) nddv1.Condition

GetCondition of this Registration.

func (*Registration) GetDeletionPolicy

func (mg *Registration) GetDeletionPolicy() nddv1.DeletionPolicy

GetDeletionPolicy of this Registration.

func (*Registration) GetExceptionPaths

func (o *Registration) GetExceptionPaths() []string

func (*Registration) GetExplicitExceptionPaths

func (o *Registration) GetExplicitExceptionPaths() []string

func (*Registration) GetNetworkNodeReference

func (mg *Registration) GetNetworkNodeReference() *nddv1.Reference

GetNetworkNodeReference of this Registration.

func (*Registration) GetSubscriptions

func (o *Registration) GetSubscriptions() []string

func (*Registration) GetTarget added in v0.1.2

func (mg *Registration) GetTarget() []string

GetTarget of this Registration.

func (*Registration) SetActive

func (mg *Registration) SetActive(b bool)

SetActive of this Registration.

func (*Registration) SetConditions

func (mg *Registration) SetConditions(c ...nddv1.Condition)

SetConditions of this Registration.

func (*Registration) SetDeletionPolicy

func (mg *Registration) SetDeletionPolicy(r nddv1.DeletionPolicy)

SetDeletionPolicy of this Registration.

func (*Registration) SetExceptionPaths

func (o *Registration) SetExceptionPaths(ep []string)

func (*Registration) SetExplicitExceptionPaths

func (o *Registration) SetExplicitExceptionPaths(eep []string)

func (*Registration) SetNetworkNodeReference

func (mg *Registration) SetNetworkNodeReference(r *nddv1.Reference)

SetNetworkNodeReference of this Registration.

func (*Registration) SetSubscriotions

func (o *Registration) SetSubscriotions(sub []string)

func (*Registration) SetTarget added in v0.1.2

func (mg *Registration) SetTarget(t []string)

SetTarget of this Registration.

type RegistrationList

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

RegistrationList contains a list of Registration

func (*RegistrationList) DeepCopy

func (in *RegistrationList) DeepCopy() *RegistrationList

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

func (*RegistrationList) DeepCopyInto

func (in *RegistrationList) DeepCopyInto(out *RegistrationList)

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

func (*RegistrationList) DeepCopyObject

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

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

func (*RegistrationList) GetItems

func (l *RegistrationList) GetItems() []resource.Managed

GetItems of this RegistrationList.

type RegistrationObservation

type RegistrationObservation struct {
	Test string `json:"test,omitempty"`
}

RegistrationObservation are the observable fields of a Registration.

func (*RegistrationObservation) DeepCopy

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

func (*RegistrationObservation) DeepCopyInto

func (in *RegistrationObservation) DeepCopyInto(out *RegistrationObservation)

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

type RegistrationParameters

type RegistrationParameters struct {
	// Registrations defines the Registrations the device driver subscribes to for config change notifications
	// +optional
	Subscriptions []string `json:"subscriptions,omitempty"`

	// ExceptionPaths defines the exception paths that should be ignored during change notifications
	// if the xpath contains the exception path it is considered a match
	// +optional
	ExceptionPaths []string `json:"exceptionPaths,omitempty"`

	// ExplicitExceptionPaths defines the exception paths that should be ignored during change notifications
	// the match should be exact to condider this xpath
	// +optional
	ExplicitExceptionPaths []string `json:"explicitExceptionPaths,omitempty"`
}

func (*RegistrationParameters) DeepCopy

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

func (*RegistrationParameters) DeepCopyInto

func (in *RegistrationParameters) DeepCopyInto(out *RegistrationParameters)

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

type RegistrationSpec

type RegistrationSpec struct {
	nddv1.ResourceSpec `json:",inline"`
	ForNetworkNode     RegistrationParameters `json:"forNetworkNode"`
}

A RegistrationSpec defines the desired state of a Registration.

func (*RegistrationSpec) DeepCopy

func (in *RegistrationSpec) DeepCopy() *RegistrationSpec

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

func (*RegistrationSpec) DeepCopyInto

func (in *RegistrationSpec) DeepCopyInto(out *RegistrationSpec)

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

type RegistrationStatus

type RegistrationStatus struct {
	nddv1.ResourceStatus `json:",inline"`
	AtNetworkNode        RegistrationObservation `json:"atNetworkNode,omitempty"`
}

A RegistrationStatus represents the observed state of a Registration.

func (*RegistrationStatus) DeepCopy

func (in *RegistrationStatus) DeepCopy() *RegistrationStatus

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

func (*RegistrationStatus) DeepCopyInto

func (in *RegistrationStatus) DeepCopyInto(out *RegistrationStatus)

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