Documentation ¶
Index ¶
- func AssetBinPath(name string) string
- func CreateObjects(objects []runtime.Object) error
- func DeleteObjects(objects []runtime.Object) error
- func GetChangedObjects(changes []Change) ([]runtime.Object, error)
- func GetClient() client.Client
- func GetScheme() *runtime.Scheme
- func ProjectDir() string
- func RunSpecsInEnvironment(t *testing.T, desc string)
- type Change
- type Environment
- func (e *Environment) GetClient() client.Client
- func (e *Environment) GetConfig() *rest.Config
- func (e *Environment) GetScheme() *runtime.Scheme
- func (e *Environment) InstallCRDs(options envtest.CRDInstallOptions) ([]runtime.Object, error)
- func (e *Environment) NewManager() (*Manager, error)
- func (e *Environment) Start() (err error)
- func (e *Environment) Stop() error
- type EventData
- type EventWatcher
- type Manager
- type Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssetBinPath ¶ added in v0.3.0
func CreateObjects ¶ added in v0.3.0
func DeleteObjects ¶ added in v0.3.0
func GetChangedObjects ¶ added in v0.3.0
func ProjectDir ¶ added in v0.3.0
func ProjectDir() string
func RunSpecsInEnvironment ¶ added in v0.3.0
Types ¶
type Change ¶ added in v0.3.0
type Change struct { schema.GroupVersionKind types.NamespacedName Type string }
func GetChanges ¶ added in v0.3.0
func GetChanges(c interface{}) []Change
type Environment ¶ added in v0.3.0
type Environment struct { ControlPlane *envtest.ControlPlane CRDInstallOptions envtest.CRDInstallOptions // contains filtered or unexported fields }
var Env *Environment
Env is a global environment for testing. nolint: gochecknoglobals
func (*Environment) GetClient ¶ added in v0.3.0
func (e *Environment) GetClient() client.Client
func (*Environment) GetConfig ¶ added in v0.3.0
func (e *Environment) GetConfig() *rest.Config
func (*Environment) GetScheme ¶ added in v0.3.0
func (e *Environment) GetScheme() *runtime.Scheme
func (*Environment) InstallCRDs ¶ added in v1.0.0
func (e *Environment) InstallCRDs(options envtest.CRDInstallOptions) ([]runtime.Object, error)
func (*Environment) NewManager ¶ added in v0.3.0
func (e *Environment) NewManager() (*Manager, error)
func (*Environment) Start ¶ added in v0.3.0
func (e *Environment) Start() (err error)
func (*Environment) Stop ¶ added in v0.3.0
func (e *Environment) Stop() error
type EventWatcher ¶ added in v0.3.6
type EventWatcher struct {
// contains filtered or unexported fields
}
func NewEventWatcher ¶ added in v0.3.6
func NewEventWatcher() *EventWatcher
func (*EventWatcher) Shutdown ¶ added in v0.3.6
func (e *EventWatcher) Shutdown()
func (*EventWatcher) WaitForEventTimeout ¶ added in v0.3.6
func (e *EventWatcher) WaitForEventTimeout(expected interface{}, timeout time.Duration) bool
func (*EventWatcher) WatchEvent ¶ added in v0.3.6
func (e *EventWatcher) WatchEvent(event *corev1.Event)
type Manager ¶ added in v0.3.0
type Manager struct { manager.Manager EventBroadcaster record.EventBroadcaster // contains filtered or unexported fields }
func NewManager ¶ added in v0.3.0
func (*Manager) Initialize ¶ added in v0.3.0
func (*Manager) WaitForEvent ¶ added in v0.3.6
func (*Manager) WaitForSync ¶ added in v0.3.0
func (m *Manager) WaitForSync()
Click to show internal directories.
Click to hide internal directories.