mirror

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

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

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder used to register the Shoot resource.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

This section is empty.

Types

type MirrorConfig

type MirrorConfig struct {
	metav1.TypeMeta

	// Mirrors is a slice of registry mirrors to configure.
	Mirrors []MirrorConfiguration
}

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.
	Upstream string
	// Hosts are the mirror hosts to be used for the upstream.
	Hosts []MirrorHost
}

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
	// 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".
	Capabilities []MirrorHostCapability
}

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

Directories

Path Synopsis
Package v1alpha1 is a version of the API.
Package v1alpha1 is a version of the API.

Jump to

Keyboard shortcuts

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