status

package
v0.0.0-...-d0f0867 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package status is a generated protocol buffer package.

Package status provides data model for status information of the agent.

It is generated from these files:

status.proto

It has these top-level messages:

AgentStatus
PluginStatus

Index

Constants

View Source
const (
	// StatusPrefix is the relative key prefix for the agent/plugin status.
	StatusPrefix = "check/status/v1/"
	// AgentStatusPrefix is the relative key prefix for the agent status,
	// filtering out statuses of individual plugins.
	AgentStatusPrefix = StatusPrefix + "agent"
)

Variables

View Source
var OperationalState_name = map[int32]string{
	0: "INIT",
	1: "OK",
	2: "ERROR",
}
View Source
var OperationalState_value = map[string]int32{
	"INIT":  0,
	"OK":    1,
	"ERROR": 2,
}

Functions

func AgentStatusKey

func AgentStatusKey() string

AgentStatusKey returns the key used in ETCD to store the operational status of the vpp agent instance.

func PluginStatusKey

func PluginStatusKey(pluginLabel string) string

PluginStatusKey returns the key used in ETCD to store the operational status of the vpp agent plugin.

Types

type AgentStatus

type AgentStatus struct {
	BuildVersion string           `protobuf:"bytes,1,opt,name=build_version,proto3" json:"build_version,omitempty"`
	BuildDate    string           `protobuf:"bytes,2,opt,name=build_date,proto3" json:"build_date,omitempty"`
	State        OperationalState `protobuf:"varint,3,opt,name=state,proto3,enum=status.OperationalState" json:"state,omitempty"`
	StartTime    int64            `protobuf:"varint,4,opt,name=start_time,proto3" json:"start_time,omitempty"`
	LastChange   int64            `protobuf:"varint,5,opt,name=last_change,proto3" json:"last_change,omitempty"`
	LastUpdate   int64            `protobuf:"varint,6,opt,name=last_update,proto3" json:"last_update,omitempty"`
}

func (*AgentStatus) ProtoMessage

func (*AgentStatus) ProtoMessage()

func (*AgentStatus) Reset

func (m *AgentStatus) Reset()

func (*AgentStatus) String

func (m *AgentStatus) String() string

type OperationalState

type OperationalState int32
const (
	OperationalState_INIT  OperationalState = 0
	OperationalState_OK    OperationalState = 1
	OperationalState_ERROR OperationalState = 2
)

func (OperationalState) String

func (x OperationalState) String() string

type PluginStatus

type PluginStatus struct {
	State      OperationalState `protobuf:"varint,1,opt,name=state,proto3,enum=status.OperationalState" json:"state,omitempty"`
	LastChange int64            `protobuf:"varint,4,opt,name=last_change,proto3" json:"last_change,omitempty"`
	LastUpdate int64            `protobuf:"varint,5,opt,name=last_update,proto3" json:"last_update,omitempty"`
	Error      string           `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
}

func (*PluginStatus) ProtoMessage

func (*PluginStatus) ProtoMessage()

func (*PluginStatus) Reset

func (m *PluginStatus) Reset()

func (*PluginStatus) String

func (m *PluginStatus) String() string

Jump to

Keyboard shortcuts

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