registry

package
v0.0.0-...-e9741b0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCertificateToConfigmap

func AddCertificateToConfigmap(ctx context.Context, client runtimeclient.Client, r *RegistryConfig) error

func Deploy

func Deploy(ctx context.Context, client runtimeclient.Client, r *RegistryConfig) error

func RemoveCertificateFiles

func RemoveCertificateFiles(keyPath string) error

func RemoveCertificateFromConfigmap

func RemoveCertificateFromConfigmap(ctx context.Context, client runtimeclient.Client, r *RegistryConfig) error

Types

type RegistryConfig

type RegistryConfig struct {
	Namespace           *corev1.Namespace
	Name                string
	RegistryHost        string
	CertConfigmapName   string
	KeyPath             string
	CaPath              string
	RegistryProxyUrl    string
	RegistryProxyUser   string
	RegistryProxyPasswd string
	Port                int32
}

func NewRegistry

func NewRegistry(ns *corev1.Namespace, name, certConfigmapName, registryProxyUrl, registryProxyUser, registryProxyPasswd string) (*RegistryConfig, error)

Jump to

Keyboard shortcuts

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