status

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 11

Documentation

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,json=buildVersion,proto3" json:"build_version,omitempty"`
	BuildDate            string           `protobuf:"bytes,2,opt,name=build_date,json=buildDate,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,json=startTime,proto3" json:"start_time,omitempty"`
	LastChange           int64            `protobuf:"varint,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"`
	LastUpdate           int64            `protobuf:"varint,6,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
	InterfaceStats       *InterfaceStats  `protobuf:"bytes,7,opt,name=interface_stats,json=interfaceStats,proto3" json:"interface_stats,omitempty"`
	CommitHash           string           `protobuf:"bytes,8,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"`
	Plugins              []*PluginStatus  `protobuf:"bytes,9,rep,name=plugins,proto3" json:"plugins,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*AgentStatus) Descriptor

func (*AgentStatus) Descriptor() ([]byte, []int)

func (*AgentStatus) GetBuildDate

func (m *AgentStatus) GetBuildDate() string

func (*AgentStatus) GetBuildVersion

func (m *AgentStatus) GetBuildVersion() string

func (*AgentStatus) GetCommitHash

func (m *AgentStatus) GetCommitHash() string

func (*AgentStatus) GetInterfaceStats

func (m *AgentStatus) GetInterfaceStats() *InterfaceStats

func (*AgentStatus) GetLastChange

func (m *AgentStatus) GetLastChange() int64

func (*AgentStatus) GetLastUpdate

func (m *AgentStatus) GetLastUpdate() int64

func (*AgentStatus) GetPlugins

func (m *AgentStatus) GetPlugins() []*PluginStatus

func (*AgentStatus) GetStartTime

func (m *AgentStatus) GetStartTime() int64

func (*AgentStatus) GetState

func (m *AgentStatus) GetState() OperationalState

func (*AgentStatus) ProtoMessage

func (*AgentStatus) ProtoMessage()

func (*AgentStatus) Reset

func (m *AgentStatus) Reset()

func (*AgentStatus) String

func (m *AgentStatus) String() string

func (*AgentStatus) XXX_DiscardUnknown

func (m *AgentStatus) XXX_DiscardUnknown()

func (*AgentStatus) XXX_Marshal

func (m *AgentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AgentStatus) XXX_Merge

func (m *AgentStatus) XXX_Merge(src proto.Message)

func (*AgentStatus) XXX_Size

func (m *AgentStatus) XXX_Size() int

func (*AgentStatus) XXX_Unmarshal

func (m *AgentStatus) XXX_Unmarshal(b []byte) error

type InterfaceStats

type InterfaceStats struct {
	Interfaces           []*InterfaceStats_Interface `protobuf:"bytes,1,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*InterfaceStats) Descriptor

func (*InterfaceStats) Descriptor() ([]byte, []int)

func (*InterfaceStats) GetInterfaces

func (m *InterfaceStats) GetInterfaces() []*InterfaceStats_Interface

func (*InterfaceStats) ProtoMessage

func (*InterfaceStats) ProtoMessage()

func (*InterfaceStats) Reset

func (m *InterfaceStats) Reset()

func (*InterfaceStats) String

func (m *InterfaceStats) String() string

func (*InterfaceStats) XXX_DiscardUnknown

func (m *InterfaceStats) XXX_DiscardUnknown()

func (*InterfaceStats) XXX_Marshal

func (m *InterfaceStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InterfaceStats) XXX_Merge

func (m *InterfaceStats) XXX_Merge(src proto.Message)

func (*InterfaceStats) XXX_Size

func (m *InterfaceStats) XXX_Size() int

func (*InterfaceStats) XXX_Unmarshal

func (m *InterfaceStats) XXX_Unmarshal(b []byte) error

type InterfaceStats_Interface

type InterfaceStats_Interface struct {
	InternalName         string   `protobuf:"bytes,1,opt,name=internal_name,json=internalName,proto3" json:"internal_name,omitempty"`
	Index                uint32   `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	Status               string   `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	IpAddress            string   `protobuf:"bytes,5,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	MacAddress           string   `protobuf:"bytes,6,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InterfaceStats_Interface) Descriptor

func (*InterfaceStats_Interface) Descriptor() ([]byte, []int)

func (*InterfaceStats_Interface) GetIndex

func (m *InterfaceStats_Interface) GetIndex() uint32

func (*InterfaceStats_Interface) GetInternalName

func (m *InterfaceStats_Interface) GetInternalName() string

func (*InterfaceStats_Interface) GetIpAddress

func (m *InterfaceStats_Interface) GetIpAddress() string

func (*InterfaceStats_Interface) GetMacAddress

func (m *InterfaceStats_Interface) GetMacAddress() string

func (*InterfaceStats_Interface) GetStatus

func (m *InterfaceStats_Interface) GetStatus() string

func (*InterfaceStats_Interface) ProtoMessage

func (*InterfaceStats_Interface) ProtoMessage()

func (*InterfaceStats_Interface) Reset

func (m *InterfaceStats_Interface) Reset()

func (*InterfaceStats_Interface) String

func (m *InterfaceStats_Interface) String() string

func (*InterfaceStats_Interface) XXX_DiscardUnknown

func (m *InterfaceStats_Interface) XXX_DiscardUnknown()

func (*InterfaceStats_Interface) XXX_Marshal

func (m *InterfaceStats_Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InterfaceStats_Interface) XXX_Merge

func (m *InterfaceStats_Interface) XXX_Merge(src proto.Message)

func (*InterfaceStats_Interface) XXX_Size

func (m *InterfaceStats_Interface) XXX_Size() int

func (*InterfaceStats_Interface) XXX_Unmarshal

func (m *InterfaceStats_Interface) XXX_Unmarshal(b []byte) error

type OperationalState

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

func (OperationalState) EnumDescriptor

func (OperationalState) EnumDescriptor() ([]byte, []int)

func (OperationalState) String

func (x OperationalState) String() string

type PluginStatus

type PluginStatus struct {
	Name                 string           `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	State                OperationalState `protobuf:"varint,2,opt,name=state,proto3,enum=status.OperationalState" json:"state,omitempty"`
	LastChange           int64            `protobuf:"varint,3,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"`
	LastUpdate           int64            `protobuf:"varint,4,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
	Error                string           `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*PluginStatus) Descriptor

func (*PluginStatus) Descriptor() ([]byte, []int)

func (*PluginStatus) GetError

func (m *PluginStatus) GetError() string

func (*PluginStatus) GetLastChange

func (m *PluginStatus) GetLastChange() int64

func (*PluginStatus) GetLastUpdate

func (m *PluginStatus) GetLastUpdate() int64

func (*PluginStatus) GetName

func (m *PluginStatus) GetName() string

func (*PluginStatus) GetState

func (m *PluginStatus) GetState() OperationalState

func (*PluginStatus) ProtoMessage

func (*PluginStatus) ProtoMessage()

func (*PluginStatus) Reset

func (m *PluginStatus) Reset()

func (*PluginStatus) String

func (m *PluginStatus) String() string

func (*PluginStatus) XXX_DiscardUnknown

func (m *PluginStatus) XXX_DiscardUnknown()

func (*PluginStatus) XXX_Marshal

func (m *PluginStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PluginStatus) XXX_Merge

func (m *PluginStatus) XXX_Merge(src proto.Message)

func (*PluginStatus) XXX_Size

func (m *PluginStatus) XXX_Size() int

func (*PluginStatus) XXX_Unmarshal

func (m *PluginStatus) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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