v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the management v1alpha1 API group +kubebuilder:object:generate=true +groupName=management.project-flotta.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "management.project-flotta.io", 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 Boot

type Boot struct {

	// current boot mode
	CurrentBootMode string `json:"currentBootMode,omitempty"`

	// pxe interface
	PxeInterface string `json:"pxeInterface,omitempty"`
}

func (*Boot) DeepCopy

func (in *Boot) DeepCopy() *Boot

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

func (*Boot) DeepCopyInto

func (in *Boot) DeepCopyInto(out *Boot)

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

type CPU

type CPU struct {

	// architecture
	Architecture string `json:"architecture,omitempty"`

	// count
	Count int64 `json:"count,omitempty"`

	// flags
	Flags []string `json:"flags"`

	// frequency
	Frequency string `json:"frequency,omitempty"`

	// model name
	ModelName string `json:"modelName,omitempty"`
}

func (*CPU) DeepCopy

func (in *CPU) DeepCopy() *CPU

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

func (*CPU) DeepCopyInto

func (in *CPU) DeepCopyInto(out *CPU)

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

type ClockMhz

type ClockMhz float64

type ContainerMetricsConfiguration

type ContainerMetricsConfiguration struct {
	// Path to use when retrieving metrics
	// +kubebuilder:default=/
	Path string `json:"path,omitempty"`

	// Port to use when retrieve the metrics
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=65535
	Port int32 `json:"port,omitempty"`

	// Interval(in seconds) to scrape metrics endpoint.
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:default=60
	Interval int32 `json:"interval,omitempty"`

	// Specification of workload metrics to be collected
	AllowList *NameRef `json:"allowList,omitempty"`

	Containers map[string]*MetricsConfigEntity `json:"containers,omitempty"`
}

func (*ContainerMetricsConfiguration) DeepCopy

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

func (*ContainerMetricsConfiguration) DeepCopyInto

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

type DataConfiguration

type DataConfiguration struct {
	Paths []DataPath `json:"paths,omitempty"`
}

func (*DataConfiguration) DeepCopy

func (in *DataConfiguration) DeepCopy() *DataConfiguration

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

func (*DataConfiguration) DeepCopyInto

func (in *DataConfiguration) DeepCopyInto(out *DataConfiguration)

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

type DataPath

type DataPath struct {
	Source string `json:"source"`
	Target string `json:"target"`
}

func (*DataPath) DeepCopy

func (in *DataPath) DeepCopy() *DataPath

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

func (*DataPath) DeepCopyInto

func (in *DataPath) DeepCopyInto(out *DataPath)

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

type Deployment

type Deployment struct {
	Name               string              `json:"name"`
	Phase              EdgeDeploymentPhase `json:"phase,omitempty"`
	LastTransitionTime metav1.Time         `json:"lastTransitionTime,omitempty"`
	LastDataUpload     metav1.Time         `json:"lastDataUpload,omitempty"`
}

func (*Deployment) DeepCopy

func (in *Deployment) DeepCopy() *Deployment

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

func (*Deployment) DeepCopyInto

func (in *Deployment) DeepCopyInto(out *Deployment)

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

type DeviceConfiguration

type DeviceConfiguration struct {

	// heartbeat
	Heartbeat *HeartbeatConfiguration `json:"heartbeat,omitempty"`

	// storage
	Storage *StorageConfiguration `json:"storage,omitempty"`
}

func (*DeviceConfiguration) DeepCopy

func (in *DeviceConfiguration) DeepCopy() *DeviceConfiguration

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

func (*DeviceConfiguration) DeepCopyInto

func (in *DeviceConfiguration) DeepCopyInto(out *DeviceConfiguration)

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

type Disk

