compat

package
v0.0.0-...-324260f Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReportNodes

func ReportNodes(scheduler *gocron.Scheduler)

func ReportStatusForNode

func ReportStatusForNode(node Node)

Types

type DockerNode

type DockerNode struct {
	Node
	Name    string
	ID      string
	Client  client.APIClient
	Context context.Context
}

func GetDockerContainers

func GetDockerContainers() []DockerNode

func (DockerNode) GetName

func (node DockerNode) GetName() string

GetName this implicitly implements the Node interface for DockerNode no need for an "implements" keyword

func (DockerNode) ShouldReportStatus

func (node DockerNode) ShouldReportStatus() bool

ShouldReportStatus this implicitly implements the Node interface for DockerNode

type Node

type Node interface {
	GetName() string
	ShouldReportStatus() bool
}

Jump to

Keyboard shortcuts

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