v1alpha1

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

Exported variables

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "fogatlas.fbk.eu", Version: "v1alpha1"}

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 a Group qualified GroupResource

Types

type FADepl

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

	Spec   FADeplSpec   `json:"spec"`
	Status FADeplStatus `json:"status,omitempty"`
}

FADepl is a specification for a FADepl resource +kubebuilder:subresource:status

func (*FADepl) DeepCopy

func (in *FADepl) DeepCopy() *FADepl

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

func (*FADepl) DeepCopyInto

func (in *FADepl) DeepCopyInto(out *FADepl)

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

func (*FADepl) DeepCopyObject

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

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

type FADeplDataFlow

type FADeplDataFlow struct {
	Name              string            `json:"name,omitempty"`
	Labels            map[string]string `json:"labels,omitempty"`
	BandwidthRequired resource.Quantity `json:"bandwidthrequired"`
	LatencyRequired   resource.Quantity `json:"latency"`
	Vertices          []string          `json:"vertices"`
}

FADeplDataFlow represent a data flow that is a walk in the application graph

func (*FADeplDataFlow) DeepCopy

func (in *FADeplDataFlow) DeepCopy() *FADeplDataFlow

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

func (*FADeplDataFlow) DeepCopyInto

func (in *FADeplDataFlow) DeepCopyInto(out *FADeplDataFlow)

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

type FADeplList

type FADeplList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []FADepl `json:"items"`
}

FADeplList is a list of FADepl resources

func (*FADeplList) DeepCopy

func (in *FADeplList) DeepCopy() *FADeplList

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

func (*FADeplList) DeepCopyInto

func (in *FADeplList) DeepCopyInto(out *FADeplList)

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

func (*FADeplList) DeepCopyObject

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

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

type FADeplMicroservice

type FADeplMicroservice struct {
	Name               string `json:"name"`
	RegionRecommended  string `json:"regionrecommended,omitempty"`
	NoReschedule       bool   `json:"noreschedule,omitempty"`
	DisruptionBudget   int32  `json:"disruptionbudget,omitempty"`
	Budget41Reschedule int32  `json:"budget41reschedule,omitempty"`
	// +kubebuilder:validation:EmbeddedResource
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:validation:Type=object
	Deployment appsv1.Deployment `json:"deployment"`
}

FADeplMicroservice represent a FADepl microservice

func (*FADeplMicroservice) DeepCopy

func (in *FADeplMicroservice) DeepCopy() *FADeplMicroservice

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

func (*FADeplMicroservice) DeepCopyInto

func (in *FADeplMicroservice) DeepCopyInto(out *FADeplMicroservice)

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

type FADeplSpec

type FADeplSpec struct {
	ExternalEndpoints []string              `json:"externalendpoints,omitempty"`
	Microservices     []*FADeplMicroservice `json:"microservices"`
	DataFlows         []*FADeplDataFlow     `json:"dataflows,omitempty"`
}

FADeplSpec is the spec for a FADepl resource

func (*FADeplSpec) DeepCopy

func (in *FADeplSpec) DeepCopy() *FADeplSpec

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

func (*FADeplSpec) DeepCopyInto

func (in *FADeplSpec) DeepCopyInto(out *FADeplSpec)

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

type FADeplStatus

type FADeplStatus struct {
	CurrentStatus FAStatus `json:"currentstatus"`
}

FADeplStatus is the status for a FADepl resource

func (*FADeplStatus) DeepCopy

func (in *FADeplStatus) DeepCopy() *FADeplStatus

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

func (*FADeplStatus) DeepCopyInto

func (in *FADeplStatus) DeepCopyInto(out *FADeplStatus)

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

type FAExternalEndpoint

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

	Spec FAExternalEndpointSpec `json:"spec"`
	//  FAExternalEndpointStatus is not used at the moment
	Status FAExternalEndpointStatus `json:"status,omitempty"`
}

FAExternalEndpoint is a specification for a FAExternalEndpoint resource +kubebuilder:subresource:status

func (*FAExternalEndpoint) DeepCopy

func (in *FAExternalEndpoint) DeepCopy() *FAExternalEndpoint

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

func (*FAExternalEndpoint) DeepCopyInto

func (in *FAExternalEndpoint) DeepCopyInto(out *FAExternalEndpoint)

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

