readiness

package
v0.0.0-...-d44135d Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package readiness is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct {
	// Client is a controller-runtime client capable of querying k8s.
	Client client.Client
	// contains filtered or unexported fields
}

Impl is a concrete instance of the readiness engine.

func (*Impl) IsReady

func (impl *Impl) IsReady() (bool, error)

IsReady determines whether the cluster is ready for PagerDuty configuration. Ready is true if:

  • a previous check has already succeeded (cached);
  • all ClusterOperators have Progressing=false; or
  • the cluster is older than maxClusterAgeMinutes (fallback)

func (*Impl) Result

func (impl *Impl) Result() reconcile.Result

type Interface

type Interface interface {
	IsReady() (bool, error)
	Result() reconcile.Result
	// contains filtered or unexported methods
}

Interface is the interface for the readiness engine.

type MockInterface

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

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterface) IsReady

func (m *MockInterface) IsReady() (bool, error)

IsReady mocks base method.

func (*MockInterface) Result

func (m *MockInterface) Result() reconcile.Result

Result mocks base method.

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) IsReady

func (mr *MockInterfaceMockRecorder) IsReady() *gomock.Call

IsReady indicates an expected call of IsReady.

func (*MockInterfaceMockRecorder) Result

func (mr *MockInterfaceMockRecorder) Result() *gomock.Call

Result indicates an expected call of Result.

Jump to

Keyboard shortcuts

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