kubernetes

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace       string = "namespace"         // Namespace specifies the kubernetes namespace
	ActorSystemName        = "actor_system_name" // ActorSystemName specifies the actor system name
	ApplicationName        = "app_name"          // ApplicationName specifies the application name. This often matches the actor system name
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

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

Discovery represents the kubernetes discovery

func New

func New(logger log.Logger) *Discovery

New returns an instance of the kubernetes discovery provider

func (*Discovery) EarliestNode

func (k *Discovery) EarliestNode(ctx context.Context) (*discovery.Node, error)

EarliestNode returns the earliest node. This is based upon the node timestamp

func (*Discovery) ID

func (k *Discovery) ID() string

ID returns the discovery id

func (*Discovery) Nodes

func (k *Discovery) Nodes(ctx context.Context) ([]*discovery.Node, error)

Nodes returns the list of up and running Nodes at a given time

func (*Discovery) Start

func (k *Discovery) Start(ctx context.Context, meta discovery.Meta) error

Start the discovery engine

func (*Discovery) Stop

func (k *Discovery) Stop() error

Stop shutdown the discovery engine

func (*Discovery) Watch

func (k *Discovery) Watch(ctx context.Context) (<-chan discovery.Event, error)

Watch returns event based upon node lifecycle

Jump to

Keyboard shortcuts

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