type Disk struct {

	// bootable
	Bootable bool `json:"bootable,omitempty"`

	// by-id is the World Wide Number of the device which guaranteed to be unique for every storage device
	ByID string `json:"byId,omitempty"`

	// by-path is the shortest physical path to the device
	ByPath string `json:"byPath,omitempty"`

	// drive type
	DriveType string `json:"driveType,omitempty"`

	// hctl
	Hctl string `json:"hctl,omitempty"`

	// Determine the disk's unique identifier which is the by-id field if it exists and fallback to the by-path field otherwise
	ID string `json:"id,omitempty"`

	// io perf
	IoPerf *IoPerf `json:"ioPerf,omitempty"`

	// Whether the disk appears to be an installation media or not
	IsInstallationMedia bool `json:"isInstallationMedia,omitempty"`

	// model
	Model string `json:"model,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// path
	Path string `json:"path,omitempty"`

	// serial
	Serial string `json:"serial,omitempty"`

	// size bytes
	SizeBytes int64 `json:"sizeBytes,omitempty"`

	// smart
	Smart string `json:"smart,omitempty"`

	// vendor
	Vendor string `json:"vendor,omitempty"`

	// wwn
	Wwn string `json:"wwn,omitempty"`
}

func (*Disk) DeepCopy

func (in *Disk) DeepCopy() *Disk

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

func (*Disk) DeepCopyInto

func (in *Disk) DeepCopyInto(out *Disk)

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

type EdgeDeployment

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

	Spec   EdgeDeploymentSpec   `json:"spec,omitempty"`
	Status EdgeDeploymentStatus `json:"status,omitempty"`
}

EdgeDeployment is the Schema for the edgedeployments API

func (*EdgeDeployment) DeepCopy

func (in *EdgeDeployment) DeepCopy() *EdgeDeployment

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

func (*EdgeDeployment) DeepCopyInto

func (in *EdgeDeployment) DeepCopyInto(out *EdgeDeployment)

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

func (*EdgeDeployment) DeepCopyObject

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

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

func (*EdgeDeployment) SetupWebhookWithManager

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

func (*EdgeDeployment) ValidateCreate

func (r *EdgeDeployment) ValidateCreate() error

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

func (*EdgeDeployment) ValidateDelete

func (r *EdgeDeployment) ValidateDelete() error

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

func (*EdgeDeployment) ValidateUpdate

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

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

type EdgeDeploymentList

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

EdgeDeploymentList contains a list of EdgeDeployment

func (*EdgeDeploymentList) DeepCopy

func (in *EdgeDeploymentList) DeepCopy() *EdgeDeploymentList

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

func (*EdgeDeploymentList) DeepCopyInto

func (in *EdgeDeploymentList) DeepCopyInto(out *EdgeDeploymentList)

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

func (*EdgeDeploymentList) DeepCopyObject

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

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

type EdgeDeploymentPhase

type EdgeDeploymentPhase string
const (
	Deploying EdgeDeploymentPhase = "Deploying"
	Running   EdgeDeploymentPhase = "Running"
	Exited    EdgeDeploymentPhase = "Exited"
)

type EdgeDeploymentSpec

type EdgeDeploymentSpec struct {
	DeviceSelector  *metav1.LabelSelector          `json:"deviceSelector,omitempty"`
	Device          string                         `json:"device,omitempty"`
	Type            EdgeDeploymentType             `json:"type"`
	Pod             Pod                            `json:"pod,omitempty"`
	Data            *DataConfiguration             `json:"data,omitempty"`
	ImageRegistries *ImageRegistriesConfiguration  `json:"imageRegistries,omitempty"`
	Metrics         *ContainerMetricsConfiguration `json:"metrics,omitempty"`

	// LogCollection is the logCollection property to be used to collect logs
	// from this endpoint. This key is what is defined on the edgedevice
	// logCollection property
	LogCollection string `json:"log_collection,omitempty"`
}

EdgeDeploymentSpec defines the desired state of EdgeDeployment

func (*EdgeDeploymentSpec) DeepCopy

func (in *EdgeDeploymentSpec) DeepCopy() *EdgeDeploymentSpec

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

func (*EdgeDeploymentSpec) DeepCopyInto

func (in *EdgeDeploymentSpec) DeepCopyInto(out *EdgeDeploymentSpec)

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

type EdgeDeploymentStatus

type EdgeDeploymentStatus struct {
}

EdgeDeploymentStatus defines the observed state of EdgeDeployment

func (*EdgeDeploymentStatus) DeepCopy

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

func (*EdgeDeploymentStatus) DeepCopyInto

func (in *EdgeDeploymentStatus) DeepCopyInto(out *EdgeDeploymentStatus)

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

type EdgeDeploymentType

type EdgeDeploymentType string
const (
	PodDeploymentType EdgeDeploymentType = "pod"
)

type EdgeDevice

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

	Spec   EdgeDeviceSpec   `json:"spec,omitempty"`
	Status EdgeDeviceStatus `json:"status,omitempty"`
}

EdgeDevice is the Schema for the edgedevices API

func (*EdgeDevice) DeepCopy

func (in *EdgeDevice) DeepCopy() *EdgeDevice

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

func (*EdgeDevice) DeepCopyInto

func (in *EdgeDevice) DeepCopyInto(out *EdgeDevice)

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

func (*EdgeDevice) DeepCopyObject

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

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

type EdgeDeviceList

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

EdgeDeviceList contains a list of EdgeDevice

func (*EdgeDeviceList) DeepCopy

func (in *EdgeDeviceList) DeepCopy() *EdgeDeviceList

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

func (*EdgeDeviceList) DeepCopyInto

func (in *EdgeDeviceList) DeepCopyInto(out *EdgeDeviceList)

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

func (*EdgeDeviceList) DeepCopyObject

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

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

type EdgeDeviceSpec

type EdgeDeviceSpec struct {

	// OsInformation carries information about commit ID of the OS Image deployed to the device
	OsInformation *OsInformation `json:"osInformation,omitempty"`

	// RequestTime is the time of device registration request
	RequestTime *metav1.Time `json:"requestTime,omitempty"`

	Heartbeat     *HeartbeatConfiguration         `json:"heartbeat,omitempty"`
	Storage       *Storage                        `json:"storage,omitempty"`
	Metrics       *MetricsConfiguration           `json:"metrics,omitempty"`
	LogCollection map[string]*LogCollectionConfig `json:"log_collection,omitempty"`
}

EdgeDeviceSpec defines the desired state of EdgeDevice

func (*EdgeDeviceSpec) DeepCopy

func (in *EdgeDeviceSpec) DeepCopy() *EdgeDeviceSpec

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

func (*EdgeDeviceSpec) DeepCopyInto

func (in *EdgeDeviceSpec) DeepCopyInto(out *EdgeDeviceSpec)

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

type EdgeDeviceStatus

type EdgeDeviceStatus struct {
	Phase                     string              `json:"phase,omitempty"`
	LastSeenTime              metav1.Time         `json:"lastSeenTime,omitempty"`
	LastSyncedResourceVersion string              `json:"lastSyncedResourceVersion,omitempty"`
	Hardware                  *Hardware           `json:"hardware,omitempty"`
	Deployments               []Deployment        `json:"deployments,omitempty"`
	DataOBC                   *string             `json:"dataObc,omitempty"`
	UpgradeInformation        *UpgradeInformation `json:"upgradeInformation,omitempty"`
}

EdgeDeviceStatus defines the observed state of EdgeDevice

func (*EdgeDeviceStatus) DeepCopy

func (in *EdgeDeviceStatus) DeepCopy() *EdgeDeviceStatus

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

func (*EdgeDeviceStatus) DeepCopyInto

func (in *EdgeDeviceStatus) DeepCopyInto(out *EdgeDeviceStatus)

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

type Gpu

type Gpu struct {

	// Device address (for example "0000:00:02.0")
	Address string `json:"address,omitempty"`

	// ID of the device (for example "3ea0")
	DeviceID string `json:"deviceId,omitempty"`

	// Product name of the device (for example "UHD Graphics 620 (Whiskey Lake)")
	Name string `json:"name,omitempty"`

	// The name of the device vendor (for example "Intel Corporation")
	Vendor string `json:"vendor,omitempty"`

	// ID of the vendor (for example "8086")
	VendorID string `json:"vendorId,omitempty"`
}

func (*Gpu) DeepCopy

func (in *Gpu) DeepCopy() *Gpu

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

func (*Gpu) DeepCopyInto

func (in *Gpu) DeepCopyInto(out *Gpu)

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

type Hardware

type Hardware struct {

	// boot
	Boot *Boot `json:"boot,omitempty"`

	// cpu
	CPU *CPU `json:"cpu,omitempty"`

	// disks
	Disks []*Disk `json:"disks"`

	// gpus
	Gpus []*Gpu `json:"gpus"`

	// hostname
	Hostname string `json:"hostname,omitempty"`

	// interfaces
	Interfaces []*Interface `json:"interfaces"`

	// memory
	Memory *Memory `json:"memory,omitempty"`

	// system vendor
	SystemVendor *SystemVendor `json:"systemVendor,omitempty"`
}

func (*Hardware) DeepCopy

func (in *Hardware) DeepCopy() *Hardware

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

func (*Hardware) DeepCopyInto

func (in *Hardware) DeepCopyInto(out *Hardware)

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

type HardwareProfileConfiguration

type HardwareProfileConfiguration struct {

	// include
	Include bool `json:"include,omitempty"`

	// scope
	// Enum: [full delta]
	Scope string `json:"scope,omitempty"`
}

func (*HardwareProfileConfiguration) DeepCopy

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

func (*HardwareProfileConfiguration) DeepCopyInto

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

type HeartbeatConfiguration

type HeartbeatConfiguration struct {

	// hardware profile
	HardwareProfile *HardwareProfileConfiguration `json:"hardwareProfile,omitempty"`

	// period seconds
	PeriodSeconds int64 `json:"periodSeconds,omitempty"`
}

func (*HeartbeatConfiguration) DeepCopy

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

func (*HeartbeatConfiguration) DeepCopyInto

func (in *HeartbeatConfiguration) DeepCopyInto(out *HeartbeatConfiguration)

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

type ImageRegistriesConfiguration

type ImageRegistriesConfiguration struct {
	AuthFileSecret *NameRef `json:"secretRef,omitempty"`
}

func (*ImageRegistriesConfiguration) DeepCopy

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

func (*ImageRegistriesConfiguration) DeepCopyInto

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

type Interface

type Interface struct {

	// biosdevname
	Biosdevname string `json:"biosdevname,omitempty"`

	// client id
	ClientID string `json:"clientId,omitempty"`

	// flags
	Flags []string `json:"flags"`

	// has carrier
	HasCarrier bool `json:"hasCarrier,omitempty"`

	// ipv4 addresses
	IPV4Addresses []string `json:"ipv4Addresses,omitempty"`

	// ipv6 addresses
	IPV6Addresses []string `json:"ipv6Addresses,omitempty"`

	// mac address
	MacAddress string `json:"macAddress,omitempty"`

	// mtu
	Mtu int64 `json:"mtu,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// product
	Product string `json:"product,omitempty"`

	// speed mbps
	SpeedMbps int64 `json:"speedMbps,omitempty"`

	// vendor
	Vendor string `json:"vendor,omitempty"`
}