func (*FAExternalEndpoint) DeepCopyObject

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

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

type FAExternalEndpointList

type FAExternalEndpointList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []FAExternalEndpoint `json:"items"`
}

FAExternalEndpointList is a list of ExternalEndpoint resources

func (*FAExternalEndpointList) DeepCopy

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

func (*FAExternalEndpointList) DeepCopyInto

func (in *FAExternalEndpointList) DeepCopyInto(out *FAExternalEndpointList)

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

func (*FAExternalEndpointList) DeepCopyObject

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

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

type FAExternalEndpointSpec

type FAExternalEndpointSpec struct {
	ID          string `json:"id"`
	Type        string `json:"type"`
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
	IPAddress   string `json:"ipaddress"`
	Location    string `json:"location"`
	RegionID    string `json:"regionid"`
}

FAExternalEndpointSpec is the spec for a FAExternalEndpoint resource

func (*FAExternalEndpointSpec) DeepCopy

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

func (*FAExternalEndpointSpec) DeepCopyInto

func (in *FAExternalEndpointSpec) DeepCopyInto(out *FAExternalEndpointSpec)

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

type FAExternalEndpointStatus

type FAExternalEndpointStatus struct {
	CurrentStatus int32 `json:"currentStatus"`
}

FAExternalEndpointStatus is the status for a FAExternalEndpoint resource

func (*FAExternalEndpointStatus) DeepCopy

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

func (*FAExternalEndpointStatus) DeepCopyInto

func (in *FAExternalEndpointStatus) DeepCopyInto(out *FAExternalEndpointStatus)

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

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

	Spec   FALinkSpec   `json:"spec"`
	Status FALinkStatus `json:"status,omitempty"`
}

FALink is a specification for a FALink resource +kubebuilder:subresource:status

func (*FALink) DeepCopy

func (in *FALink) DeepCopy() *FALink

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

func (*FALink) DeepCopyInto

func (in *FALink) DeepCopyInto(out *FALink)

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

func (*FALink) DeepCopyObject

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

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

type FALinkList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []FALink `json:"items"`
}

FALinkList is a list of FALink resources

func (*FALinkList) DeepCopy

func (in *FALinkList) DeepCopy() *FALinkList

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

func (*FALinkList) DeepCopyInto

func (in *FALinkList) DeepCopyInto(out *FALinkList)

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

func (*FALinkList) DeepCopyObject

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

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

type FALinkSpec

type FALinkSpec struct {
	ID        string            `json:"id"`
	EndpointA string            `json:"endpointa"`
	EndpointB string            `json:"endpointb"`
	Bandwidth resource.Quantity `json:"bandwidth"`
	// in milliseconds
	Latency resource.Quantity `json:"latency"`
}

FALinkSpec is the spec for a FALink resource

func (*FALinkSpec) DeepCopy

func (in *FALinkSpec) DeepCopy() *FALinkSpec

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

func (*FALinkSpec) DeepCopyInto

func (in *FALinkSpec) DeepCopyInto(out *FALinkSpec)

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

type FALinkStatus

type FALinkStatus struct {
	CurrentStatus int32 `json:"currentstatus"`
}

FALinkStatus is the status for a FALink resource

func (*FALinkStatus) DeepCopy

func (in *FALinkStatus) DeepCopy() *FALinkStatus

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

func (*FALinkStatus) DeepCopyInto

func (in *FALinkStatus) DeepCopyInto(out *FALinkStatus)

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

type FAPlacement

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

	Spec FAPlacementSpec `json:"spec"`
	// PlacementStatus is not used currently
	Status FAPlacementStatus `json:"status,omitempty"`
}

FAPlacement maps microservices on nodes. Given a microservice, we have a node score list for each replica. Cardinality of ReplicaScoreList is equal to the number of replicas. The name of FAPlacement should be the same as the microservice name +kubebuilder:subresource:status

func (*FAPlacement) DeepCopy

func (in *FAPlacement) DeepCopy() *FAPlacement

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

func (*FAPlacement) DeepCopyInto

func (in *FAPlacement) DeepCopyInto(out *FAPlacement)

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

func (*FAPlacement) DeepCopyObject

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

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

type FAPlacementList

type FAPlacementList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []FAPlacement `json:"items"`
}

