clusterchecker

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const BidirectionCheckName = "BidirectionalConnection"
View Source
const HealthzCheckName = "HealthProbe"
View Source
const OverlayNetIDCheckName = "OverlayNetIDMatch"
View Source
const SubnetCheckName = "SubnetNonCross"

Variables

This section is empty.

Functions

This section is empty.

Types

type Bidirection

type Bidirection struct {
	LocalUUID types.UID
}

func (*Bidirection) Check

func (b *Bidirection) Check(ctx context.Context, clusterManager ctrl.Manager, opts ...Option) CheckResult

type Check

type Check interface {
	Check(ctx context.Context, clusterManager controllerruntime.Manager, opts ...Option) CheckResult
}

type CheckResult

type CheckResult interface {
	Succeed() bool
	Error() error
	TimeStamp() time.Time
}

func NewResult

func NewResult(err error) CheckResult

type Checker

type Checker interface {
	Register(name string, check Check) error
	Unregister(name string) error
	CheckAll(ctx context.Context, clusterManager controllerruntime.Manager, opts ...Option) (map[string]CheckResult, error)
	Check(ctx context.Context, name string, clusterManager controllerruntime.Manager, opts ...Option) (CheckResult, error)
}

func NewChecker

func NewChecker() Checker

type ClusterName

type ClusterName string

func (ClusterName) ApplyToOptions

func (c ClusterName) ApplyToOptions(o *Options)

type Healthz

type Healthz struct{}

func (*Healthz) Check

func (h *Healthz) Check(ctx context.Context, clusterManager ctrl.Manager, opts ...Option) CheckResult

type Option

type Option interface {
	ApplyToOptions(o *Options)
}

type Options

type Options struct {
	ClusterName string
}

func ToOptions

func ToOptions(opts ...Option) *Options

type OverlayNetID

type OverlayNetID struct {
	LocalClient client.Client
}

func (*OverlayNetID) Check

func (o *OverlayNetID) Check(ctx context.Context, clusterManager ctrl.Manager, opts ...Option) CheckResult

type RawOptions

type RawOptions Options

func (RawOptions) ApplyToOptions

func (r RawOptions) ApplyToOptions(o *Options)

type Subnet

type Subnet struct {
	LocalClient client.Client
}

func (*Subnet) Check

func (o *Subnet) Check(ctx context.Context, clusterManager ctrl.Manager, opts ...Option) CheckResult

Jump to

Keyboard shortcuts

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