context

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoopContext

type LoopContext interface {
	GetLog() *zap.Logger
	GetAppName() c.Name
	GetAppNamespace() c.Namespace
	SetRequeueNow()
	SetRequeueDelaySoon()
	SetRequeueDelaySec(delay uint)
	GetAndResetRequeue() (bool, time.Duration)
	GetClients() *client.Clients
	GetResourceCache() resources.ResourceCache
	GetEnvCache() env.EnvCache
	SetAttempts(attempts int)
	GetAttempts() int
	GetTestingSupport() *c.TestSupport
	GetSupportedFeatures() *c.SupportedFeatures
}

func NewLoopContext

func NewLoopContext(appName c.Name, appNamespace c.Namespace, log *zap.Logger, clients *client.Clients, testing *c.TestSupport, features *c.SupportedFeatures) LoopContext

Create a new context when the operator is deployed, provide mostly static data

type LoopContextMock added in v1.1.0

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

func NewLoopContextMock added in v1.1.0

func NewLoopContextMock() *LoopContextMock

func (*LoopContextMock) GetAndResetRequeue added in v1.1.0

func (this *LoopContextMock) GetAndResetRequeue() (bool, time.Duration)

func (*LoopContextMock) GetAppName added in v1.1.0

func (this *LoopContextMock) GetAppName() c.Name

func (*LoopContextMock) GetAppNamespace added in v1.1.0

func (this *LoopContextMock) GetAppNamespace() c.Namespace

func (*LoopContextMock) GetAttempts added in v1.1.0

func (this *LoopContextMock) GetAttempts() int

func (*LoopContextMock) GetClients added in v1.1.0

func (this *LoopContextMock) GetClients() *client.Clients

func (*LoopContextMock) GetEnvCache added in v1.1.0

func (this *LoopContextMock) GetEnvCache() env.EnvCache

func (*LoopContextMock) GetLog added in v1.1.0

func (this *LoopContextMock) GetLog() *zap.Logger

func (*LoopContextMock) GetResourceCache added in v1.1.0

func (this *LoopContextMock) GetResourceCache() resources.ResourceCache

func (*LoopContextMock) GetSupportedFeatures added in v1.1.0

func (this *LoopContextMock) GetSupportedFeatures() *c.SupportedFeatures

func (*LoopContextMock) GetTestingSupport added in v1.1.0

func (this *LoopContextMock) GetTestingSupport() *c.TestSupport

func (*LoopContextMock) SetAttempts added in v1.1.0

func (this *LoopContextMock) SetAttempts(attempts int)

func (*LoopContextMock) SetRequeueDelaySec added in v1.1.0

func (this *LoopContextMock) SetRequeueDelaySec(delay uint)

func (*LoopContextMock) SetRequeueDelaySoon added in v1.1.0

func (this *LoopContextMock) SetRequeueDelaySoon()

func (*LoopContextMock) SetRequeueNow added in v1.1.0

func (this *LoopContextMock) SetRequeueNow()

Jump to

Keyboard shortcuts

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