Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=registry.config.tkestack.io
Index ¶
- Constants
- Variables
- func Convert_config_FileSystemStorage_To_v1_FileSystemStorage(in *config.FileSystemStorage, out *FileSystemStorage, s conversion.Scope) error
- func Convert_config_InMemoryStorage_To_v1_InMemoryStorage(in *config.InMemoryStorage, out *InMemoryStorage, s conversion.Scope) error
- func Convert_config_Redis_To_v1_Redis(in *config.Redis, out *Redis, s conversion.Scope) error
- func Convert_config_RegistryConfiguration_To_v1_RegistryConfiguration(in *config.RegistryConfiguration, out *RegistryConfiguration, ...) error
- func Convert_config_S3Storage_To_v1_S3Storage(in *config.S3Storage, out *S3Storage, s conversion.Scope) error
- func Convert_config_Security_To_v1_Security(in *config.Security, out *Security, s conversion.Scope) error
- func Convert_config_Storage_To_v1_Storage(in *config.Storage, out *Storage, s conversion.Scope) error
- func Convert_v1_FileSystemStorage_To_config_FileSystemStorage(in *FileSystemStorage, out *config.FileSystemStorage, s conversion.Scope) error
- func Convert_v1_InMemoryStorage_To_config_InMemoryStorage(in *InMemoryStorage, out *config.InMemoryStorage, s conversion.Scope) error
- func Convert_v1_Redis_To_config_Redis(in *Redis, out *config.Redis, s conversion.Scope) error
- func Convert_v1_RegistryConfiguration_To_config_RegistryConfiguration(in *RegistryConfiguration, out *config.RegistryConfiguration, ...) error
- func Convert_v1_S3Storage_To_config_S3Storage(in *S3Storage, out *config.S3Storage, s conversion.Scope) error
- func Convert_v1_Security_To_config_Security(in *Security, out *config.Security, s conversion.Scope) error
- func Convert_v1_Storage_To_config_Storage(in *Storage, out *config.Storage, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_RegistryConfiguration(obj *RegistryConfiguration)
- func SetObjectDefaults_RegistryConfiguration(in *RegistryConfiguration)
- type FileSystemStorage
- type InMemoryStorage
- type Redis
- type RegistryConfiguration
- type S3Storage
- type S3StorageClass
- type Security
- type Storage
Constants ¶
const GroupName = "registry.config.tkestack.io"
GroupName is the group name use in this package.
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
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 ¶
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_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 ¶
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 ¶
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 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 FileSystemStorage ¶
type FileSystemStorage struct { RootDirectory string `json:"rootDirectory"` // +optional MaxThreads *int64 `json:"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"` // Password string to use when making a connection. Password string `json:"password"` // DB specifies the database to connect to on the redis instance. DB int32 `json:"db"` // +optional ReadTimeoutMillisecond *int64 `json:"readTimeoutMillisecond,omitempty"` // +optional DialTimeoutMillisecond *int64 `json:"dialTimeoutMillisecond,omitempty"` // +optional WriteTimeoutMillisecond *int64 `json:"writeTimeoutMillisecond,omitempty"` // PoolMaxIdle sets the maximum number of idle connections. // +optional PoolMaxIdle *int32 `json:"poolMaxIdle,omitempty"` // PoolMaxActive sets the maximum number of connections that should be opened before // blocking a connection request. // +optional PoolMaxActive *int32 `json:"poolMaxActive,omitempty"` // PoolIdleTimeoutSeconds sets the amount time to wait before closing inactive connections. // +optional PoolIdleTimeoutSeconds *int64 `json:"poolIdleTimeoutSeconds,omitempty"` }
Redis configures the redis pool available to the registry cache.
func (*Redis) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Redis.
func (*Redis) DeepCopyInto ¶
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"` Security Security `json:"security"` // +optional Redis *Redis `json:"redis,omitempty"` DefaultTenant string `json:"defaultTenant"` // +optional DomainSuffix string `json:"domainSuffix,omitempty"` }
RegistryConfiguration contains the configuration for the Registry
func (*RegistryConfiguration) DeepCopy ¶
func (in *RegistryConfiguration) DeepCopy() *RegistryConfiguration
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"` Region string `json:"region"` // +optional AccessKey *string `json:"accessKey,omitempty"` // +optional SecretKey *string `json:"secretKey,omitempty"` // +optional RegionEndpoint *string `json:"regionEndpoint,omitempty"` // +optional Encrypt *bool `json:"encrypt,omitempty"` // +optional KeyID *string `json:"keyID,omitempty"` // +optional Secure *bool `json:"secure,omitempty"` // +optional SkipVerify *bool `json:"skipVerify,omitempty"` // +optional V4Auth *bool `json:"v4Auth,omitempty"` // +optional ChunkSize *int64 `json:"chunkSize,omitempty"` // +optional MultipartCopyChunkSize *int64 `json:"multipartCopyChunkSize,omitempty"` // +optional MultipartCopyMaxConcurrency *int64 `json:"multipartCopyMaxConcurrency,omitempty"` // +optional MultipartCopyThresholdSize *int64 `json:"multipartCopyThresholdSize,omitempty"` // +optional RootDirectory *string `json:"rootDirectory,omitempty"` // +optional StorageClass *S3StorageClass `json:"storageClass,omitempty"` // +optional UserAgent *string `json:"userAgent,omitempty"` // +optional ObjectACL *string `json:"objectACL,omitempty"` }
func (*S3Storage) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Storage.
func (*S3Storage) DeepCopyInto ¶
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"` TokenPublicKeyFile string `json:"tokenPublicKeyFile"` // +optional TokenExpiredHours *int64 `json:"tokenExpiredHours,omitempty"` HTTPSecret string `json:"httpSecret"` AdminUsername string `json:"adminUsername"` AdminPassword string `json:"adminPassword"` // +optional EnableAnonymous *bool `json:"enableAnonymous"` }
func (*Security) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Security.
func (*Security) DeepCopyInto ¶
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"` // +optional InMemory *InMemoryStorage `json:"inMemory,omitempty"` // +optional S3 *S3Storage `json:"s3,omitempty"` }
func (*Storage) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.
func (*Storage) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.