v1alpha1

package
v0.0.0-...-bbdab01 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the fdo v1alpha1 API group +kubebuilder:object:generate=true +groupName=fdo.redhat.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "fdo.redhat.com", 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 Command

type Command struct {
	Command      string   `json:"command"`
	Args         []string `json:"args"`
	MayFail      bool     `json:"mayFail,omitempty"`
	ReturnStdOut bool     `json:"returnStdOut,omitempty"`
	ReturnStdErr bool     `json:"returnStdErr,omitempty"`
}

func (*Command) DeepCopy

func (in *Command) DeepCopy() *Command

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

func (*Command) DeepCopyInto

func (in *Command) DeepCopyInto(out *Command)

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

type DIUN

type DIUN struct {
	// +kubebuilder:validation:Enum=SECP256R1;SECP384R1
	KeyType string `json:"keyType"`
	// +kubebuilder:validation:MinItems=1
	AllowedKeyStorageTypes []KeyStorageType `json:"allowedKeyStorageTypes"`
}

func (*DIUN) DeepCopy

func (in *DIUN) DeepCopy() *DIUN

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

func (*DIUN) DeepCopyInto

func (in *DIUN) DeepCopyInto(out *DIUN)

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

type DiskEncryptionClevis

type DiskEncryptionClevis struct {
	DiskLabel string                                  `json:"diskLabel"`
	Binding   *ServiceInfoDiskEncryptionClevisBinding `json:"binding"`
	ReEncrypt bool                                    `json:"reencrypt"`
}

func (*DiskEncryptionClevis) DeepCopy

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

func (*DiskEncryptionClevis) DeepCopyInto

func (in *DiskEncryptionClevis) DeepCopyInto(out *DiskEncryptionClevis)

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

type FDOManufacturingServer

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

	Spec   FDOManufacturingServerSpec   `json:"spec,omitempty"`
	Status FDOManufacturingServerStatus `json:"status,omitempty"`
}

FDOManufacturingServer is the Schema for the fdomanufacturingservers API

func (*FDOManufacturingServer) DeepCopy

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

func (*FDOManufacturingServer) DeepCopyInto

func (in *FDOManufacturingServer) DeepCopyInto(out *FDOManufacturingServer)

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

func (*FDOManufacturingServer) DeepCopyObject

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

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

func (*FDOManufacturingServer) GetConditions

func (m *FDOManufacturingServer) GetConditions() []metav1.Condition

func (*FDOManufacturingServer) SetConditions

func (m *FDOManufacturingServer) SetConditions(conditions []metav1.Condition)

type FDOManufacturingServerList

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

FDOManufacturingServerList contains a list of FDOManufacturingServer

func (*FDOManufacturingServerList) DeepCopy

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

func (*FDOManufacturingServerList) DeepCopyInto

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

func (*FDOManufacturingServerList) DeepCopyObject

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

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

type FDOManufacturingServerSpec

type FDOManufacturingServerSpec struct {

	// Container image
	// +kubebuilder:default="quay.io/fido-fdo/manufacturing-server:0.4"
	Image string `json:"image,omitempty"`

	// Log level: TRACE, DEBUG, INFO(default), WARN, ERROR or OFF
	// +kubebuilder:validation:Enum=TRACE;DEBUG;INFO;WARN;ERROR;OFF
	LogLevel string `json:"logLevel,omitempty"`

	// List of rendezvous servers
	// +listType=atomic
	RendezvousServers []RendezvousServer `json:"rendezvousServers"`

	Protocols *Protocols `json:"protocols"`
}

FDOManufacturingServerSpec defines the desired state of FDOManufacturingServer

func (*FDOManufacturingServerSpec) DeepCopy

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

func (*FDOManufacturingServerSpec) DeepCopyInto

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

type FDOManufacturingServerStatus

