imagesystem

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuilderObjects

func BuilderObjects(name, namespace, forNamespace, buildKitImage, pub, privKey, depotToken, depotProjectId, builderUID, forwardAddress string, cfg *apiv1.Config) []client.Object

func GetBuildPushRepoForNamespace

func GetBuildPushRepoForNamespace(ctx context.Context, c client.Reader, namespace string) (name.Repository, error)

func GetBuilderDeploymentName

func GetBuilderDeploymentName(ctx context.Context, c client.Reader, builderName, builderNamespace string) (string, error)

func GetBuilderKeys

func GetBuilderKeys(ctx context.Context, c client.Reader, namespace, name string) (string, string, error)

func GetClusterInternalRegistryAddress

func GetClusterInternalRegistryAddress(ctx context.Context, c client.Reader) (string, error)

func GetClusterInternalRegistryDNSName

func GetClusterInternalRegistryDNSName(ctx context.Context, c client.Reader) (string, error)

func GetInternalRepoForNamespace

func GetInternalRepoForNamespace(ctx context.Context, c client.Reader, namespace string) (name.Repository, bool, error)

func GetInternalRepoForNamespaceAndID

func GetInternalRepoForNamespaceAndID(ctx context.Context, c client.Reader, namespace, imageID string) (name.Reference, error)

func GetRegistryObjects

func GetRegistryObjects(ctx context.Context, c client.Reader) (result []client.Object, _ error)

func GetRuntimePullableInternalRepoForNamespace

func GetRuntimePullableInternalRepoForNamespace(ctx context.Context, c client.Reader, namespace string) (name.Repository, error)

func GetRuntimePullableInternalRepoForNamespaceAndID

func GetRuntimePullableInternalRepoForNamespaceAndID(ctx context.Context, c client.Reader, namespace, imageID string) (name.Reference, error)

func IsClusterInternalRegistryAddressReference

func IsClusterInternalRegistryAddressReference(url string) bool

func IsNotInternalRepo

func IsNotInternalRepo(ctx context.Context, c client.Reader, namespace, image string) error

func NewAPIBasedTransport

func NewAPIBasedTransport(client kclient.Client, cfg *rest.Config) (http.RoundTripper, error)

func NormalizeServerAddress

func NormalizeServerAddress(address string) string

func ParseAndEnsureNotInternalRepo

func ParseAndEnsureNotInternalRepo(ctx context.Context, c client.Reader, namespace, image string) (name.Reference, error)

func URLForPortAndPod

func URLForPortAndPod(restClient rest.Interface, namespace, name string, port int32) *url.URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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