namespaces3

package
v1.6.112 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleanup

type Cleanup func()

func Create

func Create(t *testing.T, name string, opts ...Option) Cleanup

Create a namespace of the given name.

func CreateN

func CreateN(t *testing.T, names []string, opts ...Option) Cleanup

Create namespaces of the given names.

func Delete

func Delete(t *testing.T, name string, opts ...Option) Cleanup

Delete the namespace of the given name.

type Names

type Names struct {
	// contains filtered or unexported fields
}

type Namespace

type Namespace struct {
	Name        string
	Description string
}

func (*Namespace) Hash

func (ns *Namespace) Hash() string

func (*Namespace) String

func (ns *Namespace) String() string

type Option

type Option func(*Names)

func DisableCleanup

func DisableCleanup() Option

DisableCleanup will disable the automatic removal of any namespaces created using the Create() Option.

func Timeout

func Timeout(timeout time.Duration) Option

func Verbose

func Verbose(on bool) Option

Verbose will enable verbose logging.

Jump to

Keyboard shortcuts

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