type FDOManufacturingServerStatus struct {

	// Pods lists all pods running the rendezvous server
	Pods []string `json:"pods,omitempty"`

	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

FDOManufacturingServerStatus defines the observed state of FDOManufacturingServer

func (*FDOManufacturingServerStatus) DeepCopy

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

func (*FDOManufacturingServerStatus) DeepCopyInto

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

type FDOOnboardingServer

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

	Spec   FDOOnboardingServerSpec   `json:"spec,omitempty"`
	Status FDOOnboardingServerStatus `json:"status,omitempty"`
}

FDOOnboardingServer is the Schema for the fdoonboardingservers API

func (*FDOOnboardingServer) DeepCopy

func (in *FDOOnboardingServer) DeepCopy() *FDOOnboardingServer

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

func (*FDOOnboardingServer) DeepCopyInto

func (in *FDOOnboardingServer) DeepCopyInto(out *FDOOnboardingServer)

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

func (*FDOOnboardingServer) DeepCopyObject

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

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

func (*FDOOnboardingServer) GetConditions

func (m *FDOOnboardingServer) GetConditions() []metav1.Condition

func (*FDOOnboardingServer) SetConditions

func (m *FDOOnboardingServer) SetConditions(conditions []metav1.Condition)

type FDOOnboardingServerList

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

FDOOnboardingServerList contains a list of FDOOnboardingServer

func (*FDOOnboardingServerList) DeepCopy

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

func (*FDOOnboardingServerList) DeepCopyInto

func (in *FDOOnboardingServerList) DeepCopyInto(out *FDOOnboardingServerList)

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

func (*FDOOnboardingServerList) DeepCopyObject

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

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

type FDOOnboardingServerSpec

type FDOOnboardingServerSpec struct {

	// Owner-onboarding server container image
	// +kubebuilder:default="quay.io/fido-fdo/owner-onboarding-server:0.4"
	OwnerOnboardingImage string `json:"ownerOnboardingImage,omitempty"`

	// ServiceInfo API server container image
	// +kubebuilder:default="quay.io/fido-fdo/serviceinfo-api-server:0.4"
	ServiceInfoImage string `json:"serviceInfoImage,omitempty"`

	// Service info device onboarding sequence
	ServiceInfo *ServiceInfo `json:"serviceInfo,omitempty"`
}

FDOOnboardingServerSpec defines the desired state of FDOOnboardingServer

func (*FDOOnboardingServerSpec) DeepCopy

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

func (*FDOOnboardingServerSpec) DeepCopyInto

func (in *FDOOnboardingServerSpec) DeepCopyInto(out *FDOOnboardingServerSpec)

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

type FDOOnboardingServerStatus

type FDOOnboardingServerStatus struct {

	// Pods lists all pods running the onboarding server
	Pods []string `json:"pods,omitempty"`

	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

FDOOnboardingServerStatus defines the observed state of FDOOnboardingServer

func (*FDOOnboardingServerStatus) DeepCopy

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

func (*FDOOnboardingServerStatus) DeepCopyInto

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

type FDORendezvousServer

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

	Spec   FDORendezvousServerSpec   `json:"spec,omitempty"`
	Status FDORendezvousServerStatus `json:"status,omitempty"`
}

FDORendezvousServer is the Schema for the fdorendezvousservers API

func (*FDORendezvousServer) DeepCopy

func (in *FDORendezvousServer) DeepCopy() *FDORendezvousServer

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

func (*FDORendezvousServer) DeepCopyInto

func (in *FDORendezvousServer) DeepCopyInto(out *FDORendezvousServer)

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

func (*FDORendezvousServer) DeepCopyObject

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

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

func (*FDORendezvousServer) GetConditions

func (m *FDORendezvousServer) GetConditions() []metav1.Condition

func (*FDORendezvousServer) SetConditions

func (m *FDORendezvousServer) SetConditions(conditions []metav1.Condition)

type FDORendezvousServerList

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

FDORendezvousServerList contains a list of FDORendezvousServer

func (*FDORendezvousServerList) DeepCopy

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

func (*FDORendezvousServerList) DeepCopyInto

func (in *FDORendezvousServerList) DeepCopyInto(out *FDORendezvousServerList)

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

