v1

package
v0.0.0-...-39be9bc Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the greenops v1 API group. +kubebuilder:object:generate=true +groupName=greenops.greenops.test

Index

Constants

This section is empty.

Variables

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

This section is empty.

Types

type Coordinates

type Coordinates struct {
	Latitude  int `json:"latitude"`
	Longitude int `json:"longitude"`
}

func (*Coordinates) DeepCopy

func (in *Coordinates) DeepCopy() *Coordinates

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

func (*Coordinates) DeepCopyInto

func (in *Coordinates) DeepCopyInto(out *Coordinates)

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

type Region

type Region struct {
	CloudProviderRegion   string `json:"cloudProviderRegion"`
	ISOCountryCodeA2      string `json:"isoCountryCodeA2"`      // +kubebuilder:validation:Optional
	PhysicalLocation      string `json:"physicalLocation"`      // +kubebuilder:validation:Optional
	ElectricityMapsRegion string `json:"electricityMapsRegion"` // +kubebuilder:validation:Optional

}

func (*Region) DeepCopy

func (in *Region) DeepCopy() *Region

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

func (*Region) DeepCopyInto

func (in *Region) DeepCopyInto(out *Region)

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

type WorkloadPlacementPolicy

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

	Spec   WorkloadPlacementPolicySpec   `json:"spec,omitempty"`
	Status WorkloadPlacementPolicyStatus `json:"status,omitempty"`
}

WorkloadPlacementPolicy is the Schema for the workloadplacementpolicies API.

func (*WorkloadPlacementPolicy) DeepCopy

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

func (*WorkloadPlacementPolicy) DeepCopyInto

func (in *WorkloadPlacementPolicy) DeepCopyInto(out *WorkloadPlacementPolicy)

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

func (*WorkloadPlacementPolicy) DeepCopyObject

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

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

type WorkloadPlacementPolicyList

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

WorkloadPlacementPolicyList contains a list of WorkloadPlacementPolicy.

func (*WorkloadPlacementPolicyList) DeepCopy

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

func (*WorkloadPlacementPolicyList) DeepCopyInto

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

func (*WorkloadPlacementPolicyList) DeepCopyObject

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

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

type WorkloadPlacementPolicySpec

type WorkloadPlacementPolicySpec struct {
	OriginRegion  Region `json:"originRegion"`
	MaxLatency    int    `json:"maxLatency"`
	CloudProvider string `json:"cloudProvider"`
}

WorkloadPlacementPolicySpec defines the desired state of WorkloadPlacementPolicy.

func (*WorkloadPlacementPolicySpec) DeepCopy

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

func (*WorkloadPlacementPolicySpec) DeepCopyInto

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

type WorkloadPlacementPolicyStatus

type WorkloadPlacementPolicyStatus struct {
	EligibleRegions []Region `json:"eligibleRegions"`
}

WorkloadPlacementPolicyStatus defines the observed state of WorkloadPlacementPolicy.

func (*WorkloadPlacementPolicyStatus) DeepCopy

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

func (*WorkloadPlacementPolicyStatus) 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