v1alpha1

package
v0.0.0-...-814654e Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the meta v1alpha1 API group +kubebuilder:object:generate=true +groupName=meta.scaleway.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "meta.scaleway.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Condition

type Condition struct {
	// Type is the type of the condition.
	Type ConditionType `json:"type,omitempty"`
	// Status is the status of the condition.
	// Can be True, False, Unknown.
	Status corev1.ConditionStatus `json:"status,omitempty"`
	// Last time we probed the condition.
	LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// Unique, one-word, CamelCase reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// Human-readable message indicating details about last transition.
	Message string `json:"message,omitempty"`
}

Condition contains details for the current condition of this Scaleway resource.

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionType

type ConditionType string

ConditionType is a valid value for Conidtion.Type

const (
	// Reconciled indicates whether the resource was successfully reconciled
	Reconciled ConditionType = "Reconciled"
	// Ready indicates whether the resource is considered ready
	Ready ConditionType = "Ready"
)

type Status

type Status struct {
	Conditions []Condition `json:"conditions,omitempty"`
}

Status defines the observed state of a Scaleway resource

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

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

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

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

func (Status) IsReady

func (s Status) IsReady() bool

IsReady returns true is the Ready condition is True

func (Status) IsReconciled

func (s Status) IsReconciled() bool

IsReconciled returns true is the Ready condition is True

func (Status) IsReconciledAfter

func (s Status) IsReconciledAfter(now time.Time) bool

IsReconciledAfter returns true is the Ready condition is True

type TypeMeta

type TypeMeta interface {
	GetStatus() Status
	SetStatus(Status)
}

TypeMeta implements the Scaleway Status methods +k8s:deepcopy-gen=false

Jump to

Keyboard shortcuts

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