v1alpha1

package
v0.0.0-...-5eb911e Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=operator.webhippie.de

Index

Constants

This section is empty.

Variables

View Source
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 Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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 DatabaseSpec

type DatabaseSpec struct {
}

DatabaseSpec is the spec for a Database resource

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 ServerSpec

type ServerSpec struct {
}

ServerSpec is the spec for a Server resource

type ServerStatus

type ServerStatus struct {
	// Conditions indicates states of the EtcdStroageStatus,
	Conditions []ServerCondition
}

ServerStatus is the status for a Server resource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL