Documentation
¶
Index ¶
- Variables
- type Extension
- func (*Extension) Descriptor() ([]byte, []int)
- func (m *Extension) GetExt() isExtension_Ext
- func (m *Extension) GetMasterArbitration() *MasterArbitration
- func (m *Extension) GetRegisteredExt() *RegisteredExtension
- func (*Extension) ProtoMessage()
- func (m *Extension) Reset()
- func (m *Extension) String() string
- func (m *Extension) XXX_DiscardUnknown()
- func (m *Extension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Extension) XXX_Merge(src proto.Message)
- func (*Extension) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Extension) XXX_Size() int
- func (m *Extension) XXX_Unmarshal(b []byte) error
- type ExtensionID
- type Extension_MasterArbitration
- type Extension_RegisteredExt
- type MasterArbitration
- func (*MasterArbitration) Descriptor() ([]byte, []int)
- func (m *MasterArbitration) GetElectionId() *Uint128
- func (m *MasterArbitration) GetRole() *Role
- func (*MasterArbitration) ProtoMessage()
- func (m *MasterArbitration) Reset()
- func (m *MasterArbitration) String() string
- func (m *MasterArbitration) XXX_DiscardUnknown()
- func (m *MasterArbitration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MasterArbitration) XXX_Merge(src proto.Message)
- func (m *MasterArbitration) XXX_Size() int
- func (m *MasterArbitration) XXX_Unmarshal(b []byte) error
- type RegisteredExtension
- func (*RegisteredExtension) Descriptor() ([]byte, []int)
- func (m *RegisteredExtension) GetId() ExtensionID
- func (m *RegisteredExtension) GetMsg() []byte
- func (*RegisteredExtension) ProtoMessage()
- func (m *RegisteredExtension) Reset()
- func (m *RegisteredExtension) String() string
- func (m *RegisteredExtension) XXX_DiscardUnknown()
- func (m *RegisteredExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RegisteredExtension) XXX_Merge(src proto.Message)
- func (m *RegisteredExtension) XXX_Size() int
- func (m *RegisteredExtension) XXX_Unmarshal(b []byte) error
- type Role
- func (*Role) Descriptor() ([]byte, []int)
- func (m *Role) GetId() string
- func (*Role) ProtoMessage()
- func (m *Role) Reset()
- func (m *Role) String() string
- func (m *Role) XXX_DiscardUnknown()
- func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Role) XXX_Merge(src proto.Message)
- func (m *Role) XXX_Size() int
- func (m *Role) XXX_Unmarshal(b []byte) error
- type Uint128
- func (*Uint128) Descriptor() ([]byte, []int)
- func (m *Uint128) GetHigh() uint64
- func (m *Uint128) GetLow() uint64
- func (*Uint128) ProtoMessage()
- func (m *Uint128) Reset()
- func (m *Uint128) String() string
- func (m *Uint128) XXX_DiscardUnknown()
- func (m *Uint128) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Uint128) XXX_Merge(src proto.Message)
- func (m *Uint128) XXX_Size() int
- func (m *Uint128) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ExtensionID_name = map[int32]string{
0: "EID_UNSET",
999: "EID_EXPERIMENTAL",
}
var ExtensionID_value = map[string]int32{
"EID_UNSET": 0,
"EID_EXPERIMENTAL": 999,
}
Functions ¶
This section is empty.
Types ¶
type Extension ¶
type Extension struct { // Types that are valid to be assigned to Ext: // *Extension_RegisteredExt // *Extension_MasterArbitration Ext isExtension_Ext `protobuf_oneof:"ext"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The Extension message contains a single gNMI extension.
func (*Extension) Descriptor ¶
func (*Extension) GetMasterArbitration ¶
func (m *Extension) GetMasterArbitration() *MasterArbitration
func (*Extension) GetRegisteredExt ¶
func (m *Extension) GetRegisteredExt() *RegisteredExtension
func (*Extension) ProtoMessage ¶
func (*Extension) ProtoMessage()
func (*Extension) XXX_DiscardUnknown ¶
func (m *Extension) XXX_DiscardUnknown()
func (*Extension) XXX_Marshal ¶
func (*Extension) XXX_OneofFuncs ¶
func (*Extension) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Extension) XXX_Unmarshal ¶
type ExtensionID ¶
type ExtensionID int32
RegisteredExtension is an enumeration acting as a registry for extensions defined by external sources.
const ( ExtensionID_EID_UNSET ExtensionID = 0 // An experimental extension that may be used during prototyping of a new // extension. ExtensionID_EID_EXPERIMENTAL ExtensionID = 999 )
func (ExtensionID) EnumDescriptor ¶
func (ExtensionID) EnumDescriptor() ([]byte, []int)
func (ExtensionID) String ¶
func (x ExtensionID) String() string
type Extension_MasterArbitration ¶
type Extension_MasterArbitration struct {
MasterArbitration *MasterArbitration `protobuf:"bytes,2,opt,name=master_arbitration,json=masterArbitration,proto3,oneof"`
}
type Extension_RegisteredExt ¶
type Extension_RegisteredExt struct {
RegisteredExt *RegisteredExtension `protobuf:"bytes,1,opt,name=registered_ext,json=registeredExt,proto3,oneof"`
}
type MasterArbitration ¶
type MasterArbitration struct { Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` ElectionId *Uint128 `protobuf:"bytes,2,opt,name=election_id,json=electionId,proto3" json:"election_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
MasterArbitration is used to select the master among multiple gNMI clients with the same Roles. The client with the largest election_id is honored as the master. The document about gNMI master arbitration can be found at https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-master-arbitration.md
func (*MasterArbitration) Descriptor ¶
func (*MasterArbitration) Descriptor() ([]byte, []int)
func (*MasterArbitration) GetElectionId ¶
func (m *MasterArbitration) GetElectionId() *Uint128
func (*MasterArbitration) GetRole ¶
func (m *MasterArbitration) GetRole() *Role
func (*MasterArbitration) ProtoMessage ¶
func (*MasterArbitration) ProtoMessage()
func (*MasterArbitration) Reset ¶
func (m *MasterArbitration) Reset()
func (*MasterArbitration) String ¶
func (m *MasterArbitration) String() string
func (*MasterArbitration) XXX_DiscardUnknown ¶
func (m *MasterArbitration) XXX_DiscardUnknown()
func (*MasterArbitration) XXX_Marshal ¶
func (m *MasterArbitration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MasterArbitration) XXX_Merge ¶
func (dst *MasterArbitration) XXX_Merge(src proto.Message)
func (*MasterArbitration) XXX_Size ¶
func (m *MasterArbitration) XXX_Size() int
func (*MasterArbitration) XXX_Unmarshal ¶
func (m *MasterArbitration) XXX_Unmarshal(b []byte) error
type RegisteredExtension ¶
type RegisteredExtension struct { Id ExtensionID `protobuf:"varint,1,opt,name=id,proto3,enum=gnmi_ext.ExtensionID" json:"id,omitempty"` Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The RegisteredExtension message defines an extension which is defined outside of this file.
func (*RegisteredExtension) Descriptor ¶
func (*RegisteredExtension) Descriptor() ([]byte, []int)
func (*RegisteredExtension) GetId ¶
func (m *RegisteredExtension) GetId() ExtensionID
func (*RegisteredExtension) GetMsg ¶
func (m *RegisteredExtension) GetMsg() []byte
func (*RegisteredExtension) ProtoMessage ¶
func (*RegisteredExtension) ProtoMessage()
func (*RegisteredExtension) Reset ¶
func (m *RegisteredExtension) Reset()
func (*RegisteredExtension) String ¶
func (m *RegisteredExtension) String() string
func (*RegisteredExtension) XXX_DiscardUnknown ¶
func (m *RegisteredExtension) XXX_DiscardUnknown()
func (*RegisteredExtension) XXX_Marshal ¶
func (m *RegisteredExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisteredExtension) XXX_Merge ¶
func (dst *RegisteredExtension) XXX_Merge(src proto.Message)
func (*RegisteredExtension) XXX_Size ¶
func (m *RegisteredExtension) XXX_Size() int
func (*RegisteredExtension) XXX_Unmarshal ¶
func (m *RegisteredExtension) XXX_Unmarshal(b []byte) error
type Role ¶
type Role 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:"-"` }
There can be one master for each role. The role is identified by its id.
func (*Role) Descriptor ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) XXX_DiscardUnknown ¶
func (m *Role) XXX_DiscardUnknown()
func (*Role) XXX_Unmarshal ¶
type Uint128 ¶
type Uint128 struct { High uint64 `protobuf:"varint,1,opt,name=high,proto3" json:"high,omitempty"` Low uint64 `protobuf:"varint,2,opt,name=low,proto3" json:"low,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Representation of unsigned 128-bit integer.
func (*Uint128) Descriptor ¶
func (*Uint128) ProtoMessage ¶
func (*Uint128) ProtoMessage()
func (*Uint128) XXX_DiscardUnknown ¶
func (m *Uint128) XXX_DiscardUnknown()