unit

package
v0.3.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandStringBytes

func RandStringBytes(n int) string

Types

type Fixture

type Fixture struct {
	T                  *testing.T
	KubeObjects        []runtime.Object
	CertManagerObjects []runtime.Object
	// contains filtered or unexported fields
}

func (*Fixture) CertManagerClient

func (s *Fixture) CertManagerClient() *cmfake.Clientset

func (*Fixture) CertManagerInformerFactory

func (s *Fixture) CertManagerInformerFactory() informers.SharedInformerFactory

func (*Fixture) EventRecorder

func (s *Fixture) EventRecorder() *record.FakeRecorder

func (*Fixture) Events

func (s *Fixture) Events() []string

func (*Fixture) KubeClient

func (s *Fixture) KubeClient() *kubefake.Clientset

func (*Fixture) KubeInformerFactory

func (s *Fixture) KubeInformerFactory() kubeinformers.SharedInformerFactory

func (*Fixture) Start

func (s *Fixture) Start()

func (*Fixture) Stop

func (s *Fixture) Stop()

Stop will signal the informers to stop watching changes This method is *not* safe to be called concurrently

func (*Fixture) Sync

func (s *Fixture) Sync()

func (*Fixture) WaitForResync

func (s *Fixture) WaitForResync()

WaitForResync will wait for the informer factory informer duration by calling time.Sleep. This will ensure that all informer Stores are up to date with current information from the fake clients.

Jump to

Keyboard shortcuts

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