v1alpha1

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 is a version of the API. +groupName=mirror.extensions.gardener.cloud

Index

Constants

View Source
const GroupName = "mirror.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 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

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_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"
)

Jump to

Keyboard shortcuts

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