gnmi_ext

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 5 Imported by: 55

Documentation

Index

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

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetAction added in v0.11.0

func (x *Commit) GetAction() isCommit_Action

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) GetId added in v0.11.0

func (x *Commit) GetId() string

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

func (*Commit) Reset added in v0.11.0

func (x *Commit) Reset()

func (*Commit) String added in v0.11.0

func (x *Commit) String() string

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

Deprecated: Use Depth.ProtoReflect.Descriptor instead.

func (*Depth) GetLevel added in v0.11.0

func (x *Depth) GetLevel() uint32

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

func (*Depth) Reset added in v0.11.0

func (x *Depth) Reset()

func (*Depth) String added in v0.11.0

func (x *Depth) String() string

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

Deprecated: Use Extension.ProtoReflect.Descriptor instead.

func (*Extension) GetCommit added in v0.11.0

func (x *Extension) GetCommit() *Commit

func (*Extension) GetDepth added in v0.11.0

func (x *Extension) GetDepth() *Depth

func (*Extension) GetExt

func (x *Extension) GetExt() isExtension_Ext

func (*Extension) GetHistory

func (x *Extension) GetHistory() *History

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

func (*Extension) Reset

func (x *Extension) Reset()

func (*Extension) String

func (x *Extension) String() string

type ExtensionID

type ExtensionID int32
const (
	ExtensionID_EID_UNSET        ExtensionID = 0
	ExtensionID_EID_EXPERIMENTAL ExtensionID = 999
)

func (ExtensionID) Descriptor

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

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

Deprecated: Use History.ProtoReflect.Descriptor instead.

func (*History) GetRange

func (x *History) GetRange() *TimeRange

func (*History) GetRequest

func (x *History) GetRequest() isHistory_Request

func (*History) GetSnapshotTime

func (x *History) GetSnapshotTime() int64

func (*History) ProtoMessage

func (*History) ProtoMessage()

func (*History) ProtoReflect

func (x *History) ProtoReflect() protoreflect.Message

func (*History) Reset

func (x *History) Reset()

func (*History) String

func (x *History) String() string

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetId

func (x *Role) GetId() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

func (x *Role) ProtoReflect() protoreflect.Message

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

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

Deprecated: Use TimeRange.ProtoReflect.Descriptor instead.

func (*TimeRange) GetEnd

func (x *TimeRange) GetEnd() int64

func (*TimeRange) GetStart

func (x *TimeRange) GetStart() int64

func (*TimeRange) ProtoMessage

func (*TimeRange) ProtoMessage()

func (*TimeRange) ProtoReflect

func (x *TimeRange) ProtoReflect() protoreflect.Message

func (*TimeRange) Reset

func (x *TimeRange) Reset()

func (*TimeRange) String

func (x *TimeRange) String() string

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

Deprecated: Use Uint128.ProtoReflect.Descriptor instead.

func (*Uint128) GetHigh

func (x *Uint128) GetHigh() uint64

func (*Uint128) GetLow

func (x *Uint128) GetLow() uint64

func (*Uint128) ProtoMessage

func (*Uint128) ProtoMessage()

func (*Uint128) ProtoReflect

func (x *Uint128) ProtoReflect() protoreflect.Message

func (*Uint128) Reset

func (x *Uint128) Reset()

func (*Uint128) String

func (x *Uint128) String() string

Jump to

Keyboard shortcuts

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