Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type Astro
- type AstroCondition
- type AstroConditionStatus
- type AstroConditionType
- type AstroList
- type AstroPhase
- type AstroRef
- type AstroSpec
- type AstroStar
- type AstroStarType
- type AstroStatus
Constants ¶
const GroupName = "astertower.kasterism.io"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // Depreciated: use Install instead AddToScheme = localSchemeBuilder.AddToScheme Install = localSchemeBuilder.AddToScheme )
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func RegisterDefaults ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Astro.
func (*Astro) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Astro) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AstroList.
func (*AstroList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AstroList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AstroRef.
func (*AstroRef) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AstroSpec.
func (*AstroSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AstroStar.
func (*AstroStar) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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.