v1alpha3

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha3 is a version of the API. +groupName=registry.extensions.gardener.cloud

Index

Constants

View Source
const GroupName = "registry.extensions.gardener.cloud"

GroupName is the group name use in this package

Variables

View Source
var (

	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var (
	// DefaultTTL is the default time to live of a blob in the cache.
	DefaultTTL = metav1.Duration{Duration: 7 * 24 * time.Hour}
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha3"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_registry_GarbageCollection_To_v1alpha3_GarbageCollection

func Convert_registry_GarbageCollection_To_v1alpha3_GarbageCollection(in *registry.GarbageCollection, out *GarbageCollection, s conversion.Scope) error

Convert_registry_GarbageCollection_To_v1alpha3_GarbageCollection is an autogenerated conversion function.

func Convert_registry_RegistryCacheStatus_To_v1alpha3_RegistryCacheStatus

func Convert_registry_RegistryCacheStatus_To_v1alpha3_RegistryCacheStatus(in *registry.RegistryCacheStatus, out *RegistryCacheStatus, s conversion.Scope) error

Convert_registry_RegistryCacheStatus_To_v1alpha3_RegistryCacheStatus is an autogenerated conversion function.

func Convert_registry_RegistryCache_To_v1alpha3_RegistryCache

func Convert_registry_RegistryCache_To_v1alpha3_RegistryCache(in *registry.RegistryCache, out *RegistryCache, s conversion.Scope) error

Convert_registry_RegistryCache_To_v1alpha3_RegistryCache is an autogenerated conversion function.

func Convert_registry_RegistryConfig_To_v1alpha3_RegistryConfig

func Convert_registry_RegistryConfig_To_v1alpha3_RegistryConfig(in *registry.RegistryConfig, out *RegistryConfig, s conversion.Scope) error

Convert_registry_RegistryConfig_To_v1alpha3_RegistryConfig is an autogenerated conversion function.

func Convert_registry_RegistryStatus_To_v1alpha3_RegistryStatus

func Convert_registry_RegistryStatus_To_v1alpha3_RegistryStatus(in *registry.RegistryStatus, out *RegistryStatus, s conversion.Scope) error

Convert_registry_RegistryStatus_To_v1alpha3_RegistryStatus is an autogenerated conversion function.

func Convert_registry_Volume_To_v1alpha3_Volume

func Convert_registry_Volume_To_v1alpha3_Volume(in *registry.Volume, out *Volume, s conversion.Scope) error

Convert_registry_Volume_To_v1alpha3_Volume is an autogenerated conversion function.

func Convert_v1alpha3_GarbageCollection_To_registry_GarbageCollection

func Convert_v1alpha3_GarbageCollection_To_registry_GarbageCollection(in *GarbageCollection, out *registry.GarbageCollection, s conversion.Scope) error

Convert_v1alpha3_GarbageCollection_To_registry_GarbageCollection is an autogenerated conversion function.

func Convert_v1alpha3_RegistryCacheStatus_To_registry_RegistryCacheStatus

func Convert_v1alpha3_RegistryCacheStatus_To_registry_RegistryCacheStatus(in *RegistryCacheStatus, out *registry.RegistryCacheStatus, s conversion.Scope) error

Convert_v1alpha3_RegistryCacheStatus_To_registry_RegistryCacheStatus is an autogenerated conversion function.

func Convert_v1alpha3_RegistryCache_To_registry_RegistryCache

func Convert_v1alpha3_RegistryCache_To_registry_RegistryCache(in *RegistryCache, out *registry.RegistryCache, s conversion.Scope) error

Convert_v1alpha3_RegistryCache_To_registry_RegistryCache is an autogenerated conversion function.

func Convert_v1alpha3_RegistryConfig_To_registry_RegistryConfig

func Convert_v1alpha3_RegistryConfig_To_registry_RegistryConfig(in *RegistryConfig, out *registry.RegistryConfig, s conversion.Scope) error

Convert_v1alpha3_RegistryConfig_To_registry_RegistryConfig is an autogenerated conversion function.

func Convert_v1alpha3_RegistryStatus_To_registry_RegistryStatus

func Convert_v1alpha3_RegistryStatus_To_registry_RegistryStatus(in *RegistryStatus, out *registry.RegistryStatus, s conversion.Scope) error

Convert_v1alpha3_RegistryStatus_To_registry_RegistryStatus is an autogenerated conversion function.

func Convert_v1alpha3_Volume_To_registry_Volume

func Convert_v1alpha3_Volume_To_registry_Volume(in *Volume, out *registry.Volume, s conversion.Scope) error

Convert_v1alpha3_Volume_To_registry_Volume 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 SetDefaults_RegistryCache

func SetDefaults_RegistryCache(cache *RegistryCache)

SetDefaults_RegistryCache sets the defaults for a RegistryCache.

func SetDefaults_Volume

func SetDefaults_Volume(volume *Volume)

SetDefaults_Volume sets the defaults for a Volume.

func SetObjectDefaults_RegistryConfig

func SetObjectDefaults_RegistryConfig(in *RegistryConfig)

Types

type GarbageCollection

type GarbageCollection struct {
	// TTL is the time to live of a blob in the cache.
	// Set to 0s to disable the garbage collection.
	// Defaults to 168h (7 days).
	TTL metav1.Duration `json:"ttl"`
}

GarbageCollection contains settings for the garbage collection of content from the cache.

func (*GarbageCollection) DeepCopy

func (in *GarbageCollection) DeepCopy() *GarbageCollection

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

func (*GarbageCollection) DeepCopyInto

func (in *GarbageCollection) DeepCopyInto(out *GarbageCollection)

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

type RegistryCache

type RegistryCache struct {
	// Upstream is the remote registry host to cache.
	// The value must be a valid DNS subdomain (RFC 1123) and optionally a port.
	Upstream string `json:"upstream"`
	// RemoteURL is the remote registry URL. The format must be `<scheme><host>[:<port>]` where
	// `<scheme>` is `https://` or `http://` and `<host>[:<port>]` corresponds to the Upstream
	//
	// If defined, the value is set as `proxy.remoteurl` in the registry [configuration](https://github.com/distribution/distribution/blob/main/docs/content/recipes/mirror.md#configure-the-cache)
	// and in containerd configuration as `server` field in [hosts.toml](https://github.com/containerd/containerd/blob/main/docs/hosts.md#server-field) file.
	// +optional
	RemoteURL *string `json:"remoteURL,omitempty"`
	// Volume contains settings for the registry cache volume.
	// +optional
	Volume *Volume `json:"volume,omitempty"`
	// GarbageCollection contains settings for the garbage collection of content from the cache.
	// Defaults to enabled garbage collection.
	// +optional
	GarbageCollection *GarbageCollection `json:"garbageCollection,omitempty"`
	// SecretReferenceName is the name of the reference for the Secret containing the upstream registry credentials.
	// +optional
	SecretReferenceName *string `json:"secretReferenceName,omitempty"`
}

RegistryCache represents a registry cache to deploy.

func (*RegistryCache) DeepCopy

func (in *RegistryCache) DeepCopy() *RegistryCache

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

func (*RegistryCache) DeepCopyInto

func (in *RegistryCache) DeepCopyInto(out *RegistryCache)

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

type RegistryCacheStatus

type RegistryCacheStatus struct {
	// Upstream is the remote registry host (and optionally port).
	Upstream string `json:"upstream"`
	// Endpoint is the registry cache endpoint.
	// Example: "http://10.4.246.205:5000"
	Endpoint string `json:"endpoint"`
	// RemoteURL is the remote registry URL.
	RemoteURL string `json:"remoteURL"`
}

RegistryCacheStatus represents a deployed registry cache.

func (*RegistryCacheStatus) DeepCopy

func (in *RegistryCacheStatus) DeepCopy() *RegistryCacheStatus

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

func (*RegistryCacheStatus) DeepCopyInto

func (in *RegistryCacheStatus) DeepCopyInto(out *RegistryCacheStatus)

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

type RegistryConfig

type RegistryConfig struct {
	metav1.TypeMeta `json:",inline"`

	// Caches is a slice of registry caches to deploy.
	Caches []RegistryCache `json:"caches"`
}

RegistryConfig contains information about registry caches to deploy.

func (*RegistryConfig) DeepCopy

func (in *RegistryConfig) DeepCopy() *RegistryConfig

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

func (*RegistryConfig) DeepCopyInto

func (in *RegistryConfig) DeepCopyInto(out *RegistryConfig)

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

func (*RegistryConfig) DeepCopyObject

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

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

type RegistryStatus

type RegistryStatus struct {
	metav1.TypeMeta `json:",inline"`

	// Caches is a slice of deployed registry caches.
	Caches []RegistryCacheStatus `json:"caches"`
}

RegistryStatus contains information about deployed registry caches.

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.

func (*RegistryStatus) DeepCopyObject

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

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

type Volume

type Volume struct {
	// Size is the size of the registry cache volume.
	// Defaults to 10Gi.
	// This field is immutable.
	// +optional
	Size *resource.Quantity `json:"size,omitempty"`
	// StorageClassName is the name of the StorageClass used by the registry cache volume.
	// This field is immutable.
	// +optional
	StorageClassName *string `json:"storageClassName,omitempty"`
}

Volume contains settings for the registry cache volume.

func (*Volume) DeepCopy

func (in *Volume) DeepCopy() *Volume

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

func (*Volume) DeepCopyInto

func (in *Volume) DeepCopyInto(out *Volume)

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