containerregistry

package
v1.0.0-rc3 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: 10 Imported by: 0

Documentation

Overview

Package containerregistry provides basic utilities around configuring the fake container registry server component for integration testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Cluster to be used in a multicluster environment
	Cluster cluster.Cluster
}

Config defines the options for creating an fake container registry component.

type Instance

type Instance interface {
	// Address is the address of the service provided by the
	// fake container registry server.
	Address() string
}

Instance represents a deployed fake container registry app instance.

func New

func New(ctx resource.Context, c Config) (i Instance, err error)

New returns a new instance of container registry.

func NewOrFail

func NewOrFail(t test.Failer, ctx resource.Context, c Config) Instance

NewOrFail returns a new container registry instance or fails test.

Jump to

Keyboard shortcuts

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