v1alpha1

package
v0.0.0-...-a80b3ab Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

+groupName=wing.tarmak.io

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

View Source
const (
	InstanceManifestStateConverging = InstanceManifestState("converging")
	InstanceManifestStateConverged  = InstanceManifestState("converged")
	InstanceManifestStateError      = InstanceManifestState("error")
)
View Source
const GroupName = "wing.tarmak.io"

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

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

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_v1alpha1_InstanceList_To_wing_InstanceList

func Convert_v1alpha1_InstanceList_To_wing_InstanceList(in *InstanceList, out *wing.InstanceList, s conversion.Scope) error

Convert_v1alpha1_InstanceList_To_wing_InstanceList is an autogenerated conversion function.

func Convert_v1alpha1_InstanceSpecManifest_To_wing_InstanceSpecManifest

func Convert_v1alpha1_InstanceSpecManifest_To_wing_InstanceSpecManifest(in *InstanceSpecManifest, out *wing.InstanceSpecManifest, s conversion.Scope) error

Convert_v1alpha1_InstanceSpecManifest_To_wing_InstanceSpecManifest is an autogenerated conversion function.

func Convert_v1alpha1_InstanceSpec_To_wing_InstanceSpec

func Convert_v1alpha1_InstanceSpec_To_wing_InstanceSpec(in *InstanceSpec, out *wing.InstanceSpec, s conversion.Scope) error

Convert_v1alpha1_InstanceSpec_To_wing_InstanceSpec is an autogenerated conversion function.

func Convert_v1alpha1_InstanceStatusManifest_To_wing_InstanceStatusManifest

func Convert_v1alpha1_InstanceStatusManifest_To_wing_InstanceStatusManifest(in *InstanceStatusManifest, out *wing.InstanceStatusManifest, s conversion.Scope) error

Convert_v1alpha1_InstanceStatusManifest_To_wing_InstanceStatusManifest is an autogenerated conversion function.

func Convert_v1alpha1_InstanceStatus_To_wing_InstanceStatus

func Convert_v1alpha1_InstanceStatus_To_wing_InstanceStatus(in *InstanceStatus, out *wing.InstanceStatus, s conversion.Scope) error

Convert_v1alpha1_InstanceStatus_To_wing_InstanceStatus is an autogenerated conversion function.

func Convert_v1alpha1_Instance_To_wing_Instance

func Convert_v1alpha1_Instance_To_wing_Instance(in *Instance, out *wing.Instance, s conversion.Scope) error

Convert_v1alpha1_Instance_To_wing_Instance is an autogenerated conversion function.

func Convert_wing_InstanceList_To_v1alpha1_InstanceList

func Convert_wing_InstanceList_To_v1alpha1_InstanceList(in *wing.InstanceList, out *InstanceList, s conversion.Scope) error

Convert_wing_InstanceList_To_v1alpha1_InstanceList is an autogenerated conversion function.

func Convert_wing_InstanceSpecManifest_To_v1alpha1_InstanceSpecManifest

func Convert_wing_InstanceSpecManifest_To_v1alpha1_InstanceSpecManifest(in *wing.InstanceSpecManifest, out *InstanceSpecManifest, s conversion.Scope) error

Convert_wing_InstanceSpecManifest_To_v1alpha1_InstanceSpecManifest is an autogenerated conversion function.

func Convert_wing_InstanceSpec_To_v1alpha1_InstanceSpec

func Convert_wing_InstanceSpec_To_v1alpha1_InstanceSpec(in *wing.InstanceSpec, out *InstanceSpec, s conversion.Scope) error

Convert_wing_InstanceSpec_To_v1alpha1_InstanceSpec is an autogenerated conversion function.

func Convert_wing_InstanceStatusManifest_To_v1alpha1_InstanceStatusManifest

func Convert_wing_InstanceStatusManifest_To_v1alpha1_InstanceStatusManifest(in *wing.InstanceStatusManifest, out *InstanceStatusManifest, s conversion.Scope) error

