v1

package
v0.0.0-...-a74e115 Latest Latest
Warning

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

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

Documentation

Overview

Package v1 contains API Schema definitions for the ptp v1 API group +kubebuilder:object:generate=true +groupName=ptp.openshift.io

Index

Constants

View Source
const (
	AmqScheme = "amqp"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "ptp.openshift.io", Version: "v1"}

	// SchemeGroupVersion is group version used to register these objects ADDED MANUALLY
	SchemeGroupVersion = schema.GroupVersion{Group: "ptp.openshift.io", Version: "v1"}

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

func GetInterfaces(config PtpConfig, mode PtpRole) (interfaces []string)

Types

type HwConfig

type HwConfig struct {
	DeviceID string              `json:"deviceID,omitempty"`
	VendorID string              `json:"vendorID,omitempty"`
	Failed   bool                `json:"failed,omitempty"`
	Status   string              `json:"status,omitempty"`
	Config   *apiextensions.JSON `json:"config,omitempty"`
}

func (*HwConfig) DeepCopy

func (in *HwConfig) DeepCopy() *HwConfig

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

func (*HwConfig) DeepCopyInto

func (in *HwConfig) DeepCopyInto(out *HwConfig)

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

type MatchRule

type MatchRule struct {
	NodeLabel *string `json:"nodeLabel,omitempty"`
	NodeName  *string `json:"nodeName,omitempty"`
}

func (*MatchRule) DeepCopy

func (in *MatchRule) DeepCopy() *MatchRule

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

func (*MatchRule) DeepCopyInto

func (in *MatchRule) DeepCopyInto(out *MatchRule)

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

type NodeMatchList

type NodeMatchList struct {
	NodeName *string `json:"nodeName"`
	Profile  *string `json:"profile"`
}

func (*NodeMatchList) DeepCopy

func (in *NodeMatchList) DeepCopy() *NodeMatchList

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

func (*NodeMatchList) DeepCopyInto

func (in *NodeMatchList) DeepCopyInto(out *NodeMatchList)

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

type NodePtpDevice

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

	Spec   NodePtpDeviceSpec   `json:"spec,omitempty"`
	Status NodePtpDeviceStatus `json:"status,omitempty"`
}

NodePtpDevice is the Schema for the nodeptpdevices API

func (*NodePtpDevice) DeepCopy

func (in *NodePtpDevice) DeepCopy() *NodePtpDevice

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

func (*NodePtpDevice) DeepCopyInto

func (in *NodePtpDevice) DeepCopyInto(out *NodePtpDevice)

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

func (*NodePtpDevice) DeepCopyObject

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

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

type NodePtpDeviceList

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

NodePtpDeviceList contains a list of NodePtpDevice

func (*NodePtpDeviceList) DeepCopy

func (in *NodePtpDeviceList) DeepCopy() *NodePtpDeviceList

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

func (*NodePtpDeviceList) DeepCopyInto

func (in *NodePtpDeviceList) DeepCopyInto(out *NodePtpDeviceList)

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

func (*NodePtpDeviceList) DeepCopyObject

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

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

type NodePtpDeviceSpec

type NodePtpDeviceSpec struct {
}

NodePtpDeviceSpec defines the desired state of NodePtpDevice

func (*NodePtpDeviceSpec) DeepCopy

func (in *NodePtpDeviceSpec) DeepCopy() *NodePtpDeviceSpec

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

func (*NodePtpDeviceSpec) DeepCopyInto

func (in *NodePtpDeviceSpec) DeepCopyInto(out *NodePtpDeviceSpec)

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

type NodePtpDeviceStatus

type NodePtpDeviceStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Devices  []PtpDevice `json:"devices,omitempty"`
	Hwconfig []HwConfig  `json:"hwconfig,omitempty"`
}

NodePtpDeviceStatus defines the observed state of NodePtpDevice

func (*NodePtpDeviceStatus) DeepCopy

func (in *NodePtpDeviceStatus) DeepCopy() *NodePtpDeviceStatus

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

func (*NodePtpDeviceStatus) DeepCopyInto

func (in *NodePtpDeviceStatus) DeepCopyInto(out *NodePtpDeviceStatus)

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

type PtpClockThreshold

type PtpClockThreshold struct {
	// +kubebuilder:default=5
	// clock state to stay in holdover state in secs
	HoldOverTimeout int64 `json:"holdOverTimeout,omitempty"`
	// +kubebuilder:default=100
	// max offset in nano secs
	MaxOffsetThreshold int64 `json:"maxOffsetThreshold,omitempty"`
	// +kubebuilder:default=-100
	// min offset in nano secs
	MinOffsetThreshold int64 `json:"minOffsetThreshold,omitempty"`
}

