common

package
v0.0.0-...-8f485f0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package voltha is a generated protocol buffer package.

It is generated from these files:

common.proto

It has these top-level messages:

ID
LogLevel
AdminState
OperStatus
ConnectStatus

Index

Constants

This section is empty.

Variables

View Source
var AdminState_AdminState_name = map[int32]string{
	0: "UNKNOWN",
	1: "PREPROVISIONED",
	3: "ENABLED",
	2: "DISABLED",
}
View Source
var AdminState_AdminState_value = map[string]int32{
	"UNKNOWN":        0,
	"PREPROVISIONED": 1,
	"ENABLED":        3,
	"DISABLED":       2,
}
View Source
var ConnectStatus_ConnectStatus_name = map[int32]string{
	0: "UNKNOWN",
	1: "UNREACHABLE",
	2: "REACHABLE",
}
View Source
var ConnectStatus_ConnectStatus_value = map[string]int32{
	"UNKNOWN":     0,
	"UNREACHABLE": 1,
	"REACHABLE":   2,
}
View Source
var LogLevel_LogLevel_name = map[int32]string{
	0: "DEBUG",
	1: "INFO",
	2: "WARNING",
	3: "ERROR",
	4: "CRITICAL",
}
View Source
var LogLevel_LogLevel_value = map[string]int32{
	"DEBUG":    0,
	"INFO":     1,
	"WARNING":  2,
	"ERROR":    3,
	"CRITICAL": 4,
}
View Source
var OperStatus_OperStatus_name = map[int32]string{
	0: "UNKNOWN",
	1: "DISCOVERED",
	2: "ACTIVATING",
	3: "TESTING",
	4: "ACTIVE",
	5: "FAILED",
}
View Source
var OperStatus_OperStatus_value = map[string]int32{
	"UNKNOWN":    0,
	"DISCOVERED": 1,
	"ACTIVATING": 2,
	"TESTING":    3,
	"ACTIVE":     4,
	"FAILED":     5,
}

Functions

This section is empty.

Types

type AdminState

type AdminState struct {
}

func (*AdminState) Descriptor

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

func (*AdminState) ProtoMessage

func (*AdminState) ProtoMessage()

func (*AdminState) Reset

func (m *AdminState) Reset()

func (*AdminState) String

func (m *AdminState) String() string

type AdminState_AdminState

type AdminState_AdminState int32

Administrative State

const (
	// The administrative state of the device is unknown
	AdminState_UNKNOWN AdminState_AdminState = 0
	// The device is pre-provisioned into Voltha, but not contacted by it
	AdminState_PREPROVISIONED AdminState_AdminState = 1
	// The device is enabled for activation and operation
	AdminState_ENABLED AdminState_AdminState = 3
	// The device is disabled and shall not perform its intended forwarding
	// functions other than being available for re-activation.
	AdminState_DISABLED AdminState_AdminState = 2
)

func (AdminState_AdminState) EnumDescriptor

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

func (AdminState_AdminState) String

func (x AdminState_AdminState) String() string

type ConnectStatus

type ConnectStatus struct {
}

func (*ConnectStatus) Descriptor

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

func (*ConnectStatus) ProtoMessage

func (*ConnectStatus) ProtoMessage()

func (*ConnectStatus) Reset

func (m *ConnectStatus) Reset()

func (*ConnectStatus) String

func (m *ConnectStatus) String() string

type ConnectStatus_ConnectStatus

type ConnectStatus_ConnectStatus int32

Connectivity Status

const (
	// The device connectivity status is unknown
	ConnectStatus_UNKNOWN ConnectStatus_ConnectStatus = 0
	// The device cannot be reached by Voltha
	ConnectStatus_UNREACHABLE ConnectStatus_ConnectStatus = 1
	// There is live communication between device and Voltha
	ConnectStatus_REACHABLE ConnectStatus_ConnectStatus = 2
)

func (ConnectStatus_ConnectStatus) EnumDescriptor

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

func (ConnectStatus_ConnectStatus) String

type ID

type ID struct {
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

Convey a resource identifier

func (*ID) Descriptor

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

func (*ID) GetId

func (m *ID) GetId() string

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) Reset

func (m *ID) Reset()

func (*ID) String

func (m *ID) String() string

type LogLevel

type LogLevel struct {
}

func (*LogLevel) Descriptor

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

func (*LogLevel) ProtoMessage

func (*LogLevel) ProtoMessage()

func (*LogLevel) Reset

func (m *LogLevel) Reset()

func (*LogLevel) String

func (m *LogLevel) String() string

type LogLevel_LogLevel

type LogLevel_LogLevel int32

Logging verbosity level

const (
	LogLevel_DEBUG    LogLevel_LogLevel = 0
	LogLevel_INFO     LogLevel_LogLevel = 1
	LogLevel_WARNING  LogLevel_LogLevel = 2
	LogLevel_ERROR    LogLevel_LogLevel = 3
	LogLevel_CRITICAL LogLevel_LogLevel = 4
)

func (LogLevel_LogLevel) EnumDescriptor

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

func (LogLevel_LogLevel) String

func (x LogLevel_LogLevel) String() string

type OperStatus

type OperStatus struct {
}

func (*OperStatus) Descriptor

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

func (*OperStatus) ProtoMessage

func (*OperStatus) ProtoMessage()

func (*OperStatus) Reset

func (m *OperStatus) Reset()

func (*OperStatus) String

func (m *OperStatus) String() string

type OperStatus_OperStatus

type OperStatus_OperStatus int32

Operational Status

const (
	// The status of the device is unknown at this point
	OperStatus_UNKNOWN OperStatus_OperStatus = 0
	// The device has been discovered, but not yet activated
	OperStatus_DISCOVERED OperStatus_OperStatus = 1
	// The device is being activated (booted, rebooted, upgraded, etc.)
	OperStatus_ACTIVATING OperStatus_OperStatus = 2
	// Service impacting tests are being conducted
	OperStatus_TESTING OperStatus_OperStatus = 3
	// The device is up and active
	OperStatus_ACTIVE OperStatus_OperStatus = 4
	// The device has failed and cannot fulfill its intended role
	OperStatus_FAILED OperStatus_OperStatus = 5
)

func (OperStatus_OperStatus) EnumDescriptor

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

func (OperStatus_OperStatus) String

func (x OperStatus_OperStatus) String() string

Jump to

Keyboard shortcuts

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