v1

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 7 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=registry.config.tkestack.io

Index

Constants

View Source
const GroupName = "registry.config.tkestack.io"

GroupName is the group name use in this package.

Variables

View Source
var (
	// SchemeBuilder collects functions that add things to a scheme.
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme applies all the stored functions to the scheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_config_Delete_To_v1_Delete added in v1.4.0

func Convert_config_Delete_To_v1_Delete(in *config.Delete, out *Delete, s conversion.Scope) error

Convert_config_Delete_To_v1_Delete is an autogenerated conversion function.

func Convert_config_EtcdStorage_To_v1_EtcdStorage added in v1.7.0

func Convert_config_EtcdStorage_To_v1_EtcdStorage(in *config.EtcdStorage, out *EtcdStorage, s conversion.Scope) error

Convert_config_EtcdStorage_To_v1_EtcdStorage is an autogenerated conversion function.

func Convert_config_FileSystemStorage_To_v1_FileSystemStorage

func Convert_config_FileSystemStorage_To_v1_FileSystemStorage(in *config.FileSystemStorage, out *FileSystemStorage, s conversion.Scope) error

Convert_config_FileSystemStorage_To_v1_FileSystemStorage is an autogenerated conversion function.

func Convert_config_InMemoryStorage_To_v1_InMemoryStorage

func Convert_config_InMemoryStorage_To_v1_InMemoryStorage(in *config.InMemoryStorage, out *InMemoryStorage, s conversion.Scope) error

Convert_config_InMemoryStorage_To_v1_InMemoryStorage is an autogenerated conversion function.

func Convert_config_Redis_To_v1_Redis

func Convert_config_Redis_To_v1_Redis(in *config.Redis, out *Redis, s conversion.Scope) error

Convert_config_Redis_To_v1_Redis is an autogenerated conversion function.

func Convert_config_RegistryConfiguration_To_v1_RegistryConfiguration

func Convert_config_RegistryConfiguration_To_v1_RegistryConfiguration(in *config.RegistryConfiguration, out *RegistryConfiguration, s conversion.Scope) error

Convert_config_RegistryConfiguration_To_v1_RegistryConfiguration is an autogenerated conversion function.

func Convert_config_S3Storage_To_v1_S3Storage

func Convert_config_S3Storage_To_v1_S3Storage(in *config.S3Storage, out *S3Storage, s conversion.Scope) error

Convert_config_S3Storage_To_v1_S3Storage is an autogenerated conversion function.

func Convert_config_Security_To_v1_Security

func Convert_config_Security_To_v1_Security(in *config.Security, out *Security, s conversion.Scope) error

Convert_config_Security_To_v1_Security is an autogenerated conversion function.

func Convert_config_Storage_To_v1_Storage

func Convert_config_Storage_To_v1_Storage(in *config.Storage, out *Storage, s conversion.Scope) error

Convert_config_Storage_To_v1_Storage is an autogenerated conversion function.

func Convert_v1_Delete_To_config_Delete added in v1.4.0

func Convert_v1_Delete_To_config_Delete(in *Delete, out *config.Delete, s conversion.Scope) error

Convert_v1_Delete_To_config_Delete is an autogenerated conversion function.

func Convert_v1_EtcdStorage_To_config_EtcdStorage added in v1.7.0

func Convert_v1_EtcdStorage_To_config_EtcdStorage(in *EtcdStorage, out *config.EtcdStorage, s conversion.Scope) error

Convert_v1_EtcdStorage_To_config_EtcdStorage is an autogenerated conversion function.

func Convert_v1_FileSystemStorage_To_config_FileSystemStorage

func Convert_v1_FileSystemStorage_To_config_FileSystemStorage(in *FileSystemStorage, out *config.FileSystemStorage, s conversion.Scope) error

Convert_v1_FileSystemStorage_To_config_FileSystemStorage is an autogenerated conversion function.

func Convert_v1_InMemoryStorage_To_config_InMemoryStorage

func Convert_v1_InMemoryStorage_To_config_InMemoryStorage(in *InMemoryStorage, out *config.InMemoryStorage, s conversion.Scope) error

Convert_v1_InMemoryStorage_To_config_InMemoryStorage is an autogenerated conversion function.

func Convert_v1_Redis_To_config_Redis

func Convert_v1_Redis_To_config_Redis(in *Redis, out *config.Redis, s conversion.Scope) error

Convert_v1_Redis_To_config_Redis is an autogenerated conversion function.

func Convert_v1_RegistryConfiguration_To_config_RegistryConfiguration

func Convert_v1_RegistryConfiguration_To_config_RegistryConfiguration(in *RegistryConfiguration, out *config.RegistryConfiguration, s conversion.Scope) error

Convert_v1_RegistryConfiguration_To_config_RegistryConfiguration is an autogenerated conversion function.

func Convert_v1_S3Storage_To_config_S3Storage

func Convert_v1_S3Storage_To_config_S3Storage(in *S3Storage, out *config.S3Storage, s conversion.Scope) error

Convert_v1_S3Storage_To_config_S3Storage is an autogenerated conversion function.

func Convert_v1_Security_To_config_Security

func Convert_v1_Security_To_config_Security(in *Security, out *config.Security, s conversion.Scope) error

Convert_v1_Security_To_config_Security is an autogenerated conversion function.

func Convert_v1_Storage_To_config_Storage

func Convert_v1_Storage_To_config_Storage(in *Storage, out *config.Storage, s conversion.Scope) error

Convert_v1_Storage_To_config_Storage 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 Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a LocalGroup qualified GroupResource

func SetDefaults_RegistryConfiguration

func SetDefaults_RegistryConfiguration(obj *RegistryConfiguration)

func SetObjectDefaults_RegistryConfiguration

func SetObjectDefaults_RegistryConfiguration(in *RegistryConfiguration)

Types

type Delete added in v1.4.0

type Delete struct {
	Enabled bool `json:"enabled" yaml:"enabled"`
}

Delete cloud enable the deletion of image blobs and manifests by digest.

func (*Delete) DeepCopy added in v1.4.0

func (in *Delete) DeepCopy() *Delete

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

func (*Delete) DeepCopyInto added in v1.4.0

func (in *Delete) DeepCopyInto(out *Delete)

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

type EtcdStorage added in v1.7.0

type EtcdStorage struct {
	CAFile    string   `json:"cafile" yaml:"cafile"`
	CertFile  string   `json:"certfile" yaml:"certfile"`
	KeyFile   string   `json:"keyfile" yaml:"keyfile"`
	EndPoints []string `json:"endpoints" yaml:"endpoints"`
	// +optional
	Prefix string `json:"prefix,omitempty" yaml:"prefix,omitempty"`
}

func (*EtcdStorage) DeepCopy added in v1.7.0

func (in *EtcdStorage) DeepCopy() *EtcdStorage

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

func (*EtcdStorage) DeepCopyInto added in v1.7.0

func (in *EtcdStorage) DeepCopyInto(out *EtcdStorage)

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

type FileSystemStorage

type FileSystemStorage struct {
	RootDirectory string `json:"rootDirectory" yaml:"rootDirectory"`
	// +optional
	MaxThreads *int64 `json:"maxThreads,omitempty" yaml:"maxThreads,omitempty"`
}

func (*FileSystemStorage) DeepCopy

func (in *FileSystemStorage) DeepCopy() *FileSystemStorage

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

func (*FileSystemStorage) DeepCopyInto

func (in *FileSystemStorage) DeepCopyInto(out *FileSystemStorage)

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

type InMemoryStorage

type InMemoryStorage struct{}

func (*InMemoryStorage) DeepCopy

func (in *InMemoryStorage) DeepCopy() *InMemoryStorage

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

func (*InMemoryStorage) DeepCopyInto

func (in *InMemoryStorage) DeepCopyInto(out *InMemoryStorage)

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

type Redis

type Redis struct {
	// Addr specifies the the redis instance available to the registry API server.
	Addr string `json:"addr" yaml:"addr"`
	// Password string to use when making a connection.
	Password string `json:"password" yaml:"password"`
	// DB specifies the database to connect to on the redis instance.
	DB int32 `json:"db" yaml:"db"`
	// +optional
	ReadTimeoutMillisecond *int64 `json:"readTimeoutMillisecond,omitempty" yaml:"readTimeoutMillisecond,omitempty"`
	// +optional
	DialTimeoutMillisecond *int64 `json:"dialTimeoutMillisecond,omitempty" yaml:"dialTimeoutMillisecond,omitempty"`
	// +optional
	WriteTimeoutMillisecond *int64 `json:"writeTimeoutMillisecond,omitempty" yaml:"writeTimeoutMillisecond,omitempty"`
	// PoolMaxIdle sets the maximum number of idle connections.
	// +optional
	PoolMaxIdle *int32 `json:"poolMaxIdle,omitempty" yaml:"poolMaxIdle,omitempty"`
	// PoolMaxActive sets the maximum number of connections that should be opened before
	// blocking a connection request.
	// +optional
	PoolMaxActive *int32 `json:"poolMaxActive,omitempty" yaml:"poolMaxActive,omitempty"`
	// PoolIdleTimeoutSeconds sets the amount time to wait before closing inactive connections.
	// +optional
	PoolIdleTimeoutSeconds *int64 `json:"poolIdleTimeoutSeconds,omitempty" yaml:"poolIdleTimeoutSeconds,omitempty"`
}

Redis configures the redis pool available to the registry cache.

func (*Redis) DeepCopy

func (in *Redis) DeepCopy() *Redis

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

func (*Redis) DeepCopyInto

func (in *Redis) DeepCopyInto(out *Redis)

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

type RegistryConfiguration

type RegistryConfiguration struct {
	metav1.TypeMeta

	Storage  Storage  `json:"storage" yaml:"storage"`
	Security Security `json:"security" yaml:"security"`
	// +optional
	Redis         *Redis `json:"redis,omitempty" yaml:"redis,omitempty"`
	DefaultTenant string `json:"defaultTenant" yaml:"defaultTenant"`
	// +optional
	DomainSuffix  string `json:"domainSuffix,omitempty" yaml:"domainSuffix,omitempty"`
	HarborEnabled bool   `json:"harborEnabled,omitempty" yaml:"harborEnabled,omitempty"`
	HarborCAFile  string `json:"harborCAFile,omitempty" yaml:"harborCAFile,omitempty"`
}

RegistryConfiguration contains the configuration for the Registry

func (*RegistryConfiguration) DeepCopy

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

func (*RegistryConfiguration) DeepCopyInto

func (in *RegistryConfiguration) DeepCopyInto(out *RegistryConfiguration)

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

func (*RegistryConfiguration) DeepCopyObject

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

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

type S3Storage

type S3Storage struct {
	Bucket string `json:"bucket" yaml:"bucket"`
	Region string `json:"region" yaml:"region"`

	// +optional
	AccessKey *string `json:"accessKey,omitempty" yaml:"accessKey,omitempty"`
	// +optional
	SecretKey *string `json:"secretKey,omitempty" yaml:"secretKey,omitempty"`
	// +optional
	RegionEndpoint *string `json:"regionEndpoint,omitempty" yaml:"regionEndpoint,omitempty"`
	// +optional
	Encrypt *bool `json:"encrypt,omitempty" yaml:"encrypt,omitempty"`
	// +optional
	KeyID *string `json:"keyID,omitempty" yaml:"keyID,omitempty"`
	// +optional
	Secure *bool `json:"secure,omitempty" yaml:"secure,omitempty"`
	// +optional
	SkipVerify *bool `json:"skipVerify,omitempty" yaml:"skipVerify,omitempty"`
	// +optional
	V4Auth *bool `json:"v4Auth,omitempty" yaml:"v4Auth,omitempty"`
	// +optional
	ChunkSize *int64 `json:"chunkSize,omitempty" yaml:"chunkSize,omitempty"`
	// +optional
	MultipartCopyChunkSize *int64 `json:"multipartCopyChunkSize,omitempty" yaml:"multipartCopyChunkSize,omitempty"`
	// +optional
	MultipartCopyMaxConcurrency *int64 `json:"multipartCopyMaxConcurrency,omitempty" yaml:"multipartCopyMaxConcurrency,omitempty"`
	// +optional
	MultipartCopyThresholdSize *int64 `json:"multipartCopyThresholdSize,omitempty" yaml:"multipartCopyThresholdSize,omitempty"`
	// +optional
	RootDirectory *string `json:"rootDirectory,omitempty" yaml:"rootDirectory,omitempty"`
	// +optional
	StorageClass *S3StorageClass `json:"storageClass,omitempty" yaml:"storageClass,omitempty"`
	// +optional
	UserAgent *string `json:"userAgent,omitempty" yaml:"userAgent,omitempty"`
	// +optional
	ObjectACL *string `json:"objectACL,omitempty" yaml:"objectACL,omitempty"`
}

func (*S3Storage) DeepCopy

func (in *S3Storage) DeepCopy() *S3Storage

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

func (*S3Storage) DeepCopyInto

func (in *S3Storage) DeepCopyInto(out *S3Storage)

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

type S3StorageClass

type S3StorageClass string

S3StorageClass describes applied to each registry file.

const (
	S3StorageClassStandard          S3StorageClass = "STANDARD"
	S3StorageClassReducedRedundancy S3StorageClass = "REDUCED_REDUNDANCY"
)

type Security

type Security struct {
	TokenPrivateKeyFile string `json:"tokenPrivateKeyFile" yaml:"tokenPrivateKeyFile"`
	TokenPublicKeyFile  string `json:"tokenPublicKeyFile" yaml:"tokenPublicKeyFile"`
	// +optional
	TokenExpiredHours *int64 `json:"tokenExpiredHours,omitempty" yaml:"tokenExpiredHours,omitempty"`
	HTTPSecret        string `json:"httpSecret" yaml:"httpSecret"`
	AdminUsername     string `json:"adminUsername" yaml:"adminUsername"`
	AdminPassword     string `json:"adminPassword" yaml:"adminPassword"`
	// +optional
	EnableAnonymous *bool `json:"enableAnonymous" yaml:"enableAnonymous"`
}

func (*Security) DeepCopy

func (in *Security) DeepCopy() *Security

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

func (*Security) DeepCopyInto

func (in *Security) DeepCopyInto(out *Security)

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

type Storage

type Storage struct {
	// +optional
	FileSystem *FileSystemStorage `json:"fileSystem,omitempty" yaml:"fileSystem,omitempty"`
	// +optional
	InMemory *InMemoryStorage `json:"inMemory,omitempty" yaml:"inMemory,omitempty"`
	// +optional
	S3 *S3Storage `json:"s3,omitempty" yaml:"s3,omitempty"`
	// +optional
	Etcd *EtcdStorage `json:"etcd,omitempty" yaml:"etcd,omitempty"`
	// +optional
	Delete *Delete `json:"delete,omitempty" yaml:"delete,omitempty"`
}

func (*Storage) DeepCopy

func (in *Storage) DeepCopy() *Storage

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

func (*Storage) DeepCopyInto

func (in *Storage) DeepCopyInto(out *Storage)

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