test

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: would be nice to get this from "github.com/ninech/apis/apps/v1alpha1"
	AppSizeNotSet apps.ApplicationSize = ""
	AppMicro      apps.ApplicationSize = "micro"
	AppMini       apps.ApplicationSize = "mini"
	AppStandard1  apps.ApplicationSize = "standard-1"

	StatusSuperseded apps.ReleaseProcessStatus = "superseded"
	StatusAvailable  apps.ReleaseProcessStatus = "available"
)

Functions

func CountLines

func CountLines(s string) int

func CreateTestKubeconfig

func CreateTestKubeconfig(client *api.Client, organization string) (string, error)

CreateTestKubeconfig creates a test kubeconfig which contains a nctl extension config with the given organization

func MustParseTime

func MustParseTime(format string, value string) time.Time

func Projects

func Projects(organization string, names ...string) []client.Object

Projects returns projects with the given organization namespace set

func SetupClient

func SetupClient(initObjs ...client.Object) (*api.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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