func (*PtpClockThreshold) DeepCopy

func (in *PtpClockThreshold) DeepCopy() *PtpClockThreshold

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

func (*PtpClockThreshold) DeepCopyInto

func (in *PtpClockThreshold) DeepCopyInto(out *PtpClockThreshold)

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

type PtpConfig

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

	Spec   PtpConfigSpec   `json:"spec,omitempty"`
	Status PtpConfigStatus `json:"status,omitempty"`
}

PtpConfig is the Schema for the ptpconfigs API

func (*PtpConfig) DeepCopy

func (in *PtpConfig) DeepCopy() *PtpConfig

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

func (*PtpConfig) DeepCopyInto

func (in *PtpConfig) DeepCopyInto(out *PtpConfig)

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

func (*PtpConfig) DeepCopyObject

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

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

func (*PtpConfig) SetupWebhookWithManager

func (r *PtpConfig) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*PtpConfig) ValidateCreate

func (r *PtpConfig) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*PtpConfig) ValidateDelete

func (r *PtpConfig) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*PtpConfig) ValidateUpdate

func (r *PtpConfig) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type PtpConfigList

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

PtpConfigList contains a list of PtpConfig

func (*PtpConfigList) DeepCopy

func (in *PtpConfigList) DeepCopy() *PtpConfigList

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

func (*PtpConfigList) DeepCopyInto

func (in *PtpConfigList) DeepCopyInto(out *PtpConfigList)

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

func (*PtpConfigList) DeepCopyObject

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

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

type PtpConfigSpec

type PtpConfigSpec struct {
	Profile   []PtpProfile   `json:"profile"`
	Recommend []PtpRecommend `json:"recommend"`
}

PtpConfigSpec defines the desired state of PtpConfig

func (*PtpConfigSpec) DeepCopy

func (in *PtpConfigSpec) DeepCopy() *PtpConfigSpec

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

func (*PtpConfigSpec) DeepCopyInto

func (in *PtpConfigSpec) DeepCopyInto(out *PtpConfigSpec)

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

type PtpConfigStatus

type PtpConfigStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	MatchList []NodeMatchList `json:"matchList,omitempty"`
}

PtpConfigStatus defines the observed state of PtpConfig

func (*PtpConfigStatus) DeepCopy

func (in *PtpConfigStatus) DeepCopy() *PtpConfigStatus

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

func (*PtpConfigStatus) DeepCopyInto

func (in *PtpConfigStatus) DeepCopyInto(out *PtpConfigStatus)

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

type PtpDevice

type PtpDevice struct {
	Name    string `json:"name,omitempty"`
	Profile string `json:"profile,omitempty"`
}

func (*PtpDevice) DeepCopy

func (in *PtpDevice) DeepCopy() *PtpDevice

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

func (*PtpDevice) DeepCopyInto

func (in *PtpDevice) DeepCopyInto(out *PtpDevice)

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

type PtpEventConfig

type PtpEventConfig struct {
	// +kubebuilder:default=false
	// EnableEventPublisher will deploy event proxy as a sidecar
	EnableEventPublisher bool `json:"enableEventPublisher,omitempty"`
	// TransportHost format is <protocol>://<transport-service>.<namespace>.svc.cluster.local:<transport-port>
	// Example HTTP transport: "http://ptp-event-publisher-service-NODE_NAME.openshift-ptp.svc.cluster.local:9043"
	// Example AMQP transport: "amqp://amq-router-service-name.amq-namespace.svc.cluster.local"
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Transport Host",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"}
	TransportHost string `json:"transportHost,omitempty"`
	// StorageType is the name of StorageClass providing persist storage used by HTTP transport to store subscription data
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Storage Type",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"}
	StorageType string `json:"storageType,omitempty"`
}

PtpEventConfig defines the desired state of event framework

func (*PtpEventConfig) DeepCopy

func (in *PtpEventConfig) DeepCopy() *PtpEventConfig

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

func (*PtpEventConfig) DeepCopyInto

func (in *PtpEventConfig) DeepCopyInto(out *PtpEventConfig)

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

type PtpOperatorConfig

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

	Spec   PtpOperatorConfigSpec   `json:"spec,omitempty"`
	Status PtpOperatorConfigStatus `json:"status,omitempty"`
}

