gnmi_ext

package
v0.0.0-...-26c4482 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtensionID_name = map[int32]string{
	0:   "EID_UNSET",
	999: "EID_EXPERIMENTAL",
}
View Source
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) Descriptor() ([]byte, []int)

func (*Extension) GetExt

func (m *Extension) GetExt() isExtension_Ext

func (*Extension) GetMasterArbitration

func (m *Extension) GetMasterArbitration() *MasterArbitration

func (*Extension) GetRegisteredExt

func (m *Extension) GetRegisteredExt() *RegisteredExtension

func (*Extension) ProtoMessage

func (*Extension) ProtoMessage()

func (*Extension) Reset

func (m *Extension) Reset()

func (*Extension) String

func (m *Extension) String() string

func (*Extension) XXX_DiscardUnknown

func (m *Extension) XXX_DiscardUnknown()

func (*Extension) XXX_Marshal

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

func (*Extension) XXX_Merge

func (dst *Extension) XXX_Merge(src proto.Message)

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_Size

func (m *Extension) XXX_Size() int

func (*Extension) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Role) GetId

func (m *Role) GetId() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) Reset

func (m *Role) Reset()

func (*Role) String

func (m *Role) String() string

func (*Role) XXX_DiscardUnknown

func (m *Role) XXX_DiscardUnknown()

func (*Role) XXX_Marshal

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

func (*Role) XXX_Merge

func (dst *Role) XXX_Merge(src proto.Message)

func (*Role) XXX_Size

func (m *Role) XXX_Size() int

func (*Role) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Uint128) GetHigh

func (m *Uint128) GetHigh() uint64

func (*Uint128) GetLow

func (m *Uint128) GetLow() uint64

func (*Uint128) ProtoMessage

func (*Uint128) ProtoMessage()

func (*Uint128) Reset

func (m *Uint128) Reset()

func (*Uint128) String

func (m *Uint128) String() string

func (*Uint128) XXX_DiscardUnknown

func (m *Uint128) XXX_DiscardUnknown()

func (*Uint128) XXX_Marshal

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

func (*Uint128) XXX_Merge

func (dst *Uint128) XXX_Merge(src proto.Message)

func (*Uint128) XXX_Size

func (m *Uint128) XXX_Size() int

func (*Uint128) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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