v1alpha1

package
v0.6.8 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the failover v1alpha1 API group +kubebuilder:object:generate=true +groupName=mycreepy.github.io

Index

Constants

This section is empty.

Variables

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

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

	Spec   FailoverServiceSpec   `json:"spec,omitempty"`
	Status FailoverServiceStatus `json:"status,omitempty"`
}

FailoverService is the Schema for the failoverservices API

func (*FailoverService) DeepCopy

func (in *FailoverService) DeepCopy() *FailoverService

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

func (*FailoverService) DeepCopyInto

func (in *FailoverService) DeepCopyInto(out *FailoverService)

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

func (*FailoverService) DeepCopyObject

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

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

type FailoverServiceList

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

FailoverServiceList contains a list of FailoverService

func (*FailoverServiceList) DeepCopy

func (in *FailoverServiceList) DeepCopy() *FailoverServiceList

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

func (*FailoverServiceList) DeepCopyInto

func (in *FailoverServiceList) DeepCopyInto(out *FailoverServiceList)

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

func (*FailoverServiceList) DeepCopyObject

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

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

type FailoverServiceSpec

type FailoverServiceSpec struct {
	Service ServiceConfig `json:"service"`
}

FailoverServiceSpec defines the desired state of FailoverService

func (*FailoverServiceSpec) DeepCopy

func (in *FailoverServiceSpec) DeepCopy() *FailoverServiceSpec

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

func (*FailoverServiceSpec) DeepCopyInto

func (in *FailoverServiceSpec) DeepCopyInto(out *FailoverServiceSpec)

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

type FailoverServiceStatus

type FailoverServiceStatus struct {
	ActiveTarget     string             `json:"activeTarget,omitempty"`
	AvailableTargets int                `json:"availableTargets,omitempty"`
	LastTransition   metav1.Time        `json:"lastTransition,omitempty"`
	Conditions       []metav1.Condition `json:"conditions,omitempty"`
}

FailoverServiceStatus defines the observed state of FailoverService

func (*FailoverServiceStatus) DeepCopy

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

func (*FailoverServiceStatus) DeepCopyInto

func (in *FailoverServiceStatus) DeepCopyInto(out *FailoverServiceStatus)

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

type ServiceConfig added in v0.4.0

type ServiceConfig struct {
	Name   string `json:"name"`
	Suffix string `json:"suffix,omitempty"`
}

ServiceConfig defines the configuration for the services which are managed by the FailoverService.

func (*ServiceConfig) DeepCopy added in v0.4.0

func (in *ServiceConfig) DeepCopy() *ServiceConfig

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

func (*ServiceConfig) DeepCopyInto added in v0.4.0

func (in *ServiceConfig) DeepCopyInto(out *ServiceConfig)

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