func (*Interface) DeepCopy

func (in *Interface) DeepCopy() *Interface

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

func (*Interface) DeepCopyInto

func (in *Interface) DeepCopyInto(out *Interface)

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

type IoPerf

type IoPerf struct {

	// 99th percentile of fsync duration in milliseconds
	SyncDuration int64 `json:"syncDuration,omitempty"`
}

func (*IoPerf) DeepCopy

func (in *IoPerf) DeepCopy() *IoPerf

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

func (*IoPerf) DeepCopyInto

func (in *IoPerf) DeepCopyInto(out *IoPerf)

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

type LogCollectionConfig

type LogCollectionConfig struct {

	// Kind is the type of log collection to be used
	// +kubebuilder:validation:Enum=syslog
	Kind string `json:"kind,omitempty"`

	// +kubebuilder:default=12
	// +kubebuilder:validation:Minimum=1
	BufferSize int32 `json:"buffer_size,omitempty"`

	// SyslogConfig is the pointer to the configMap to be used to load the config
	SyslogConfig *NameRef `json:"syslog_config,omitempty"`
}

func (*LogCollectionConfig) DeepCopy

func (in *LogCollectionConfig) DeepCopy() *LogCollectionConfig

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

func (*LogCollectionConfig) DeepCopyInto

func (in *LogCollectionConfig) DeepCopyInto(out *LogCollectionConfig)

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

