v1beta1

package
v0.0.0-...-9fe8468 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the kubic v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubic-project/registries-operator/pkg/apis/kubic +k8s:defaulter-gen=TypeMeta +groupName=kubic.opensuse.org

Package v1beta1 contains API Schema definitions for the kubic v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubic-project/registries-operator/pkg/apis/kubic +k8s:defaulter-gen=TypeMeta +groupName=kubic.opensuse.org

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "kubic.opensuse.org", Version: "v1beta1"}

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

Functions

This section is empty.

Types

type Registry

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

	Spec   RegistrySpec   `json:"spec,omitempty"`
	Status RegistryStatus `json:"status,omitempty"`
}

Registry is the Schema for the registries API +k8s:openapi-gen=true

func GetTestRegistry

func GetTestRegistry(name string) (*Registry, error)

func (*Registry) DeepCopy

func (in *Registry) DeepCopy() *Registry

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

func (*Registry) DeepCopyInto

func (in *Registry) DeepCopyInto(out *Registry)

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

func (*Registry) DeepCopyObject

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

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

func (Registry) GetCertificateSecret

func (registry Registry) GetCertificateSecret(r client.Client) (*v1.Secret, error)

GetCertificateSecret gets the certificate for a registry

func (Registry) String

func (registry Registry) String() string

String returns registry HOST:PORT formatted address

type RegistryCertificateStatus

type RegistryCertificateStatus struct {

	// CertHash is the hash of the certificate that has been installed in the Nodes
	// When this hash changes, all the Nodes must be invalidated.
	// +optional
	CurrentHash string

	// Number of Nodes where this has been installed
	NumNodes int
}

RegistryCertificateStatus defines the observed state of Registry

func (*RegistryCertificateStatus) DeepCopy

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

func (*RegistryCertificateStatus) DeepCopyInto

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

type RegistryList

type RegistryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Registry `json:"items"`
}

RegistryList contains a list of Registry

func (*RegistryList) DeepCopy

func (in *RegistryList) DeepCopy() *RegistryList

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

func (*RegistryList) DeepCopyInto

func (in *RegistryList) DeepCopyInto(out *RegistryList)

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

func (*RegistryList) DeepCopyObject

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

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

type RegistrySpec

type RegistrySpec struct {

	// HostPort is the registry HOST:PORT address (ie, "registry.suse.com:5000")
	HostPort string `json:"hostPort,omitempty"`

	// Name of the certificate (stored in a Secret) to use for this registry
	// +optional
	Certificate *v1.SecretReference `json:"certificate,omitempty"`
}

RegistrySpec defines the desired state of Registry

func (*RegistrySpec) DeepCopy

func (in *RegistrySpec) DeepCopy() *RegistrySpec

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

func (*RegistrySpec) DeepCopyInto

func (in *RegistrySpec) DeepCopyInto(out *RegistrySpec)

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

type RegistryStatus

type RegistryStatus struct {
	// Important: Run "make" to regenerate code after modifying this file
	Certificate RegistryCertificateStatus
}

RegistryStatus defines the observed state of Registry

func (*RegistryStatus) DeepCopy

func (in *RegistryStatus) DeepCopy() *RegistryStatus

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

func (*RegistryStatus) DeepCopyInto

func (in *RegistryStatus) DeepCopyInto(out *RegistryStatus)

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