v1

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 8 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder is the scheme builder for ClusterVersionOperator's types.
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme is the function alias for AddtoScheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: apis.ClusterVersionGroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource.

Types

type CVOConfig

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

	Upstream  URL       `json:"upstream"`
	Channel   string    `json:"channel"`
	ClusterID uuid.UUID `json:"clusterId"`

	DesiredUpdate Update `json:"desiredUpdate"`
}

CVOConfig is the configuration for the ClusterVersionOperator. This is where parameters related to automatic updates can be set. +genclient

func (*CVOConfig) DeepCopyInto

func (c *CVOConfig) DeepCopyInto(out *CVOConfig)

DeepCopyInto copies the CVOConfig into another CVOConfig. This doesn't actually require a deep copy, but the code generator (and Go itself) isn't advanced enough to determine that.

func (*CVOConfig) DeepCopyObject

func (c *CVOConfig) DeepCopyObject() runtime.Object

DeepCopyObject copies the CVOConfig into an Object. This doesn't actually require a deep copy, but the code generator (and Go itself) isn't advanced enough to determine that.

func (CVOConfig) String

func (c CVOConfig) String() string

type CVOConfigList

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

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

CVOConfigList is a list of CVOConfig resources. +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CVOConfigList) DeepCopy

func (in *CVOConfigList) DeepCopy() *CVOConfigList

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

func (*CVOConfigList) DeepCopyInto

func (in *CVOConfigList) DeepCopyInto(out *CVOConfigList)

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

func (*CVOConfigList) DeepCopyObject

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

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

type CVOStatus

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

	AvailableUpdates []Update `json:"availableUpdates"`
}

CVOStatus contains information specific to the ClusterVersionOperator. This object is inserted into the Extension attribute of the generic OperatorStatus object. +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CVOStatus) DeepCopy

func (in *CVOStatus) DeepCopy() *CVOStatus

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

func (*CVOStatus) DeepCopyInto

func (in *CVOStatus) DeepCopyInto(out *CVOStatus)

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

func (*CVOStatus) DeepCopyObject

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

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

type URL

type URL string

URL is a thin wrapper around string that ensures the string is a valid URL.

func (*URL) UnmarshalJSON

func (u *URL) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals a URL, ensuring that it is valid.

type Update

type Update struct {
	Version string `json:"version"`
	Payload string `json:"payload"`
}

Update represents a release of the ClusterVersionOperator, referenced by the Payload member.

Jump to

Keyboard shortcuts

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