type Memory

type Memory struct {

	// physical bytes
	PhysicalBytes int64 `json:"physicalBytes,omitempty"`

	// usable bytes
	UsableBytes int64 `json:"usableBytes,omitempty"`
}

func (*Memory) DeepCopy

func (in *Memory) DeepCopy() *Memory

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

func (*Memory) DeepCopyInto

func (in *Memory) DeepCopyInto(out *Memory)

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

type MetricsConfigEntity

type MetricsConfigEntity struct {
	// Path to use when retrieving metrics
	// +kubebuilder:default=/
	Path string `json:"path,omitempty"`

	// Port to use when retrieve the metrics
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=65535
	Port int32 `json:"port,omitempty"`

	Disabled bool `json:"disabled,omitempty"`
}

func (*MetricsConfigEntity) DeepCopy

func (in *MetricsConfigEntity) DeepCopy() *MetricsConfigEntity

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

func (*MetricsConfigEntity) DeepCopyInto

func (in *MetricsConfigEntity) DeepCopyInto(out *MetricsConfigEntity)

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

type MetricsConfiguration

type MetricsConfiguration struct {
	Retention     *Retention                  `json:"retention,omitempty"`
	SystemMetrics *SystemMetricsConfiguration `json:"system,omitempty"`
}

func (*MetricsConfiguration) DeepCopy

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

