v1alpha1

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 . +k8s:deepcopy-gen=package +groupName=installer.kyma.cx

Index

Constants

View Source
const (
	// Group .
	Group = "installer.kyma.cx"
	// Version .
	Version = "v1alpha1"
)
View Source
const (
	// StateEmpty .
	StateEmpty StateEnum = ""

	// StateInstalled means installation of kyma is done
	StateInstalled StateEnum = "Installed"

	// StateUpdated means installation of kyma is updated
	StateUpdated StateEnum = "Updated"

	// StateUninstalled means installation is removed without errors
	StateUninstalled StateEnum = "Uninstalled"

	// StateInProgress means installation/update/uninstallation is running
	StateInProgress StateEnum = "InProgress"

	// StateError means an error condition occurred during install/update/uninstall operation
	StateError StateEnum = "Error"

	// CondtitionInstalled .
	CondtitionInstalled InstallationConditionType = "Installed"

	// ConditionInstalling .
	ConditionInstalling InstallationConditionType = "Installing"

	// ConditionUpdated .
	ConditionUpdated InstallationConditionType = "Updated"

	// ConditionUpdating .
	ConditionUpdating InstallationConditionType = "Updating"

	// ConditionUninstalled .
	ConditionUninstalled InstallationConditionType = "Uninstalled"

	// ConditionUninstalling .
	ConditionUninstalling InstallationConditionType = "Uninstalling"

	// ConditionInProgress .
	ConditionInProgress InstallationConditionType = "InProgress"

	// ConditionError .
	ConditionError InstallationConditionType = "Error"

	// ActionInstall .
	ActionInstall string = "install"

	// ActionUpdate .
	ActionUpdate string = "update"

	// ActionUninstall .
	ActionUninstall = "uninstall"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{
		Group:   Group,
		Version: Version,
	}
	// SchemeBuilder .
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme .
	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 Installation

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

	Spec   InstallationSpec   `json:"spec"`
	Status InstallationStatus `json:"status"`
}

Installation .

func (*Installation) CanBeDeleted

func (i *Installation) CanBeDeleted() bool

func (*Installation) DeepCopy

func (in *Installation) DeepCopy() *Installation

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

func (*Installation) DeepCopyInto

func (in *Installation) DeepCopyInto(out *Installation)

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

func (*Installation) DeepCopyObject

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

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

func (*Installation) IsBeingDeleted

func (i *Installation) IsBeingDeleted() bool

func (*Installation) ShouldInstall

func (i *Installation) ShouldInstall() bool

ShouldInstall returns true when user requested install action

func (*Installation) ShouldUninstall

func (i *Installation) ShouldUninstall() bool

ShouldUninstall returns true when user requested uninstall action

func (*Installation) ShouldUpdate

func (i *Installation) ShouldUpdate() bool

ShouldUpdate returns true when user requested update action

type InstallationCondition

type InstallationCondition struct {
	Type               InstallationConditionType `json:"type"`
	Status             corev1.ConditionStatus    `json:"status"`
	LastTransitionTime metav1.Time               `json:"lastTransitionTime,omitempty"`
	LastProbeTime      metav1.Time               `json:"lastProbeTime,omitempty"`
}

InstallationCondition .

func (*InstallationCondition) DeepCopy

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

func (*InstallationCondition) DeepCopyInto

func (in *InstallationCondition) DeepCopyInto(out *InstallationCondition)

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

type InstallationConditionType

type InstallationConditionType string

InstallationConditionType defines installation condition type

type InstallationList

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

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

InstallationList .

func (*InstallationList) DeepCopy

func (in *InstallationList) DeepCopy() *InstallationList

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

func (*InstallationList) DeepCopyInto

func (in *InstallationList) DeepCopyInto(out *InstallationList)

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

func (*InstallationList) DeepCopyObject

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

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

type InstallationSpec

type InstallationSpec struct {
	KymaVersion string `json:"version"`
	URL         string `json:"url"`
}

InstallationSpec .

func (*InstallationSpec) DeepCopy

func (in *InstallationSpec) DeepCopy() *InstallationSpec

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

func (*InstallationSpec) DeepCopyInto

func (in *InstallationSpec) DeepCopyInto(out *InstallationSpec)

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

type InstallationStatus

type InstallationStatus struct {
	Conditions  []InstallationCondition `json:"conditions"`
	State       StateEnum               `json:"state"`
	Description string                  `json:"description"`
	KymaVersion string                  `json:"version"`
	URL         string                  `json:"url"`
}

InstallationStatus .

func (*InstallationStatus) DeepCopy

func (in *InstallationStatus) DeepCopy() *InstallationStatus

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

func (*InstallationStatus) DeepCopyInto

func (in *InstallationStatus) DeepCopyInto(out *InstallationStatus)

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

type StateEnum

type StateEnum string

StateEnum describes installation state

Jump to

Keyboard shortcuts

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