gnmic

package
v0.0.0-...-68ccc1b Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gnmic

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

func New

func New(logger *zap.Logger, c *config.Config) (Gnmic, error)

func (*Gnmic) RestartAll

func (o *Gnmic) RestartAll(ctx context.Context, reason string) error

func (*Gnmic) RestartRunner

func (o *Gnmic) RestartRunner(ctx context.Context, name string, reason string) error

func (*Gnmic) Start

func (o *Gnmic) Start(ctx context.Context, cancelFunc context.CancelFunc) error

func (*Gnmic) Stop

func (o *Gnmic) Stop(ctx context.Context)

type ReturnPolicyData

type ReturnPolicyData struct {
	State runner.State `yaml:"status"`
	config.Policy
}

type ReturnValue

type ReturnValue struct {
	Message string `json:"message"`
}

type RunnerInfo

type RunnerInfo struct {
	Policy   config.Policy
	Instance runner.Runner
}

Jump to

Keyboard shortcuts

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