FAPlacementList is a list of FAPlacement resources

func (*FAPlacementList) DeepCopy

func (in *FAPlacementList) DeepCopy() *FAPlacementList

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

func (*FAPlacementList) DeepCopyInto

func (in *FAPlacementList) DeepCopyInto(out *FAPlacementList)

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

func (*FAPlacementList) DeepCopyObject

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

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

type FAPlacementSpec

type FAPlacementSpec struct {
	Microservice     string             `json:"microservice"`
	UpdatedAt        int64              `json:"updatedat"`
	ReplicaScoreList []*FAReplicaScores `json:"replecascorelist"`
}

FAPlacementSpec is the spec for a FAPlacement resource

func (*FAPlacementSpec) DeepCopy

func (in *FAPlacementSpec) DeepCopy() *FAPlacementSpec

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

func (*FAPlacementSpec) DeepCopyInto

func (in *FAPlacementSpec) DeepCopyInto(out *FAPlacementSpec)

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

type FAPlacementStatus

type FAPlacementStatus struct {
	CurrentStatus int32 `json:"currentStatus"`
}

FAPlacementStatus is the status for a FAPlacement resource

func (*FAPlacementStatus) DeepCopy

func (in *FAPlacementStatus) DeepCopy() *FAPlacementStatus

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

func (*FAPlacementStatus) DeepCopyInto

func (in *FAPlacementStatus) DeepCopyInto(out *FAPlacementStatus)

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

type FARegion

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

	Spec FARegionSpec `json:"spec"`
	// RegionStatus is not used at the moment
	Status FARegionStatus `json:"status,omitempty"`
}

FARegion is a specification for a FARegion resource +kubebuilder:subresource:status

func (*FARegion) DeepCopy

func (in *FARegion) DeepCopy() *FARegion

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

func (*FARegion) DeepCopyInto

func (in *FARegion) DeepCopyInto(out *FARegion)

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

func (*FARegion) DeepCopyObject

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

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

type FARegionList

type FARegionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []FARegion `json:"items"`
}

FARegionList is a list of FARegion resources

func (*FARegionList) DeepCopy

func (in *FARegionList) DeepCopy() *FARegionList

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

func (*FARegionList) DeepCopyInto

func (in *FARegionList) DeepCopyInto(out *FARegionList)

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

func (*FARegionList) DeepCopyObject

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

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

type FARegionSpec

type FARegionSpec struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
	Location    string `json:"location"`
	Tier        int32  `json:"tier"`
}

FARegionSpec is the spec for a FARegion resource

func (*FARegionSpec) DeepCopy

func (in *FARegionSpec) DeepCopy() *FARegionSpec

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

func (*FARegionSpec) DeepCopyInto

func (in *FARegionSpec) DeepCopyInto(out *FARegionSpec)

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

type FARegionStatus

type FARegionStatus struct {
	CurrentStatus int32 `json:"currentStatus"`
}

FARegionStatus is the status for a Region resource

func (*FARegionStatus) DeepCopy

func (in *FARegionStatus) DeepCopy() *FARegionStatus

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

func (*FARegionStatus) DeepCopyInto

func (in *FARegionStatus) DeepCopyInto(out *FARegionStatus)

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

type FAReplicaScores

type FAReplicaScores struct {
	NodeScoreList []*FAScore `json:"nodescorelist"`
}

FAReplicaScores is a list of score for all the nodes. Cardinality equal to the number of nodes

func (*FAReplicaScores) DeepCopy

func (in *FAReplicaScores) DeepCopy() *FAReplicaScores

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

func (*FAReplicaScores) DeepCopyInto

func (in *FAReplicaScores) DeepCopyInto(out *FAReplicaScores)

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

type FAScore

type FAScore struct {
	Node  string `json:"node"`
	Score int32  `json:"score"`
}

Given a node, we have a score

func (*FAScore) DeepCopy

func (in *FAScore) DeepCopy() *FAScore

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

func (*FAScore) DeepCopyInto

func (in *FAScore) DeepCopyInto(out *FAScore)

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

type FAStatus

type FAStatus int32

FAStatus is a type for the possible status values

const (
	New FAStatus = iota
	Synced
	Failed
	OutOfSync
)

Possible values of FAStatus

Jump to

Keyboard shortcuts

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