config

package

Documentation

Overview

Package config is the internal version of the API.

Index

Constants

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

GroupName is the group name used in this package

Variables

View Source
var (
	// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func RegistryConfigurationPathRefs

func RegistryConfigurationPathRefs(rc *RegistryConfiguration) []*string

RegistryConfigurationPathRefs returns pointers to all of the RegistryConfiguration fields that contain filepaths. You might use this, for example, to resolve all relative paths against some common root before passing the configuration to the application. This method must be kept up to date as new fields are added.

Types

type Delete added in v1.4.0

type Delete struct {
	Enabled bool
}

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
	CertFile  string
	KeyFile   string
	EndPoints []string
	// +optional
	Prefix string
}

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
	// +optional
	MaxThreads *int64
}

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
	// Password string to use when making a connection.
	Password string
	// DB specifies the database to connect to on the redis instance.
	DB int32
	// +optional
	ReadTimeoutMillisecond *int64
	// +optional
	DialTimeoutMillisecond *int64
	// +optional
	WriteTimeoutMillisecond *int64
	// PoolMaxIdle sets the maximum number of idle connections.
	// +optional
	PoolMaxIdle *int32
	// PoolMaxActive sets the maximum number of connections that should be opened before
	// blocking a connection request.
	// +optional
	PoolMaxActive *int32
	// PoolIdleTimeoutSeconds sets the amount time to wait before closing inactive connections.
	// +optional
	PoolIdleTimeoutSeconds *int64
}

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
	Security Security
	// +optional
	Redis         *Redis
	DefaultTenant string
	// +optional
	DomainSuffix  string
	HarborEnabled bool
	HarborCAFile  string
}

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
	Region string

	// +optional
	AccessKey *string
	// +optional
	SecretKey *string
	// +optional
	RegionEndpoint *string
	// +optional
	Encrypt *bool
	// +optional
	KeyID *string
	// +optional
	Secure *bool
	// +optional
	SkipVerify *bool
	// +optional
	V4Auth *bool
	// +optional
	ChunkSize *int64
	// +optional
	MultipartCopyChunkSize *int64
	// +optional
	MultipartCopyMaxConcurrency *int64
	// +optional
	MultipartCopyThresholdSize *int64
	// +optional
	RootDirectory *string
	// +optional
	StorageClass *S3StorageClass
	// +optional
	UserAgent *string
	// +optional
	ObjectACL *string
}

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
	TokenPublicKeyFile  string
	// +optional
	TokenExpiredHours *int64
	HTTPSecret        string
	AdminUsername     string
	AdminPassword     string
	// +optional
	EnableAnonymous *bool
}

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
	// +optional
	InMemory *InMemoryStorage
	// +optional
	S3 *S3Storage
	// +optional
	Etcd *EtcdStorage
	// +optional
	Delete *Delete
}

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.

Directories

Path Synopsis
Package v1 is the v1 version of the API.
Package v1 is the v1 version of the API.

Jump to

Keyboard shortcuts

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