Documentation
¶
Index ¶
- Variables
- type Commit
- func (*Commit) Descriptor() ([]byte, []int)deprecated
- func (x *Commit) GetAction() isCommit_Action
- func (x *Commit) GetCancel() *CommitCancel
- func (x *Commit) GetCommit() *CommitRequest
- func (x *Commit) GetConfirm() *CommitConfirm
- func (x *Commit) GetId() string
- func (x *Commit) GetSetRollbackDuration() *CommitSetRollbackDuration
- func (*Commit) ProtoMessage()
- func (x *Commit) ProtoReflect() protoreflect.Message
- func (x *Commit) Reset()
- func (x *Commit) String() string
- type CommitCancel
- type CommitConfirm
- type CommitRequest
- type CommitSetRollbackDuration
- func (*CommitSetRollbackDuration) Descriptor() ([]byte, []int)deprecated
- func (x *CommitSetRollbackDuration) GetRollbackDuration() *durationpb.Duration
- func (*CommitSetRollbackDuration) ProtoMessage()
- func (x *CommitSetRollbackDuration) ProtoReflect() protoreflect.Message
- func (x *CommitSetRollbackDuration) Reset()
- func (x *CommitSetRollbackDuration) String() string
- type Commit_Cancel
- type Commit_Commit
- type Commit_Confirm
- type Commit_SetRollbackDuration
- type Depth
- type Extension
- func (*Extension) Descriptor() ([]byte, []int)deprecated
- func (x *Extension) GetCommit() *Commit
- func (x *Extension) GetDepth() *Depth
- func (x *Extension) GetExt() isExtension_Ext
- func (x *Extension) GetHistory() *History
- func (x *Extension) GetMasterArbitration() *MasterArbitration
- func (x *Extension) GetRegisteredExt() *RegisteredExtension
- func (*Extension) ProtoMessage()
- func (x *Extension) ProtoReflect() protoreflect.Message
- func (x *Extension) Reset()
- func (x *Extension) String() string
- type ExtensionID
- func (ExtensionID) Descriptor() protoreflect.EnumDescriptor
- func (x ExtensionID) Enum() *ExtensionID
- func (ExtensionID) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExtensionID) Number() protoreflect.EnumNumber
- func (x ExtensionID) String() string
- func (ExtensionID) Type() protoreflect.EnumType
- type Extension_Commit
- type Extension_Depth
- type Extension_History
- type Extension_MasterArbitration
- type Extension_RegisteredExt
- type History
- func (*History) Descriptor() ([]byte, []int)deprecated
- func (x *History) GetRange() *TimeRange
- func (x *History) GetRequest() isHistory_Request
- func (x *History) GetSnapshotTime() int64
- func (*History) ProtoMessage()
- func (x *History) ProtoReflect() protoreflect.Message
- func (x *History) Reset()
- func (x *History) String() string
- type History_Range
- type History_SnapshotTime
- type MasterArbitration
- func (*MasterArbitration) Descriptor() ([]byte, []int)deprecated
- func (x *MasterArbitration) GetElectionId() *Uint128
- func (x *MasterArbitration) GetRole() *Role
- func (*MasterArbitration) ProtoMessage()
- func (x *MasterArbitration) ProtoReflect() protoreflect.Message
- func (x *MasterArbitration) Reset()
- func (x *MasterArbitration) String() string
- type RegisteredExtension
- func (*RegisteredExtension) Descriptor() ([]byte, []int)deprecated
- func (x *RegisteredExtension) GetId() ExtensionID
- func (x *RegisteredExtension) GetMsg() []byte
- func (*RegisteredExtension) ProtoMessage()
- func (x *RegisteredExtension) ProtoReflect() protoreflect.Message
- func (x *RegisteredExtension) Reset()
- func (x *RegisteredExtension) String() string
- type Role
- type TimeRange
- type Uint128
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExtensionID_name = map[int32]string{ 0: "EID_UNSET", 999: "EID_EXPERIMENTAL", } ExtensionID_value = map[string]int32{ "EID_UNSET": 0, "EID_EXPERIMENTAL": 999, } )
Enum value maps for ExtensionID.
View Source
var File_github_com_openconfig_gnmi_proto_gnmi_ext_gnmi_ext_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Commit ¶ added in v0.11.0
type Commit struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Types that are valid to be assigned to Action:
//
// *Commit_Commit
// *Commit_Confirm
// *Commit_Cancel
// *Commit_SetRollbackDuration
Action isCommit_Action `protobuf_oneof:"action"`
// contains filtered or unexported fields
}
func (*Commit) Descriptor
deprecated
added in
v0.11.0
func (*Commit) GetCancel ¶ added in v0.11.0
func (x *Commit) GetCancel() *CommitCancel
func (*Commit) GetCommit ¶ added in v0.11.0
func (x *Commit) GetCommit() *CommitRequest
func (*Commit) GetConfirm ¶ added in v0.11.0
func (x *Commit) GetConfirm() *CommitConfirm
func (*Commit) GetSetRollbackDuration ¶ added in v0.11.0
func (x *Commit) GetSetRollbackDuration() *CommitSetRollbackDuration
func (*Commit) ProtoMessage ¶ added in v0.11.0
func (*Commit) ProtoMessage()
func (*Commit) ProtoReflect ¶ added in v0.11.0
func (x *Commit) ProtoReflect() protoreflect.Message
type CommitCancel ¶ added in v0.11.0
type CommitCancel struct {
// contains filtered or unexported fields
}
func (*CommitCancel) Descriptor
deprecated
added in
v0.11.0
func (*CommitCancel) Descriptor() ([]byte, []int)
Deprecated: Use CommitCancel.ProtoReflect.Descriptor instead.
func (*CommitCancel) ProtoMessage ¶ added in v0.11.0
func (*CommitCancel) ProtoMessage()
func (*CommitCancel) ProtoReflect ¶ added in v0.11.0
func (x *CommitCancel) ProtoReflect() protoreflect.Message
func (*CommitCancel) Reset ¶ added in v0.11.0
func (x *CommitCancel) Reset()
func (*CommitCancel) String ¶ added in v0.11.0
func (x *CommitCancel) String() string
type CommitConfirm ¶ added in v0.11.0
type CommitConfirm struct {
// contains filtered or unexported fields
}
func (*CommitConfirm) Descriptor
deprecated
added in
v0.11.0
func (*CommitConfirm) Descriptor() ([]byte, []int)
Deprecated: Use CommitConfirm.ProtoReflect.Descriptor instead.
func (*CommitConfirm) ProtoMessage ¶ added in v0.11.0
func (*CommitConfirm) ProtoMessage()
func (*CommitConfirm) ProtoReflect ¶ added in v0.11.0
func (x *CommitConfirm) ProtoReflect() protoreflect.Message
func (*CommitConfirm) Reset ¶ added in v0.11.0
func (x *CommitConfirm) Reset()
func (*CommitConfirm) String ¶ added in v0.11.0
func (x *CommitConfirm) String() string
type CommitRequest ¶ added in v0.11.0
type CommitRequest struct {
RollbackDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=rollback_duration,json=rollbackDuration,proto3" json:"rollback_duration,omitempty"`
// contains filtered or unexported fields
}
func (*CommitRequest) Descriptor
deprecated
added in
v0.11.0
func (*CommitRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommitRequest.ProtoReflect.Descriptor instead.
func (*CommitRequest) GetRollbackDuration ¶ added in v0.11.0
func (x *CommitRequest) GetRollbackDuration() *durationpb.Duration
func (*CommitRequest) ProtoMessage ¶ added in v0.11.0
func (*CommitRequest) ProtoMessage()
func (*CommitRequest) ProtoReflect ¶ added in v0.11.0
func (x *CommitRequest) ProtoReflect() protoreflect.Message
func (*CommitRequest) Reset ¶ added in v0.11.0
func (x *CommitRequest) Reset()
func (*CommitRequest) String ¶ added in v0.11.0
func (x *CommitRequest) String() string
type CommitSetRollbackDuration ¶ added in v0.11.0
type CommitSetRollbackDuration struct {
RollbackDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=rollback_duration,json=rollbackDuration,proto3" json:"rollback_duration,omitempty"`
// contains filtered or unexported fields
}
func (*CommitSetRollbackDuration) Descriptor
deprecated
added in
v0.11.0
func (*CommitSetRollbackDuration) Descriptor() ([]byte, []int)
Deprecated: Use CommitSetRollbackDuration.ProtoReflect.Descriptor instead.
func (*CommitSetRollbackDuration) GetRollbackDuration ¶ added in v0.11.0
func (x *CommitSetRollbackDuration) GetRollbackDuration() *durationpb.Duration
func (*CommitSetRollbackDuration) ProtoMessage ¶ added in v0.11.0
func (*CommitSetRollbackDuration) ProtoMessage()
func (*CommitSetRollbackDuration) ProtoReflect ¶ added in v0.11.0
func (x *CommitSetRollbackDuration) ProtoReflect() protoreflect.Message
func (*CommitSetRollbackDuration) Reset ¶ added in v0.11.0
func (x *CommitSetRollbackDuration) Reset()
func (*CommitSetRollbackDuration) String ¶ added in v0.11.0
func (x *CommitSetRollbackDuration) String() string
type Commit_Cancel ¶ added in v0.11.0
type Commit_Cancel struct {
Cancel *CommitCancel `protobuf:"bytes,4,opt,name=cancel,proto3,oneof"`
}
type Commit_Commit ¶ added in v0.11.0
type Commit_Commit struct {
Commit *CommitRequest `protobuf:"bytes,2,opt,name=commit,proto3,oneof"`
}
type Commit_Confirm ¶ added in v0.11.0
type Commit_Confirm struct {
Confirm *CommitConfirm `protobuf:"bytes,3,opt,name=confirm,proto3,oneof"`
}
type Commit_SetRollbackDuration ¶ added in v0.11.0
type Commit_SetRollbackDuration struct {
SetRollbackDuration *CommitSetRollbackDuration `protobuf:"bytes,5,opt,name=set_rollback_duration,json=setRollbackDuration,proto3,oneof"`
}
type Depth ¶ added in v0.11.0
type Depth struct {
Level uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
// contains filtered or unexported fields
}
func (*Depth) Descriptor
deprecated
added in
v0.11.0
func (*Depth) ProtoMessage ¶ added in v0.11.0
func (*Depth) ProtoMessage()
func (*Depth) ProtoReflect ¶ added in v0.11.0
func (x *Depth) ProtoReflect() protoreflect.Message
type Extension ¶
type Extension struct {
// Types that are valid to be assigned to Ext:
//
// *Extension_RegisteredExt
// *Extension_MasterArbitration
// *Extension_History
// *Extension_Commit
// *Extension_Depth
Ext isExtension_Ext `protobuf_oneof:"ext"`
// contains filtered or unexported fields
}
func (*Extension) Descriptor
deprecated
func (*Extension) GetHistory ¶
func (*Extension) GetMasterArbitration ¶
func (x *Extension) GetMasterArbitration() *MasterArbitration
func (*Extension) GetRegisteredExt ¶
func (x *Extension) GetRegisteredExt() *RegisteredExtension
func (*Extension) ProtoMessage ¶
func (*Extension) ProtoMessage()
func (*Extension) ProtoReflect ¶
func (x *Extension) ProtoReflect() protoreflect.Message
type ExtensionID ¶
type ExtensionID int32
const ( ExtensionID_EID_UNSET ExtensionID = 0 ExtensionID_EID_EXPERIMENTAL ExtensionID = 999 )
func (ExtensionID) Descriptor ¶
func (ExtensionID) Descriptor() protoreflect.EnumDescriptor
func (ExtensionID) Enum ¶
func (x ExtensionID) Enum() *ExtensionID
func (ExtensionID) EnumDescriptor
deprecated
func (ExtensionID) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExtensionID.Descriptor instead.
func (ExtensionID) Number ¶
func (x ExtensionID) Number() protoreflect.EnumNumber
func (ExtensionID) String ¶
func (x ExtensionID) String() string
func (ExtensionID) Type ¶
func (ExtensionID) Type() protoreflect.EnumType
type Extension_Commit ¶ added in v0.11.0
type Extension_Commit struct {
Commit *Commit `protobuf:"bytes,4,opt,name=commit,proto3,oneof"`
}
type Extension_Depth ¶ added in v0.11.0
type Extension_Depth struct {
Depth *Depth `protobuf:"bytes,5,opt,name=depth,proto3,oneof"`
}
type Extension_History ¶
type Extension_History struct {
History *History `protobuf:"bytes,3,opt,name=history,proto3,oneof"`
}
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 History ¶
type History struct {
// Types that are valid to be assigned to Request:
//
// *History_SnapshotTime
// *History_Range
Request isHistory_Request `protobuf_oneof:"request"`
// contains filtered or unexported fields
}
func (*History) Descriptor
deprecated
func (*History) GetRequest ¶
func (x *History) GetRequest() isHistory_Request
func (*History) GetSnapshotTime ¶
func (*History) ProtoMessage ¶
func (*History) ProtoMessage()
func (*History) ProtoReflect ¶
func (x *History) ProtoReflect() protoreflect.Message
type History_Range ¶
type History_Range struct {
Range *TimeRange `protobuf:"bytes,2,opt,name=range,proto3,oneof"`
}
type History_SnapshotTime ¶
type History_SnapshotTime struct {
SnapshotTime int64 `protobuf:"varint,1,opt,name=snapshot_time,json=snapshotTime,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"`
// contains filtered or unexported fields
}
func (*MasterArbitration) Descriptor
deprecated
func (*MasterArbitration) Descriptor() ([]byte, []int)
Deprecated: Use MasterArbitration.ProtoReflect.Descriptor instead.
func (*MasterArbitration) GetElectionId ¶
func (x *MasterArbitration) GetElectionId() *Uint128
func (*MasterArbitration) GetRole ¶
func (x *MasterArbitration) GetRole() *Role
func (*MasterArbitration) ProtoMessage ¶
func (*MasterArbitration) ProtoMessage()
func (*MasterArbitration) ProtoReflect ¶
func (x *MasterArbitration) ProtoReflect() protoreflect.Message
func (*MasterArbitration) Reset ¶
func (x *MasterArbitration) Reset()
func (*MasterArbitration) String ¶
func (x *MasterArbitration) String() string
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"`
// contains filtered or unexported fields
}
func (*RegisteredExtension) Descriptor
deprecated
func (*RegisteredExtension) Descriptor() ([]byte, []int)
Deprecated: Use RegisteredExtension.ProtoReflect.Descriptor instead.
func (*RegisteredExtension) GetId ¶
func (x *RegisteredExtension) GetId() ExtensionID
func (*RegisteredExtension) GetMsg ¶
func (x *RegisteredExtension) GetMsg() []byte
func (*RegisteredExtension) ProtoMessage ¶
func (*RegisteredExtension) ProtoMessage()
func (*RegisteredExtension) ProtoReflect ¶
func (x *RegisteredExtension) ProtoReflect() protoreflect.Message
func (*RegisteredExtension) Reset ¶
func (x *RegisteredExtension) Reset()
func (*RegisteredExtension) String ¶
func (x *RegisteredExtension) String() string
type Role ¶
type Role struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Role) Descriptor
deprecated
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type TimeRange ¶
type TimeRange struct {
Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
// contains filtered or unexported fields
}
func (*TimeRange) Descriptor
deprecated
func (*TimeRange) ProtoMessage ¶
func (*TimeRange) ProtoMessage()
func (*TimeRange) ProtoReflect ¶
func (x *TimeRange) ProtoReflect() protoreflect.Message
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"`
// contains filtered or unexported fields
}
func (*Uint128) Descriptor
deprecated
func (*Uint128) ProtoMessage ¶
func (*Uint128) ProtoMessage()
func (*Uint128) ProtoReflect ¶
func (x *Uint128) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.