v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

View Source
const GroupName = "astertower.kasterism.io"

GroupName specifies the group name used to register the objects.

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	// Depreciated: use Install instead
	AddToScheme = localSchemeBuilder.AddToScheme
	Install     = localSchemeBuilder.AddToScheme
)
View Source
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}

GroupVersion specifies the group and the version used to register the objects.

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

SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Astro

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

	Spec   AstroSpec   `json:"spec,omitempty"`
	Status AstroStatus `json:"status,omitempty"`
}

Astro is a specification for a Astro resource

func (*Astro) DeepCopy

func (in *Astro) DeepCopy() *Astro

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

func (*Astro) DeepCopyInto

func (in *Astro) DeepCopyInto(out *Astro)

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

func (*Astro) DeepCopyObject

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

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

type AstroCondition

type AstroCondition struct {
	Type AstroConditionType `json:"type"`

	// Workflow status
	Status AstroConditionStatus `json:"status"`

	// +optional
	Reason string `json:"reason"`

	// Last time the condition transitioned from one status to another.
	// This should be when the underlying condition changed. If that is not known, then using the time when
	// the API field changed is acceptable.
	LastTransitionTime metav1.Time `json:"lastTransitionTime"`
}

Condition defines an observation of a Cluster API resource operational state.

func (*AstroCondition) DeepCopy

func (in *AstroCondition) DeepCopy() *AstroCondition

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

func (*AstroCondition) DeepCopyInto

func (in *AstroCondition) DeepCopyInto(out *AstroCondition)

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

type AstroConditionStatus

type AstroConditionStatus string
const (
	AstroConditionStatusUnknown AstroConditionStatus = "Unknown"
	AstroConditionStatusReady   AstroConditionStatus = "Ready"
	AstroConditionStatusFailed  AstroConditionStatus = "Failed"
)

type AstroConditionType

type AstroConditionType string
const (
	AstroConditionTypeDeployment AstroConditionType = "Deployment"
	AstroConditionTypeService    AstroConditionType = "Service"
	AstroConditionTypeAstermule  AstroConditionType = "Astermule"
)

type AstroList

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

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

AstroList is a list of Astro resources

func (*AstroList) DeepCopy

func (in *AstroList) DeepCopy() *AstroList

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

func (*AstroList) DeepCopyInto

func (in *AstroList) DeepCopyInto(out *AstroList)

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

func (*AstroList) DeepCopyObject

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

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

type AstroPhase

type AstroPhase string
const (
	AstroPhaseInitialized  AstroPhase = "Initialized"
	AstroPhaseWaited       AstroPhase = "Waited"
	AstroPhaseDeployFailed AstroPhase = "DeployFailed"
	AstroPhaseEngineFailed AstroPhase = "EngineFailed"
	AstroPhaseReady        AstroPhase = "Ready"
	AstroPhaseSuccess      AstroPhase = "Success"
	AstroPhaseWrong        AstroPhase = "Wrong"
)

type AstroRef

type AstroRef struct {
	// +optional
	Name string `json:"name,omitempty"`
	// +optional
	Namespace string `json:"namespace,omitempty"`
}

func (*AstroRef) DeepCopy

func (in *AstroRef) DeepCopy() *AstroRef

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

func (*AstroRef) DeepCopyInto

func (in *AstroRef) DeepCopyInto(out *AstroRef)

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

type AstroSpec

type AstroSpec struct {
	Stars []AstroStar `json:"stars,omitempty"`
}

AstroSpec is the spec for a Astro resource

func (*AstroSpec) DeepCopy

func (in *AstroSpec) DeepCopy() *AstroSpec

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

func (*AstroSpec) DeepCopyInto

func (in *AstroSpec) DeepCopyInto(out *AstroSpec)

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

type AstroStar

type AstroStar struct {
	Name string        `json:"name"`
	Type AstroStarType `json:"type"`
	// +optional
	Dependencies []string `json:"dependencies,omitempty"`

	// +optional
	Action string `json:"action,omitempty"`
	// +optional
	Target string `json:"target,omitempty"`
	// +optional
	Image string `json:"image,omitempty"`
	// +optional
	Port int32 `json:"port,omitempty"`
}

func (*AstroStar) DeepCopy

func (in *AstroStar) DeepCopy() *AstroStar

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

func (*AstroStar) DeepCopyInto

func (in *AstroStar) DeepCopyInto(out *AstroStar)

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

type AstroStarType

type AstroStarType string
const (
	AstroStarDocker AstroStarType = "docker"
)

type AstroStatus

type AstroStatus struct {
	// +optional
	Conditions []AstroCondition `json:"conditions,omitempty"`
	// +optional
	Phase AstroPhase `json:"phase,omitempty"`
	// +optional
	DeploymentRef []AstroRef `json:"deploymentRef,omitempty"`
	// +optional
	ServiceRef []AstroRef `json:"serviceRef,omitempty"`
	// +optional
	AstermuleRef AstroRef `json:"astermuleRef,omitempty"`
	// +optional
	NodeNumber int32 `json:"nodeNumber,omitempty"`
	// +optional
	ReadyNodeNumber int32 `json:"readyNodeNumber,omitempty"`
	// +optional
	Result parser.Message `json:"result,omitempty"`
}

AstroStatus is the status for a Astro resource

func (*AstroStatus) DeepCopy

func (in *AstroStatus) DeepCopy() *AstroStatus

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

func (*AstroStatus) DeepCopyInto

func (in *AstroStatus) DeepCopyInto(out *AstroStatus)

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