Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=operator.webhippie.de
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ConditionStatus
- type Database
- type DatabaseCondition
- type DatabaseList
- type DatabaseSpec
- type DatabaseStatus
- type Server
- type ServerCondition
- type ServerConditionType
- type ServerList
- type ServerSpec
- type ServerStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{ Group: samplecontroller.GroupName, Version: "v1alpha1", } // SchemeBuilder references the scheme builder with the known types. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme references the add to scheme from the scheme builder. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ConditionStatus ¶
type ConditionStatus string
ConditionStatus represents status of the Server or Database condition.
const ( // ConditionTrue means a resource is in the condition. ConditionTrue ConditionStatus = "True" // ConditionFalse means a resource is not in the condition. ConditionFalse ConditionStatus = "False" // ConditionUnknown means controller can't decide if a Server or Database resource is in the condition or not. ConditionUnknown ConditionStatus = "Unknown" )
type Database ¶
type Database struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DatabaseSpec `json:"spec"` Status DatabaseStatus `json:"status"` }
Database is a specification for a Database resource
type DatabaseCondition ¶
type DatabaseCondition struct { // Type is the type of the condition. Type DatabaseConditionType // Status is the status of the condition (true, false, unknown). Status ConditionStatus // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time // Unique, one-word, CamelCase reason for the condition's last transition. Reason string // Human-readable message indicating details about last transition. Message string }
DatabaseCondition contains details for the current condition of this Database instance.
type DatabaseList ¶
type DatabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Database `json:"items"` }
DatabaseList is a list of Database resources
type DatabaseStatus ¶
type DatabaseStatus struct { // Conditions indicates states of the EtcdStroageStatus, Conditions []DatabaseCondition }
DatabaseStatus is the status for a Database resource
type Server ¶
type Server struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServerSpec `json:"spec"` Status ServerStatus `json:"status"` }
Server is a specification for a Server resource
type ServerCondition ¶
type ServerCondition struct { // Type is the type of the condition. Type ServerConditionType // Status is the status of the condition (true, false, unknown). Status ConditionStatus // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time // Unique, one-word, CamelCase reason for the condition's last transition. Reason string // Human-readable message indicating details about last transition. Message string }
ServerCondition contains details for the current condition of this Server instance.
type ServerConditionType ¶
type ServerConditionType string
ServerConditionType represents condition of the Server or Database resource.
const ( // Deployed means Server Deployment and Service for exposing Server or Database are created. Deployed ServerConditionType = "Deployed" )
type ServerList ¶
type ServerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Server `json:"items"` }
ServerList is a list of Server resources
type ServerStatus ¶
type ServerStatus struct { // Conditions indicates states of the EtcdStroageStatus, Conditions []ServerCondition }
ServerStatus is the status for a Server resource