edge

package
v0.0.0-...-8ac8dcf Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Overview

Package edge is the internal version of the API.

Index

Constants

View Source
const (
	EdgeDeviceStatusUp       = EdgeDeviceStatus("up")
	EdgeDeviceStatusDegraded = EdgeDeviceStatus("degraded")
	EdgeDeviceStatusDown     = EdgeDeviceStatus("down")
)
View Source
const (
	EdgeNodeStatusOnline  = EdgeNodeStatus("online")
	EdgeNodeStatusOffline = EdgeNodeStatus("offline")
)
View Source
const GroupName = "org.redhat.edgeapi"

GroupName is the group name used in this package

Variables

View Source
var (
	// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

Types

type EdgeDevice

type EdgeDevice struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   EdgeDeviceSpec
	Status EdgeDeviceStatus
}

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
	metav1.ListMeta

	Items []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 {
	ID    string
	Type  string
	Nodes EdgeNodes
}

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 string

type EdgeNode

type EdgeNode struct {
	Name              string
	Status            EdgeNodeStatus
	LastSeenTimestamp string

	Workloads []Workload
}

func (*EdgeNode) DeepCopy

func (in *EdgeNode) DeepCopy() *EdgeNode

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

func (*EdgeNode) DeepCopyInto

func (in *EdgeNode) DeepCopyInto(out *EdgeNode)

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

type EdgeNodeStatus

type EdgeNodeStatus string

type EdgeNodes

type EdgeNodes []EdgeNode

func (EdgeNodes) DeepCopy

func (in EdgeNodes) DeepCopy() EdgeNodes

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

func (EdgeNodes) DeepCopyInto

func (in EdgeNodes) DeepCopyInto(out *EdgeNodes)

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

type Workload

type Workload struct {
	Name     string
	State    string
	SubState string
}

func (*Workload) DeepCopy

func (in *Workload) DeepCopy() *Workload

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

func (*Workload) DeepCopyInto

func (in *Workload) DeepCopyInto(out *Workload)

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

Directories

Path Synopsis
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.

Jump to

Keyboard shortcuts

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