PtpOperatorConfig is the Schema for the ptpoperatorconfigs API

func (*PtpOperatorConfig) DeepCopy

func (in *PtpOperatorConfig) DeepCopy() *PtpOperatorConfig

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

func (*PtpOperatorConfig) DeepCopyInto

func (in *PtpOperatorConfig) DeepCopyInto(out *PtpOperatorConfig)

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

func (*PtpOperatorConfig) DeepCopyObject

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

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

func (*PtpOperatorConfig) SetupWebhookWithManager

func (r *PtpOperatorConfig) SetupWebhookWithManager(mgr ctrl.Manager, client client.Client) error

func (*PtpOperatorConfig) ValidateCreate

func (r *PtpOperatorConfig) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*PtpOperatorConfig) ValidateDelete

func (r *PtpOperatorConfig) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*PtpOperatorConfig) ValidateUpdate

func (r *PtpOperatorConfig) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type PtpOperatorConfigList

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

PtpOperatorConfigList contains a list of PtpOperatorConfig

func (*PtpOperatorConfigList) DeepCopy

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

func (*PtpOperatorConfigList) DeepCopyInto

func (in *PtpOperatorConfigList) DeepCopyInto(out *PtpOperatorConfigList)

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

func (*PtpOperatorConfigList) DeepCopyObject

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

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

type PtpOperatorConfigSpec

type PtpOperatorConfigSpec struct {
	DaemonNodeSelector map[string]string `json:"daemonNodeSelector"`
	// EventConfig to configure event sidecar
	EventConfig    *PtpEventConfig                 `json:"ptpEventConfig,omitempty"`
	EnabledPlugins *map[string]*apiextensions.JSON `json:"plugins,omitempty"`
}

PtpOperatorConfigSpec defines the desired state of PtpOperatorConfig

func (*PtpOperatorConfigSpec) DeepCopy

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

func (*PtpOperatorConfigSpec) DeepCopyInto

func (in *PtpOperatorConfigSpec) DeepCopyInto(out *PtpOperatorConfigSpec)

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

type PtpOperatorConfigStatus

type PtpOperatorConfigStatus struct {
}

PtpOperatorConfigStatus defines the observed state of PtpOperatorConfig

func (*PtpOperatorConfigStatus) DeepCopy

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

func (*PtpOperatorConfigStatus) DeepCopyInto

func (in *PtpOperatorConfigStatus) DeepCopyInto(out *PtpOperatorConfigStatus)

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

type PtpProfile

type PtpProfile struct {
	Name        *string `json:"name"`
	Interface   *string `json:"interface,omitempty"`
	Ptp4lOpts   *string `json:"ptp4lOpts,omitempty"`
	Phc2sysOpts *string `json:"phc2sysOpts,omitempty"`
	Ts2PhcOpts  *string `json:"ts2phcOpts,omitempty"`
	Ptp4lConf   *string `json:"ptp4lConf,omitempty"`
	Phc2sysConf *string `json:"phc2sysConf,omitempty"`
	Ts2PhcConf  *string `json:"ts2phcConf,omitempty"`
	// +kubebuilder:validation:Enum=SCHED_OTHER;SCHED_FIFO;
	PtpSchedulingPolicy *string `json:"ptpSchedulingPolicy,omitempty"`
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=65
	PtpSchedulingPriority *int64                         `json:"ptpSchedulingPriority,omitempty"`
	PtpClockThreshold     *PtpClockThreshold             `json:"ptpClockThreshold,omitempty"`
	PtpSettings           map[string]string              `json:"ptpSettings,omitempty"`
	Plugins               map[string]*apiextensions.JSON `json:"plugins,omitempty"`
}

func (*PtpProfile) DeepCopy

func (in *PtpProfile) DeepCopy() *PtpProfile

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

func (*PtpProfile) DeepCopyInto

func (in *PtpProfile) DeepCopyInto(out *PtpProfile)

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

type PtpRecommend

type PtpRecommend struct {
	Profile  *string     `json:"profile"`
	Priority *int64      `json:"priority"`
	Match    []MatchRule `json:"match,omitempty"`
}

func (*PtpRecommend) DeepCopy

func (in *PtpRecommend) DeepCopy() *PtpRecommend

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

func (*PtpRecommend) DeepCopyInto

func (in *PtpRecommend) DeepCopyInto(out *PtpRecommend)

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

type PtpRole

type PtpRole int
const (
	Master PtpRole = 1
	Slave  PtpRole = 0
)

Jump to

Keyboard shortcuts

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