common

package
v5.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminState_Types_name = map[int32]string{
	0: "UNKNOWN",
	1: "PREPROVISIONED",
	2: "ENABLED",
	3: "DISABLED",
	4: "DOWNLOADING_IMAGE",
}
View Source
var AdminState_Types_value = map[string]int32{
	"UNKNOWN":           0,
	"PREPROVISIONED":    1,
	"ENABLED":           2,
	"DISABLED":          3,
	"DOWNLOADING_IMAGE": 4,
}
View Source
var ConnectStatus_Types_name = map[int32]string{
	0: "UNKNOWN",
	1: "UNREACHABLE",
	2: "REACHABLE",
}
View Source
var ConnectStatus_Types_value = map[string]int32{
	"UNKNOWN":     0,
	"UNREACHABLE": 1,
	"REACHABLE":   2,
}
View Source
var OperStatus_Types_name = map[int32]string{
	0: "UNKNOWN",
	1: "DISCOVERED",
	2: "ACTIVATING",
	3: "TESTING",
	4: "ACTIVE",
	5: "FAILED",
	6: "RECONCILING",
	7: "RECONCILING_FAILED",
	8: "REBOOTED",
}
View Source
var OperStatus_Types_value = map[string]int32{
	"UNKNOWN":            0,
	"DISCOVERED":         1,
	"ACTIVATING":         2,
	"TESTING":            3,
	"ACTIVE":             4,
	"FAILED":             5,
	"RECONCILING":        6,
	"RECONCILING_FAILED": 7,
	"REBOOTED":           8,
}
View Source
var OperationResp_OperationReturnCode_name = map[int32]string{
	0: "OPERATION_SUCCESS",
	1: "OPERATION_FAILURE",
	2: "OPERATION_UNSUPPORTED",
	3: "OPERATION_IN_PROGRESS",
}
View Source
var OperationResp_OperationReturnCode_value = map[string]int32{
	"OPERATION_SUCCESS":     0,
	"OPERATION_FAILURE":     1,
	"OPERATION_UNSUPPORTED": 2,
	"OPERATION_IN_PROGRESS": 3,
}
View Source
var TestModeKeys_name = map[int32]string{
	0: "api_test",
}
View Source
var TestModeKeys_value = map[string]int32{
	"api_test": 0,
}

Functions

This section is empty.

Types

type AdminState

type AdminState struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*AdminState) XXX_DiscardUnknown

func (m *AdminState) XXX_DiscardUnknown()

func (*AdminState) XXX_Marshal

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

func (*AdminState) XXX_Merge

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

func (*AdminState) XXX_Size

func (m *AdminState) XXX_Size() int

func (*AdminState) XXX_Unmarshal

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

type AdminState_Types

type AdminState_Types int32

Administrative State

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

func (AdminState_Types) EnumDescriptor

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

func (AdminState_Types) String

func (x AdminState_Types) String() string

type ConnectStatus

type ConnectStatus struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*ConnectStatus) XXX_DiscardUnknown

func (m *ConnectStatus) XXX_DiscardUnknown()

func (*ConnectStatus) XXX_Marshal

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

func (*ConnectStatus) XXX_Merge

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

func (*ConnectStatus) XXX_Size

func (m *ConnectStatus) XXX_Size() int

func (*ConnectStatus) XXX_Unmarshal

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

type ConnectStatus_Types

type ConnectStatus_Types int32

Connectivity Status

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

func (ConnectStatus_Types) EnumDescriptor

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

func (ConnectStatus_Types) String

func (x ConnectStatus_Types) String() string

type Connection

