health

package
v0.11.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthClient

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

Client structure

func NewHealthClient

func NewHealthClient(cloudFQDN string, authorizer auth.Authorizer) (*HealthClient, error)

NewClient method returns new client

func (*HealthClient) CheckHealth

func (c *HealthClient) CheckHealth(ctx context.Context, timeoutSeconds uint32) error

CheckHealth

func (*HealthClient) GetAgentInfo

func (c *HealthClient) GetAgentInfo(ctx context.Context) (*common.NodeInfo, error)

GetAgentInfo

type Service

type Service interface {
	CheckHealth(ctx context.Context, timeoutSeconds uint32) error
	GetAgentInfo(context.Context) (*common.NodeInfo, error)
}

Service interfacetype Service interface {

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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