func (*MetricsConfiguration) DeepCopyInto

func (in *MetricsConfiguration) DeepCopyInto(out *MetricsConfiguration)

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

type NameRef

type NameRef struct {
	Name string `json:"name"`
}

func (*NameRef) DeepCopy

func (in *NameRef) DeepCopy() *NameRef

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

func (*NameRef) DeepCopyInto

func (in *NameRef) DeepCopyInto(out *NameRef)

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

type OsInformation

type OsInformation struct {

	//Automatically upgrade the OS image
	AutomaticallyUpgrade bool `json:"automaticallyUpgrade,omitempty"`

	//CommitID carries information about commit of the OS Image
	CommitID string `json:"commitID,omitempty"`

	//HostedObjectsURL carries the URL of the hosted commits web server
	HostedObjectsURL string `json:"hostedObjectsURL,omitempty"`
}

func (*OsInformation) DeepCopy

func (in *OsInformation) DeepCopy() *OsInformation

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

func (*OsInformation) DeepCopyInto

func (in *OsInformation) DeepCopyInto(out *OsInformation)

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

type Pod

type Pod struct {
	Spec v1.PodSpec `json:"spec"`
}

func (*Pod) DeepCopy

func (in *Pod) DeepCopy() *Pod

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

func (*Pod) DeepCopyInto

func (in *Pod) DeepCopyInto(out *Pod)

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

type Retention

type Retention struct {
	// MaxMiB specifies how much disk space should be used for storing persisted metrics on the device
	// +kubebuilder:validation:Minimum=0
	MaxMiB int32 `json:"maxMiB,omitempty"`
	// MaxHours specifies how long should persisted metrics be stored on the device disk
	// +kubebuilder:validation:Minimum=0
	MaxHours int32 `json:"maxHours,omitempty"`
}

func (*Retention) DeepCopy

func (in *Retention) DeepCopy() *Retention

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

func (*Retention) DeepCopyInto

func (in *Retention) DeepCopyInto(out *Retention)

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

type Route

type Route struct {

	// The destination network or destination host
	Destination string `json:"destination,omitempty"`

	// Defines whether this is an IPv4 (4) or IPv6 route (6)
	Family int32 `json:"family,omitempty"`

	// Gateway address where the packets are sent
	Gateway string `json:"gateway,omitempty"`

	// Interface to which packets for this route will be sent
	Interface string `json:"interface,omitempty"`
}

