Documentation ¶
Overview ¶
Package v1alpha1 is a version of the API. +groupName=mirror.extensions.gardener.cloud
Index ¶
- Constants
- Variables
- func Convert_mirror_MirrorConfig_To_v1alpha1_MirrorConfig(in *mirror.MirrorConfig, out *MirrorConfig, s conversion.Scope) error
- func Convert_mirror_MirrorConfiguration_To_v1alpha1_MirrorConfiguration(in *mirror.MirrorConfiguration, out *MirrorConfiguration, s conversion.Scope) error
- func Convert_mirror_MirrorHost_To_v1alpha1_MirrorHost(in *mirror.MirrorHost, out *MirrorHost, s conversion.Scope) error
- func Convert_v1alpha1_MirrorConfig_To_mirror_MirrorConfig(in *MirrorConfig, out *mirror.MirrorConfig, s conversion.Scope) error
- func Convert_v1alpha1_MirrorConfiguration_To_mirror_MirrorConfiguration(in *MirrorConfiguration, out *mirror.MirrorConfiguration, s conversion.Scope) error
- func Convert_v1alpha1_MirrorHost_To_mirror_MirrorHost(in *MirrorHost, out *mirror.MirrorHost, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_MirrorHost(mirrorHost *MirrorHost)
- func SetObjectDefaults_MirrorConfig(in *MirrorConfig)
- type MirrorConfig
- type MirrorConfiguration
- type MirrorHost
- type MirrorHostCapability
Constants ¶
const GroupName = "mirror.extensions.gardener.cloud"
GroupName is the group name use in this package
Variables ¶
var (
// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_mirror_MirrorConfig_To_v1alpha1_MirrorConfig ¶
func Convert_mirror_MirrorConfig_To_v1alpha1_MirrorConfig(in *mirror.MirrorConfig, out *MirrorConfig, s conversion.Scope) error
Convert_mirror_MirrorConfig_To_v1alpha1_MirrorConfig is an autogenerated conversion function.
func Convert_mirror_MirrorConfiguration_To_v1alpha1_MirrorConfiguration ¶
func Convert_mirror_MirrorConfiguration_To_v1alpha1_MirrorConfiguration(in *mirror.MirrorConfiguration, out *MirrorConfiguration, s conversion.Scope) error
Convert_mirror_MirrorConfiguration_To_v1alpha1_MirrorConfiguration is an autogenerated conversion function.
func Convert_mirror_MirrorHost_To_v1alpha1_MirrorHost ¶
func Convert_mirror_MirrorHost_To_v1alpha1_MirrorHost(in *mirror.MirrorHost, out *MirrorHost, s conversion.Scope) error
Convert_mirror_MirrorHost_To_v1alpha1_MirrorHost is an autogenerated conversion function.
func Convert_v1alpha1_MirrorConfig_To_mirror_MirrorConfig ¶
func Convert_v1alpha1_MirrorConfig_To_mirror_MirrorConfig(in *MirrorConfig, out *mirror.MirrorConfig, s conversion.Scope) error
Convert_v1alpha1_MirrorConfig_To_mirror_MirrorConfig is an autogenerated conversion function.
func Convert_v1alpha1_MirrorConfiguration_To_mirror_MirrorConfiguration ¶
func Convert_v1alpha1_MirrorConfiguration_To_mirror_MirrorConfiguration(in *MirrorConfiguration, out *mirror.MirrorConfiguration, s conversion.Scope) error
Convert_v1alpha1_MirrorConfiguration_To_mirror_MirrorConfiguration is an autogenerated conversion function.
func Convert_v1alpha1_MirrorHost_To_mirror_MirrorHost ¶
func Convert_v1alpha1_MirrorHost_To_mirror_MirrorHost(in *MirrorHost, out *mirror.MirrorHost, s conversion.Scope) error
Convert_v1alpha1_MirrorHost_To_mirror_MirrorHost is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
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_MirrorHost ¶
func SetDefaults_MirrorHost(mirrorHost *MirrorHost)
SetDefaults_MirrorHost sets the defaults for a MirrorHost.
func SetObjectDefaults_MirrorConfig ¶
func SetObjectDefaults_MirrorConfig(in *MirrorConfig)
Types ¶
type MirrorConfig ¶
type MirrorConfig struct { metav1.TypeMeta `json:",inline"` // Mirrors is a slice of registry mirrors to configure. Mirrors []MirrorConfiguration `json:"mirrors"` }
MirrorConfig contains information about registry mirrors to configure.
func (*MirrorConfig) DeepCopy ¶
func (in *MirrorConfig) DeepCopy() *MirrorConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MirrorConfig.
func (*MirrorConfig) DeepCopyInto ¶
func (in *MirrorConfig) DeepCopyInto(out *MirrorConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MirrorConfig) DeepCopyObject ¶
func (in *MirrorConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MirrorConfiguration ¶
type MirrorConfiguration struct { // Upstream is the remote registry host to mirror. // The value must be a valid DNS subdomain (RFC 1123) and optionally a port. Upstream string `json:"upstream"` // Hosts are the mirror hosts to be used for the upstream. Hosts []MirrorHost `json:"hosts"` }
MirrorConfiguration represents a registry mirror.
func (*MirrorConfiguration) DeepCopy ¶
func (in *MirrorConfiguration) DeepCopy() *MirrorConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MirrorConfiguration.
func (*MirrorConfiguration) DeepCopyInto ¶
func (in *MirrorConfiguration) DeepCopyInto(out *MirrorConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MirrorHost ¶
type MirrorHost struct { // Host is the mirror host. Host string `json:"host"` // Capabilities are the operations a host is capable of performing. // This also represents the set of operations for which the mirror host may be trusted to perform. // The supported values are "pull" and "resolve". // Defaults to ["pull"]. // +optional Capabilities []MirrorHostCapability `json:"capabilities"` }
MirrorHost represents a mirror host.
func (*MirrorHost) DeepCopy ¶
func (in *MirrorHost) DeepCopy() *MirrorHost
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MirrorHost.
func (*MirrorHost) DeepCopyInto ¶
func (in *MirrorHost) DeepCopyInto(out *MirrorHost)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MirrorHostCapability ¶
type MirrorHostCapability string
MirrorHostCapability represents a mirror host capability.
const ( // MirrorHostCapabilityPull represents the capability to fetch manifests and blobs by digest. MirrorHostCapabilityPull MirrorHostCapability = "pull" // MirrorHostCapabilityResolve represents the capability to fetch manifests by name. MirrorHostCapabilityResolve MirrorHostCapability = "resolve" )