type Connection struct {
	// endpoint is the endpoint sending the request
	Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// contextInfo represents additional contextual information
	ContextInfo string `protobuf:"bytes,2,opt,name=contextInfo,proto3" json:"contextInfo,omitempty"`
	// keep_alive_interval is used to indicate to the remote endpoint how often it
	// will get a keep alive notification
	KeepAliveInterval    int64    `protobuf:"varint,3,opt,name=keep_alive_interval,json=keepAliveInterval,proto3" json:"keep_alive_interval,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Connection) Descriptor

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

func (*Connection) GetContextInfo

func (m *Connection) GetContextInfo() string

func (*Connection) GetEndpoint

func (m *Connection) GetEndpoint() string

func (*Connection) GetKeepAliveInterval

func (m *Connection) GetKeepAliveInterval() int64

func (*Connection) ProtoMessage

func (*Connection) ProtoMessage()

func (*Connection) Reset

func (m *Connection) Reset()

func (*Connection) String

func (m *Connection) String() string

func (*Connection) XXX_DiscardUnknown

func (m *Connection) XXX_DiscardUnknown()

func (*Connection) XXX_Marshal

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

func (*Connection) XXX_Merge

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

func (*Connection) XXX_Size

func (m *Connection) XXX_Size() int

func (*Connection) XXX_Unmarshal

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

type ID

type ID struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*ID) XXX_DiscardUnknown

func (m *ID) XXX_DiscardUnknown()

func (*ID) XXX_Marshal

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

func (*ID) XXX_Merge

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

func (*ID) XXX_Size

func (m *ID) XXX_Size() int

func (*ID) XXX_Unmarshal

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

type IDs

type IDs struct {
	Items                []*ID    `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents a list of IDs

func (*IDs) Descriptor

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

func (*IDs) GetItems

func (m *IDs) GetItems() []*ID

func (*IDs) ProtoMessage

func (*IDs) ProtoMessage()

func (*IDs) Reset

func (m *IDs) Reset()

func (*IDs) String

func (m *IDs) String() string

func (*IDs) XXX_DiscardUnknown

func (m *IDs) XXX_DiscardUnknown()

func (*IDs) XXX_Marshal

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

func (*IDs) XXX_Merge

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

func (*IDs) XXX_Size

func (m *IDs) XXX_Size() int

func (*IDs) XXX_Unmarshal

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

type Key

type Key struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Full path for KV store

func (*Key) Descriptor

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

func (*Key) GetKey

func (m *Key) GetKey() string

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) Reset

func (m *Key) Reset()

func (*Key) String

func (m *Key) String() string

func (*Key) XXX_DiscardUnknown

func (m *Key) XXX_DiscardUnknown()

func (*Key) XXX_Marshal

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

func (*Key) XXX_Merge

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

func (*Key) XXX_Size

func (m *Key) XXX_Size() int

func (*Key) XXX_Unmarshal

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

type OperStatus

type OperStatus struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*OperStatus) XXX_DiscardUnknown

func (m *OperStatus) XXX_DiscardUnknown()

func (*OperStatus) XXX_Marshal

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

func (*OperStatus) XXX_Merge

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

func (*OperStatus) XXX_Size

func (m *OperStatus) XXX_Size() int

func (*OperStatus) XXX_Unmarshal

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

type OperStatus_Types

type OperStatus_Types int32

Operational Status

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

func (OperStatus_Types) EnumDescriptor

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

func (OperStatus_Types) String

func (x OperStatus_Types) String() string

type OperationResp

type OperationResp struct {
	// Return code
	Code OperationResp_OperationReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=common.OperationResp_OperationReturnCode" json:"code,omitempty"`
	// Additional Info
	AdditionalInfo       string   `protobuf:"bytes,2,opt,name=additional_info,json=additionalInfo,proto3" json:"additional_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OperationResp) Descriptor

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

func (*OperationResp) GetAdditionalInfo

func (m *OperationResp) GetAdditionalInfo() string

func (*OperationResp) GetCode

func (*OperationResp) ProtoMessage

func (*OperationResp) ProtoMessage()

func (*OperationResp) Reset

func (m *OperationResp) Reset()

func (*OperationResp) String

func (m *OperationResp) String() string

func (*OperationResp) XXX_DiscardUnknown

func (m *OperationResp) XXX_DiscardUnknown()

func (*OperationResp) XXX_Marshal

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

func (*OperationResp) XXX_Merge

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

func (*OperationResp) XXX_Size

func (m *OperationResp) XXX_Size() int

func (*OperationResp) XXX_Unmarshal

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

type OperationResp_OperationReturnCode

type OperationResp_OperationReturnCode int32
const (
	OperationResp_OPERATION_SUCCESS     OperationResp_OperationReturnCode = 0
	OperationResp_OPERATION_FAILURE     OperationResp_OperationReturnCode = 1
	OperationResp_OPERATION_UNSUPPORTED OperationResp_OperationReturnCode = 2
	OperationResp_OPERATION_IN_PROGRESS OperationResp_OperationReturnCode = 3
)

func (OperationResp_OperationReturnCode) EnumDescriptor

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

func (OperationResp_OperationReturnCode) String

type TestModeKeys

type TestModeKeys int32
const (
	TestModeKeys_api_test TestModeKeys = 0
)

func (TestModeKeys) EnumDescriptor

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

func (TestModeKeys) String

func (x TestModeKeys) String() string

Jump to

Keyboard shortcuts

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