services

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// ListServices returns all daemons and their respective state.
	ListServices(ctx rbfs.RbfsContext) ([]Service, error)
}

Client provides access to the switch metrics.

func NewClient

func NewClient(c *http.Client) Client

NewClient creates a new client to query running RBFS services and daemons.

type Service

type Service struct {
	// ServiceName holds the daemon name.
	ServiceName string `json:"service_name"`
	//AdministrativeState holds the administrative daemon state.
	AdministrativeState string `json:"administrative_state"`
	// OperationalState holds the operational daemon state.
	OperationalState string `json:"operational_state"`
}

Service describes a running brick daemon or services.

Jump to

Keyboard shortcuts

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