func (*Route) DeepCopy

func (in *Route) DeepCopy() *Route

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

func (*Route) DeepCopyInto

func (in *Route) DeepCopyInto(out *Route)

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

type S3Storage

type S3Storage struct {
	// secret name
	SecretName string `json:"secretName,omitempty"`
	// configMap name
	ConfigMapName string `json:"configMapName,omitempty"`
	// createOBC. if the configuration above is empty and this bool is true then create OBC
	CreateOBC bool `json:"createOBC,omitempty"`
}

func (*S3Storage) DeepCopy

func (in *S3Storage) DeepCopy() *S3Storage

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

func (*S3Storage) DeepCopyInto

func (in *S3Storage) DeepCopyInto(out *S3Storage)

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

type S3StorageConfiguration

type S3StorageConfiguration struct {
	BucketHost         string `json:"bucketHost,omitempty"`
	BucketPort         int32  `json:"bucketPort,omitempty"`
	BucketName         string `json:"bucketName,omitempty"`
	BucketRegion       string `json:"bucketRegion,omitempty"`
	AWSAccessKey       string `json:"awsAccessKeyId,omitempty"`
	AWSSecretAccessKey string `json:"awsSecretAccessKey,omitempty"`
}

func (*S3StorageConfiguration) DeepCopy

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

func (*S3StorageConfiguration) DeepCopyInto

func (in *S3StorageConfiguration) DeepCopyInto(out *S3StorageConfiguration)

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

type Storage

type Storage struct {
	S3 *S3Storage `json:"s3,omitempty"`
}

func (*Storage) DeepCopy

func (in *Storage) DeepCopy() *Storage

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

func (*Storage) DeepCopyInto

func (in *Storage) DeepCopyInto(out *Storage)

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

type StorageConfiguration

type StorageConfiguration struct {
	// s3 storage configuration
	S3 *S3StorageConfiguration `json:"s3,omitempty"`
}

func (*StorageConfiguration) DeepCopy

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

func (*StorageConfiguration) DeepCopyInto

func (in *StorageConfiguration) DeepCopyInto(out *StorageConfiguration)

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

type SystemMetricsConfiguration

type SystemMetricsConfiguration struct {
	// Interval(in seconds) to scrape system metrics.
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:default=60
	Interval int32 `json:"interval,omitempty"`

	// AllowList defines name of a ConfigMap containing
	// list of system metrics that should be scraped
	AllowList *NameRef `json:"allowList,omitempty"`

	// Disabled when set to true instructs the device to turn off system metrics collection
	Disabled bool `json:"disabled,omitempty"`
}

func (*SystemMetricsConfiguration) DeepCopy

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

func (*SystemMetricsConfiguration) DeepCopyInto

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

type SystemVendor

type SystemVendor struct {

	// manufacturer
	Manufacturer string `json:"manufacturer,omitempty"`

	// product name
	ProductName string `json:"productName,omitempty"`

	// serial number
	SerialNumber string `json:"serialNumber,omitempty"`

	// Whether the machine appears to be a virtual machine or not
	Virtual bool `json:"virtual,omitempty"`
}

func (*SystemVendor) DeepCopy

func (in *SystemVendor) DeepCopy() *SystemVendor

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

func (*SystemVendor) DeepCopyInto

func (in *SystemVendor) DeepCopyInto(out *SystemVendor)

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

type UpgradeInformation

type UpgradeInformation struct {
	// Current commit
	CurrentCommitID string `json:"currentCommitID"`
	// last upgrade status
	LastUpgradeStatus string `json:"lastUpgradeStatus,omitempty"`
	// last upgrade time
	LastUpgradeTime string `json:"lastUpgradeTime,omitempty"`
}

func (*UpgradeInformation) DeepCopy

func (in *UpgradeInformation) DeepCopy() *UpgradeInformation

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

func (*UpgradeInformation) DeepCopyInto

func (in *UpgradeInformation) DeepCopyInto(out *UpgradeInformation)

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