util

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Testuser = "testuser"
)

Variables

View Source
var Testpw string

Functions

func CreateComponentDescriptor

func CreateComponentDescriptor(name, version, baseURL string) *cdv2.ComponentDescriptor

func CreateContext added in v0.33.0

func CreateContext(ctx context.Context, k8sClient client.Client, externalRegistryBaseURL, contextNamespace, contextName string) error

Types

type Config

type Config struct {
	Kubeconfig              string
	LandscaperNamespace     string
	TestNamespace           string
	MaxRetries              int
	SleepTime               time.Duration
	RegistryBaseURL         string
	ExternalRegistryBaseURL string
}

type DockerConfigEntry added in v0.33.0

type DockerConfigEntry struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email,omitempty"`
	Auth     string `json:"auth"`
}

type DockerConfigJson added in v0.33.0

type DockerConfigJson struct {
	Auths map[string]DockerConfigEntry `json:"auths"`
}

type DummyTestingT

type DummyTestingT struct{}

DummyTestingT is a utility struct for using assertions from "github.com/stretchr/testify/assert" in the integration tests (outside of unit tests)

func (DummyTestingT) Errorf

func (t DummyTestingT) Errorf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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