domain

package
v0.0.0-...-d7e1125 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PollHost

func PollHost(
	ctx context.Context,
	host *api.Host,
	isDoneFn func(ctx context.Context, host *api.Host) bool,
) error

PollHost polls host

Types

type HostStatefulSetPoller

type HostStatefulSetPoller struct {
	*StatefulSetPoller
	interfaces.IKubeSTS
	// contains filtered or unexported fields
}

HostStatefulSetPoller enriches StatefulSet poller with host capabilities

func NewHostStatefulSetPoller

func NewHostStatefulSetPoller(poller *StatefulSetPoller, kube interfaces.IKube, labeler readyMarkDeleter) *HostStatefulSetPoller

NewHostStatefulSetPoller creates new HostStatefulSetPoller from StatefulSet poller

func (*HostStatefulSetPoller) WaitHostStatefulSetReady

func (p *HostStatefulSetPoller) WaitHostStatefulSetReady(ctx context.Context, host *api.Host) error

WaitHostStatefulSetReady polls host's StatefulSet until it is ready

type StatefulSetPoller

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

func NewStatefulSetPoller

func NewStatefulSetPoller(kube interfaces.IKube) *StatefulSetPoller

func (*StatefulSetPoller) PollHostStatefulSet

func (p *StatefulSetPoller) PollHostStatefulSet(
	ctx context.Context,
	host *api.Host,
	isDoneFn func(context.Context, *apps.StatefulSet) bool,
	backFn func(context.Context),
) error

pollHostStatefulSet polls host's StatefulSet

Jump to

Keyboard shortcuts

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