namespace

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance interface {
	Name() string
}

Instance represents an allocated namespace that can be used to create config, or deploy components in.

func Claim

func Claim(ctx resource.Context, name string) (i Instance, err error)

Claim an existing namespace, or create a new one if doesn't exist.

func ClaimOrFail

func ClaimOrFail(t *testing.T, ctx resource.Context, name string) Instance

ClaimOrFail calls Claim and fails test if it returns error

func New

func New(ctx resource.Context, prefix string, inject bool) (i Instance, err error)

New creates a new Namespace.

func NewOrFail

func NewOrFail(t *testing.T, ctx resource.Context, prefix string, inject bool) Instance

NewOrFail calls New and fails test if it returns error

Jump to

Keyboard shortcuts

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