organization

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const (
	DeleteAnnotation = "e2e-test-cleanup"
)

Variables

This section is empty.

Functions

func SafeToDelete

func SafeToDelete(orgCR orgv1alpha1.Organization) bool

SafeToDelete checks if the Org CR contains an annotation specific to E2E testing

Types

type Org

type Org struct {
	Name string
	// contains filtered or unexported fields
}

Org contains details about an Organization

func New

func New(name string) *Org

New returns a new Org with the provided name

func NewRandomOrg

func NewRandomOrg() *Org

NewRandomOrg returns an Org with a randomly generated name

func (*Org) Build

func (o *Org) Build() (*orgv1alpha1.Organization, error)

Build generates the Organization CR for applying to the cluster

func (*Org) GetNamespace

func (o *Org) GetNamespace() string

GetNamespace returns the associated namespace for the Organization

Jump to

Keyboard shortcuts

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