status

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 3 Imported by: 47

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 added in v1.6.0

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

func (*AgentStatus) GetBuildDate added in v1.6.0

func (m *AgentStatus) GetBuildDate() string

func (*AgentStatus) GetBuildVersion added in v1.6.0

func (m *AgentStatus) GetBuildVersion() string

func (*AgentStatus) GetCommitHash added in v1.6.0

func (m *AgentStatus) GetCommitHash() string

func (*AgentStatus) GetInterfaceStats added in v1.0.8

func (m *AgentStatus) GetInterfaceStats() *InterfaceStats

func (*AgentStatus) GetLastChange added in v1.6.0

func (m *AgentStatus) GetLastChange() int64

func (*AgentStatus) GetLastUpdate added in v1.6.0

func (m *AgentStatus) GetLastUpdate() int64

func (*AgentStatus) GetPlugins added in v1.6.0

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

func (*AgentStatus) GetStartTime added in v1.6.0

func (m *AgentStatus) GetStartTime() int64

func (*AgentStatus) GetState added in v1.6.0

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 added in v1.6.0

func (m *AgentStatus) XXX_DiscardUnknown()

func (*AgentStatus) XXX_Marshal added in v1.6.0

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

func (*AgentStatus) XXX_Merge added in v1.6.0

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

func (*AgentStatus) XXX_Size added in v1.6.0

func (m *AgentStatus) XXX_Size() int

func (*AgentStatus) XXX_Unmarshal added in v1.6.0

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

type InterfaceStats added in v1.0.8

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 added in v1.6.0

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

func (*InterfaceStats) GetInterfaces added in v1.0.8

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

func (*InterfaceStats) ProtoMessage added in v1.0.8

func (*InterfaceStats) ProtoMessage()

func (*InterfaceStats) Reset added in v1.0.8

func (m *InterfaceStats) Reset()

func (*InterfaceStats) String added in v1.0.8

func (m *InterfaceStats) String() string

func (*InterfaceStats) XXX_DiscardUnknown added in v1.6.0

func (m *InterfaceStats) XXX_DiscardUnknown()

func (*InterfaceStats) XXX_Marshal added in v1.6.0

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

func (*InterfaceStats) XXX_Merge added in v1.6.0

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

func (*InterfaceStats) XXX_Size added in v1.6.0

func (m *InterfaceStats) XXX_Size() int

func (*InterfaceStats) XXX_Unmarshal added in v1.6.0

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

type InterfaceStats_Interface added in v1.0.8

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 added in v1.6.0

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

func (*InterfaceStats_Interface) GetIndex added in v1.6.0

func (m *InterfaceStats_Interface) GetIndex() uint32

func (*InterfaceStats_Interface) GetInternalName added in v1.6.0

func (m *InterfaceStats_Interface) GetInternalName() string

func (*InterfaceStats_Interface) GetIpAddress added in v1.6.0

func (m *InterfaceStats_Interface) GetIpAddress() string

func (*InterfaceStats_Interface) GetMacAddress added in v1.6.0

func (m *InterfaceStats_Interface) GetMacAddress() string

func (*InterfaceStats_Interface) GetStatus added in v1.6.0

func (m *InterfaceStats_Interface) GetStatus() string

func (*InterfaceStats_Interface) ProtoMessage added in v1.0.8

func (*InterfaceStats_Interface) ProtoMessage()

func (*InterfaceStats_Interface) Reset added in v1.0.8

func (m *InterfaceStats_Interface) Reset()

func (*InterfaceStats_Interface) String added in v1.0.8

func (m *InterfaceStats_Interface) String() string

func (*InterfaceStats_Interface) XXX_DiscardUnknown added in v1.6.0

func (m *InterfaceStats_Interface) XXX_DiscardUnknown()

func (*InterfaceStats_Interface) XXX_Marshal added in v1.6.0

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

func (*InterfaceStats_Interface) XXX_Merge added in v1.6.0

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

func (*InterfaceStats_Interface) XXX_Size added in v1.6.0

func (m *InterfaceStats_Interface) XXX_Size() int

func (*InterfaceStats_Interface) XXX_Unmarshal added in v1.6.0

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 added in v1.6.0

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 added in v1.6.0

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

func (*PluginStatus) GetError added in v1.6.0

func (m *PluginStatus) GetError() string

func (*PluginStatus) GetLastChange added in v1.6.0

func (m *PluginStatus) GetLastChange() int64

func (*PluginStatus) GetLastUpdate added in v1.6.0

func (m *PluginStatus) GetLastUpdate() int64

func (*PluginStatus) GetName added in v1.6.0

func (m *PluginStatus) GetName() string

func (*PluginStatus) GetState added in v1.6.0

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 added in v1.6.0

func (m *PluginStatus) XXX_DiscardUnknown()

func (*PluginStatus) XXX_Marshal added in v1.6.0

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

func (*PluginStatus) XXX_Merge added in v1.6.0

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

func (*PluginStatus) XXX_Size added in v1.6.0

func (m *PluginStatus) XXX_Size() int

func (*PluginStatus) XXX_Unmarshal added in v1.6.0

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