Documentation
¶
Index ¶
- type LoopContext
- type LoopContextMock
- func (this *LoopContextMock) Finalize() (bool, time.Duration)
- func (this *LoopContextMock) GetAppName() c.Name
- func (this *LoopContextMock) GetAppNamespace() c.Namespace
- func (this *LoopContextMock) GetAttempts() int
- func (this *LoopContextMock) GetClients() *client.Clients
- func (this *LoopContextMock) GetEnvCache() env.EnvCache
- func (this *LoopContextMock) GetLog() *zap.Logger
- func (this *LoopContextMock) GetReconcileSequence() int64
- func (this *LoopContextMock) GetResourceCache() resources.ResourceCache
- func (this *LoopContextMock) GetSupportedFeatures() *c.SupportedFeatures
- func (this *LoopContextMock) GetTestingSupport() *c.TestSupport
- func (this *LoopContextMock) SetAttempts(attempts int)
- func (this *LoopContextMock) SetRequeueDelaySec(delay uint)
- func (this *LoopContextMock) SetRequeueDelaySoon()
- func (this *LoopContextMock) SetRequeueNow()
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) Finalize() (bool, time.Duration) GetClients() *client.Clients GetResourceCache() resources.ResourceCache GetEnvCache() env.EnvCache SetAttempts(attempts int) GetAttempts() int GetTestingSupport() *c.TestSupport GetSupportedFeatures() *c.SupportedFeatures GetReconcileSequence() int64 }
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) Finalize ¶ added in v1.1.3
func (this *LoopContextMock) Finalize() (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) GetReconcileSequence ¶ added in v1.1.3
func (this *LoopContextMock) GetReconcileSequence() int64
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()
Click to show internal directories.
Click to hide internal directories.