Convert_wing_InstanceStatusManifest_To_v1alpha1_InstanceStatusManifest is an autogenerated conversion function.

func Convert_wing_InstanceStatus_To_v1alpha1_InstanceStatus

func Convert_wing_InstanceStatus_To_v1alpha1_InstanceStatus(in *wing.InstanceStatus, out *InstanceStatus, s conversion.Scope) error

Convert_wing_InstanceStatus_To_v1alpha1_InstanceStatus is an autogenerated conversion function.

func Convert_wing_Instance_To_v1alpha1_Instance

func Convert_wing_Instance_To_v1alpha1_Instance(in *wing.Instance, out *Instance, s conversion.Scope) error

Convert_wing_Instance_To_v1alpha1_Instance is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

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 Instance

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

	InstanceID   string `json:"instanceID,omitempty"`
	InstancePool string `json:"instancePool,omitempty"`

	Spec   *InstanceSpec   `json:"spec,omitempty"`
	Status *InstanceStatus `json:"status,omitempty"`
}

func (*Instance) DeepCopy

func (in *Instance) DeepCopy() *Instance

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

func (*Instance) DeepCopyInto

func (in *Instance) DeepCopyInto(out *Instance)

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

func (*Instance) DeepCopyObject

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

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

type InstanceList

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

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

func (*InstanceList) DeepCopy

func (in *InstanceList) DeepCopy() *InstanceList

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

func (*InstanceList) DeepCopyInto

func (in *InstanceList) DeepCopyInto(out *InstanceList)

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

func (*InstanceList) DeepCopyObject

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

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

type InstanceManifestState

type InstanceManifestState string

type InstanceSpec

type InstanceSpec struct {
	Converge *InstanceSpecManifest `json:"converge,omitempty"`
	DryRun   *InstanceSpecManifest `json:"dryRun,omitempty"`
}

InstanceSpec defines the desired state of Instance

func (*InstanceSpec) DeepCopy

func (in *InstanceSpec) DeepCopy() *InstanceSpec

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

func (*InstanceSpec) DeepCopyInto

func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec)

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

type InstanceSpecManifest

type InstanceSpecManifest struct {
	Path             string      `json:"path,omitempty"`             // PATH to manifests (tar.gz)
	Hash             string      `json:"hash,omitempty"`             // hash of manifests, prefixed with type (eg: sha256:xyz)
	RequestTimestamp metav1.Time `json:"requestTimestamp,omitempty"` // timestamp when a converge was requested
}

InstaceSpecManifest defines location and hash for a specific manifest

func (*InstanceSpecManifest) DeepCopy

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

func (*InstanceSpecManifest) DeepCopyInto

func (in *InstanceSpecManifest) DeepCopyInto(out *InstanceSpecManifest)

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

type InstanceStatus

type InstanceStatus struct {
	Converge *InstanceStatusManifest `json:"converge,omitempty"`
	DryRun   *InstanceStatusManifest `json:"dryRun,omitempty"`
}

InstanceStatus defines the observed state of Instance

func (*InstanceStatus) DeepCopy

func (in *InstanceStatus) DeepCopy() *InstanceStatus

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

func (*InstanceStatus) DeepCopyInto

func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus)

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

type InstanceStatusManifest

type InstanceStatusManifest struct {
	State               InstanceManifestState `json:"state,omitempty"`
	Hash                string                `json:"hash,omitempty"`                // hash of manifests, prefixed with type (eg: sha256:xyz)
	LastUpdateTimestamp metav1.Time           `json:"lastUpdateTimestamp,omitempty"` // timestamp when a converge was requested
	Messages            []string              `json:"messages,omitempty"`            // contains output of the retries
	ExitCodes           []int                 `json:"exitCodes,omitempty"`           // return code of the retries
}

InstaceSpecManifest defines the state and hash of a run manifest

func (*InstanceStatusManifest) DeepCopy

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

func (*InstanceStatusManifest) DeepCopyInto

func (in *InstanceStatusManifest) DeepCopyInto(out *InstanceStatusManifest)

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