func (*FDORendezvousServerList) DeepCopyObject

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

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

type FDORendezvousServerSpec

type FDORendezvousServerSpec struct {

	// Rendezvous server container image
	// +kubebuilder:default="quay.io/fido-fdo/rendezvous-server:0.4"
	Image string `json:"image,omitempty"`
}

FDORendezvousServerSpec defines the desired state of FDORendezvousServer

func (*FDORendezvousServerSpec) DeepCopy

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

func (*FDORendezvousServerSpec) DeepCopyInto

func (in *FDORendezvousServerSpec) DeepCopyInto(out *FDORendezvousServerSpec)

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

type FDORendezvousServerStatus

type FDORendezvousServerStatus struct {

	// Pods lists all pods running the rendezvous server
	Pods []string `json:"pods,omitempty"`

	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

FDORendezvousServerStatus defines the observed state of FDORendezvousServer

func (*FDORendezvousServerStatus) DeepCopy

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

func (*FDORendezvousServerStatus) DeepCopyInto

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

type InitialUser

type InitialUser struct {
	Username string   `json:"username"`
	Password string   `json:"password,omitempty"`
	SSHKeys  []string `json:"sshKeys,omitempty"`
}

func (*InitialUser) DeepCopy

func (in *InitialUser) DeepCopy() *InitialUser

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

func (*InitialUser) DeepCopyInto

func (in *InitialUser) DeepCopyInto(out *InitialUser)

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

type KeyStorageType

type KeyStorageType string

+kubebuilder:validation:Enum=FileSystem;Tpm

type Protocols

type Protocols struct {
	PlainDI bool  `json:"plainDI"`
	DIUN    *DIUN `json:"diun,omitempty"`
}

func (*Protocols) DeepCopy

func (in *Protocols) DeepCopy() *Protocols

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

func (*Protocols) DeepCopyInto

func (in *Protocols) DeepCopyInto(out *Protocols)

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

type RendezvousServer

type RendezvousServer struct {

	// Hostname of a rendezvous server, must select either a hostname or an IP address
	DNS string `json:"dns,omitempty"`

	// IP address of a rendezvous server, must select either an IP address or a hostname
	IPAddress string `json:"ipAddress,omitempty"`

	// Rendezvous port for device connections
	DevicePort uint16 `json:"devicePort,omitempty"`

	// Rendezvous port for owner connections
	OwnerPort uint16 `json:"ownerPort,omitempty"`

	// Rendezvous transport protocol - tcp, tls (default), http, coap, https or coaps
	// +kubebuilder:validation:Enum=tcp;tls;http;coap;https;coaps
	Protocol string `json:"protocol,omitempty"`
}

RendezvousServer defines an entry of rendezvous server configuration

func (*RendezvousServer) DeepCopy

func (in *RendezvousServer) DeepCopy() *RendezvousServer

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

func (*RendezvousServer) DeepCopyInto

func (in *RendezvousServer) DeepCopyInto(out *RendezvousServer)

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

type ServiceInfo

type ServiceInfo struct {
	InitialUser            *InitialUser           `json:"initialUser,omitempty"`
	Commands               []Command              `json:"commands,omitempty"`
	DiskEncryptionClevises []DiskEncryptionClevis `json:"diskencryptionClevis,omitempty"`
}

ServiceInfo defines a custom device onboarding sequence run through service info API

func (*ServiceInfo) DeepCopy

func (in *ServiceInfo) DeepCopy() *ServiceInfo

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

func (*ServiceInfo) DeepCopyInto

func (in *ServiceInfo) DeepCopyInto(out *ServiceInfo)

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

type ServiceInfoDiskEncryptionClevisBinding

type ServiceInfoDiskEncryptionClevisBinding struct {
	Pin    string `json:"pin,omitempty"`
	Config string `json:"config,omitempty"`
}

func (*ServiceInfoDiskEncryptionClevisBinding) DeepCopy

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

func (*ServiceInfoDiskEncryptionClevisBinding) DeepCopyInto

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