Documentation ¶
Index ¶
- Variables
- func CopyRegistries(ctx context.Context, logger *zap.SugaredLogger, sourceConfig *rest.Config, ...) error
- func IsLocalRegistry(ctx context.Context, client *kubernetes.Clientset) (bool, error)
- func PredictRegistries(ctx context.Context, client *kubernetes.Clientset) complete.Predictor
- func PushLocalRegistry(ctx context.Context, imageName string, image regv1.Image, config *rest.Config, ...) error
- type Registry
- func (r *Registry) Create(ctx context.Context, config *rest.Config, logger *zap.SugaredLogger) error
- func (r *Registry) CreateLocal(ctx context.Context, client *kubernetes.Clientset, logger *zap.SugaredLogger) error
- func (r *Registry) Delete(ctx context.Context, config *rest.Config, logger *zap.SugaredLogger) error
- func (r *Registry) DeleteLocal(ctx context.Context, client *kubernetes.Clientset, logger *zap.SugaredLogger) error
- func (r *Registry) Domain() string
- func (r *Registry) Exists(ctx context.Context, client *kubernetes.Clientset) bool
- func (r *Registry) FromSecret(sec corev1.Secret) *Registry
- func (r *Registry) LocalDomain() string
- func (r *Registry) SecretSpec() corev1.Secret
- func (r *Registry) SetDefault(d bool)
- func (r *Registry) SetLocal(l bool)
- func (r *Registry) SetRegistyDefault(ctx context.Context, config *rest.Config) error
- func (r *Registry) SetRegistyPullSecret(ctx context.Context, config *rest.Config) error
- func (r *Registry) ToSecret() *corev1.Secret
- func (r *Registry) Validate(ctx context.Context, client *kubernetes.Clientset, logger *zap.SugaredLogger) error
- func (r *Registry) WithContext(c string)
- type RegistryAuth
- type RegistryConfig
- type RegistryReconciler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegistryServerLabel = "overlock-registry-server-url" DefaultRemoteDomain = "xpkg.upbound.io" LocalServiceName = "registry" LocalRegistryName = "registry.local" AuthConfigLabel = "overlock-registry-auth-config" )
Functions ¶
func CopyRegistries ¶
func CopyRegistries(ctx context.Context, logger *zap.SugaredLogger, sourceConfig *rest.Config, destinationConfig *rest.Config) error
Copy registries from source to destination contexts
func IsLocalRegistry ¶
func PredictRegistries ¶
Types ¶
type Registry ¶
type Registry struct { Config RegistryConfig Default bool Local bool Context string Server string Name string corev1.Secret }
func Registries ¶
Return regestires from requested context
func (*Registry) Create ¶
func (r *Registry) Create(ctx context.Context, config *rest.Config, logger *zap.SugaredLogger) error
Creates registry in requested context and assign it to engine
func (*Registry) CreateLocal ¶
func (r *Registry) CreateLocal(ctx context.Context, client *kubernetes.Clientset, logger *zap.SugaredLogger) error
Create in cluster registry
func (*Registry) Delete ¶
func (r *Registry) Delete(ctx context.Context, config *rest.Config, logger *zap.SugaredLogger) error
Delete registry
func (*Registry) DeleteLocal ¶
func (r *Registry) DeleteLocal(ctx context.Context, client *kubernetes.Clientset, logger *zap.SugaredLogger) error
Delete in cluster registry
func (*Registry) LocalDomain ¶
Local domain composed with parameters
func (*Registry) SecretSpec ¶
Creates specs of Secret base on Registry data
func (*Registry) SetRegistyDefault ¶
func (*Registry) SetRegistyPullSecret ¶
func (*Registry) Validate ¶
func (r *Registry) Validate(ctx context.Context, client *kubernetes.Clientset, logger *zap.SugaredLogger) error
Validate data in Registry object
func (*Registry) WithContext ¶
Kubernetes context where registry will be created
type RegistryAuth ¶
type RegistryConfig ¶
type RegistryConfig struct {
Auths map[string]RegistryAuth `json:"auths"`
}
type RegistryReconciler ¶
type RegistryReconciler struct { client.Client context.CancelFunc }
Click to show internal directories.
Click to hide internal directories.