Documentation ¶
Index ¶
- Variables
- func Logf(format string, args ...interface{})
- func RandomAlphabaticalString(length int) string
- func RandomStringWithCharset(length int, charset string) string
- type Environment
- func (f Environment) CreateNamespace(baseName string, labels map[string]string) (*corev1.Namespace, error)
- func (f *Environment) GetManager() ctrl.Manager
- func (f Environment) GetNamespace() string
- func (f Environment) GetRootPath() string
- func (f *Environment) InitOnRunningSuite()
- func (f *Environment) Start()
- func (f *Environment) TeardownCluster()
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var RunID = uuid.NewUUID()
Functions ¶
func RandomStringWithCharset ¶
Types ¶
type Environment ¶
type Environment struct { BaseName string UniqueName string Client client.Client ClientSet clientset.Interface Namespace *corev1.Namespace // contains filtered or unexported fields }
func NewDefaultEnvironment ¶
func NewDefaultEnvironment(baseName string, options ...Options) *Environment
func NewEnvironment ¶
func NewEnvironment(baseName string, options Options) *Environment
func (Environment) CreateNamespace ¶
func (*Environment) GetManager ¶
func (f *Environment) GetManager() ctrl.Manager
func (Environment) GetNamespace ¶
func (f Environment) GetNamespace() string
func (Environment) GetRootPath ¶
func (f Environment) GetRootPath() string
func (*Environment) InitOnRunningSuite ¶
func (f *Environment) InitOnRunningSuite()
InitOnRunningSuite sets up ginkgo's BeforeEach & AfterEach. It must be called within running ginkgo suite (like Describe, Context etc)
func (*Environment) Start ¶
func (f *Environment) Start()
func (*Environment) TeardownCluster ¶
func (f *Environment) TeardownCluster()
Click to show internal directories.
Click to hide internal directories.