Documentation ¶
Index ¶
- Variables
- func RegisterConfigurationServer(s grpc.ServiceRegistrar, srv ConfigurationServer)
- type ConfigReply
- func (*ConfigReply) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigReply) GetData() []byte
- func (x *ConfigReply) GetTimestamp() int64
- func (*ConfigReply) ProtoMessage()
- func (x *ConfigReply) ProtoReflect() protoreflect.Message
- func (x *ConfigReply) Reset()
- func (x *ConfigReply) String() string
- type ConfigRequest
- type ConfigurationClient
- type ConfigurationServer
- type Decimal64
- type Deviation
- func (*Deviation) Descriptor() ([]byte, []int)deprecated
- func (x *Deviation) GetOldValue() []byte
- func (x *Deviation) GetOperation() Deviation_Operation
- func (x *Deviation) GetPath() *Path
- func (x *Deviation) GetValue() []byte
- func (*Deviation) ProtoMessage()
- func (x *Deviation) ProtoReflect() protoreflect.Message
- func (x *Deviation) Reset()
- func (x *Deviation) String() string
- type Deviation_Operation
- func (Deviation_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x Deviation_Operation) Enum() *Deviation_Operation
- func (Deviation_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x Deviation_Operation) Number() protoreflect.EnumNumber
- func (x Deviation_Operation) String() string
- func (Deviation_Operation) Type() protoreflect.EnumType
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (x *Notification) GetAtomic() bool
- func (x *Notification) GetDelete() []*Path
- func (x *Notification) GetLevel() int32
- func (x *Notification) GetName() string
- func (x *Notification) GetTimestamp() int64
- func (x *Notification) GetUpdate() []*Update
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (x *Notification) String() string
- type Path
- type PathElem
- type Reply
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetData() []byte
- func (x *Request) GetLevel() int32
- func (x *Request) GetName() string
- func (x *Request) GetPath() *Path
- func (x *Request) GetTimestamp() int64
- func (x *Request) GetUpdate() []*Update
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type ResourceKey
- func (*ResourceKey) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceKey) GetLevel() int32
- func (x *ResourceKey) GetName() string
- func (x *ResourceKey) GetPath() *Path
- func (x *ResourceKey) GetTimestamp() int64
- func (*ResourceKey) ProtoMessage()
- func (x *ResourceKey) ProtoReflect() protoreflect.Message
- func (x *ResourceKey) Reset()
- func (x *ResourceKey) String() string
- type ResourceReply
- func (*ResourceReply) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceReply) GetName() string
- func (x *ResourceReply) GetTimestamp() int64
- func (*ResourceReply) ProtoMessage()
- func (x *ResourceReply) ProtoReflect() protoreflect.Message
- func (x *ResourceReply) Reset()
- func (x *ResourceReply) String() string
- type ResourceRequest
- func (*ResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceRequest) GetPath() *Path
- func (x *ResourceRequest) GetTimestamp() int64
- func (*ResourceRequest) ProtoMessage()
- func (x *ResourceRequest) ProtoReflect() protoreflect.Message
- func (x *ResourceRequest) Reset()
- func (x *ResourceRequest) String() string
- type ScalarArray
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetData() []byte
- func (x *Status) GetDeviation() []*Deviation
- func (x *Status) GetExists() bool
- func (x *Status) GetLevel() int32
- func (x *Status) GetName() string
- func (x *Status) GetPath() *Path
- func (x *Status) GetStatus() Status_ResourceStatus
- func (x *Status) GetTimestamp() int64
- func (x *Status) GetUpdate() []*Update
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
- type Status_ResourceStatus
- func (Status_ResourceStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Status_ResourceStatus) Enum() *Status_ResourceStatus
- func (Status_ResourceStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Status_ResourceStatus) Number() protoreflect.EnumNumber
- func (x Status_ResourceStatus) String() string
- func (Status_ResourceStatus) Type() protoreflect.EnumType
- type TypedValue
- func (*TypedValue) Descriptor() ([]byte, []int)deprecated
- func (x *TypedValue) GetAnyVal() *anypb.Any
- func (x *TypedValue) GetAsciiVal() string
- func (x *TypedValue) GetBoolVal() bool
- func (x *TypedValue) GetBytesVal() []byte
- func (x *TypedValue) GetDecimalVal() *Decimal64
- func (x *TypedValue) GetFloatVal() float32
- func (x *TypedValue) GetIntVal() int64
- func (x *TypedValue) GetJsonIetfVal() []byte
- func (x *TypedValue) GetJsonVal() []byte
- func (x *TypedValue) GetLeaflistVal() *ScalarArray
- func (x *TypedValue) GetProtoBytes() []byte
- func (x *TypedValue) GetStringVal() string
- func (x *TypedValue) GetUintVal() uint64
- func (m *TypedValue) GetValue() isTypedValue_Value
- func (*TypedValue) ProtoMessage()
- func (x *TypedValue) ProtoReflect() protoreflect.Message
- func (x *TypedValue) Reset()
- func (x *TypedValue) String() string
- type TypedValue_AnyVal
- type TypedValue_AsciiVal
- type TypedValue_BoolVal
- type TypedValue_BytesVal
- type TypedValue_DecimalVal
- type TypedValue_FloatVal
- type TypedValue_IntVal
- type TypedValue_JsonIetfVal
- type TypedValue_JsonVal
- type TypedValue_LeaflistVal
- type TypedValue_ProtoBytes
- type TypedValue_StringVal
- type TypedValue_UintVal
- type UnimplementedConfigurationServer
- func (UnimplementedConfigurationServer) Create(context.Context, *Request) (*Reply, error)
- func (UnimplementedConfigurationServer) Delete(context.Context, *ResourceKey) (*Reply, error)
- func (UnimplementedConfigurationServer) Get(context.Context, *ResourceKey) (*Status, error)
- func (UnimplementedConfigurationServer) GetConfig(context.Context, *ConfigRequest) (*ConfigReply, error)
- func (UnimplementedConfigurationServer) GetResourceName(context.Context, *ResourceRequest) (*ResourceReply, error)
- func (UnimplementedConfigurationServer) Update(context.Context, *Notification) (*Reply, error)
- type UnsafeConfigurationServer
- type Update
- func (*Update) Descriptor() ([]byte, []int)deprecated
- func (x *Update) GetPath() *Path
- func (x *Update) GetVal() *TypedValue
- func (x *Update) GetValue() []byte
- func (*Update) ProtoMessage()
- func (x *Update) ProtoReflect() protoreflect.Message
- func (x *Update) Reset()
- func (x *Update) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Status_ResourceStatus_name = map[int32]string{ 0: "None", 1: "Success", 2: "Failed", 3: "CreatePending", 4: "UpdatePending", 5: "DeletePending", } Status_ResourceStatus_value = map[string]int32{ "None": 0, "Success": 1, "Failed": 2, "CreatePending": 3, "UpdatePending": 4, "DeletePending": 5, } )
Enum value maps for Status_ResourceStatus.
var ( Deviation_Operation_name = map[int32]string{ 0: "Delete", 1: "Add", 2: "Replace", } Deviation_Operation_value = map[string]int32{ "Delete": 0, "Add": 1, "Replace": 2, } )
Enum value maps for Deviation_Operation.
var Configuration_ServiceDesc = grpc.ServiceDesc{ ServiceName: "config.Configuration", HandlerType: (*ConfigurationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _Configuration_Create_Handler, }, { MethodName: "Get", Handler: _Configuration_Get_Handler, }, { MethodName: "Update", Handler: _Configuration_Update_Handler, }, { MethodName: "Delete", Handler: _Configuration_Delete_Handler, }, { MethodName: "GetConfig", Handler: _Configuration_GetConfig_Handler, }, { MethodName: "GetResourceName", Handler: _Configuration_GetResourceName_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "config/configpb/config.proto", }
Configuration_ServiceDesc is the grpc.ServiceDesc for Configuration service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_config_configpb_config_proto protoreflect.FileDescriptor
Functions ¶
func RegisterConfigurationServer ¶
func RegisterConfigurationServer(s grpc.ServiceRegistrar, srv ConfigurationServer)
Types ¶
type ConfigReply ¶ added in v0.1.19
type ConfigReply struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ConfigReply) Descriptor
deprecated
added in
v0.1.19
func (*ConfigReply) Descriptor() ([]byte, []int)
Deprecated: Use ConfigReply.ProtoReflect.Descriptor instead.
func (*ConfigReply) GetData ¶ added in v0.1.19
func (x *ConfigReply) GetData() []byte
func (*ConfigReply) GetTimestamp ¶ added in v0.1.30
func (x *ConfigReply) GetTimestamp() int64
func (*ConfigReply) ProtoMessage ¶ added in v0.1.19
func (*ConfigReply) ProtoMessage()
func (*ConfigReply) ProtoReflect ¶ added in v0.1.19
func (x *ConfigReply) ProtoReflect() protoreflect.Message
func (*ConfigReply) Reset ¶ added in v0.1.19
func (x *ConfigReply) Reset()
func (*ConfigReply) String ¶ added in v0.1.19
func (x *ConfigReply) String() string
type ConfigRequest ¶ added in v0.1.19
type ConfigRequest struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. // contains filtered or unexported fields }
func (*ConfigRequest) Descriptor
deprecated
added in
v0.1.19
func (*ConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest.ProtoReflect.Descriptor instead.
func (*ConfigRequest) GetTimestamp ¶ added in v0.1.30
func (x *ConfigRequest) GetTimestamp() int64
func (*ConfigRequest) ProtoMessage ¶ added in v0.1.19
func (*ConfigRequest) ProtoMessage()
func (*ConfigRequest) ProtoReflect ¶ added in v0.1.19
func (x *ConfigRequest) ProtoReflect() protoreflect.Message
func (*ConfigRequest) Reset ¶ added in v0.1.19
func (x *ConfigRequest) Reset()
func (*ConfigRequest) String ¶ added in v0.1.19
func (x *ConfigRequest) String() string
type ConfigurationClient ¶
type ConfigurationClient interface { Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error) Get(ctx context.Context, in *ResourceKey, opts ...grpc.CallOption) (*Status, error) Update(ctx context.Context, in *Notification, opts ...grpc.CallOption) (*Reply, error) Delete(ctx context.Context, in *ResourceKey, opts ...grpc.CallOption) (*Reply, error) GetConfig(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (*ConfigReply, error) GetResourceName(ctx context.Context, in *ResourceRequest, opts ...grpc.CallOption) (*ResourceReply, error) }
ConfigurationClient is the client API for Configuration service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewConfigurationClient ¶
func NewConfigurationClient(cc grpc.ClientConnInterface) ConfigurationClient
type ConfigurationServer ¶
type ConfigurationServer interface { Create(context.Context, *Request) (*Reply, error) Get(context.Context, *ResourceKey) (*Status, error) Update(context.Context, *Notification) (*Reply, error) Delete(context.Context, *ResourceKey) (*Reply, error) GetConfig(context.Context, *ConfigRequest) (*ConfigReply, error) GetResourceName(context.Context, *ResourceRequest) (*ResourceReply, error) // contains filtered or unexported methods }
ConfigurationServer is the server API for Configuration service. All implementations must embed UnimplementedConfigurationServer for forward compatibility
type Decimal64 ¶ added in v0.1.27
type Decimal64 struct { Digits int64 `protobuf:"varint,1,opt,name=digits,proto3" json:"digits,omitempty"` // Set of digits. Precision uint32 `protobuf:"varint,2,opt,name=precision,proto3" json:"precision,omitempty"` // Number of digits following the decimal point. // contains filtered or unexported fields }
Decimal64 is used to encode a fixed precision decimal number. The value is expressed as a set of digits with the precision specifying the number of digits following the decimal point in the digit set.
func (*Decimal64) Descriptor
deprecated
added in
v0.1.27
func (*Decimal64) GetPrecision ¶ added in v0.1.27
func (*Decimal64) ProtoMessage ¶ added in v0.1.27
func (*Decimal64) ProtoMessage()
func (*Decimal64) ProtoReflect ¶ added in v0.1.27
func (x *Decimal64) ProtoReflect() protoreflect.Message
type Deviation ¶ added in v0.1.19
type Deviation struct { Operation Deviation_Operation `protobuf:"varint,4,opt,name=operation,proto3,enum=config.Deviation_Operation" json:"operation,omitempty"` Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` OldValue []byte `protobuf:"bytes,3,opt,name=oldValue,proto3" json:"oldValue,omitempty"` // contains filtered or unexported fields }
func (*Deviation) Descriptor
deprecated
added in
v0.1.19
func (*Deviation) GetOldValue ¶ added in v0.1.26
func (*Deviation) GetOperation ¶ added in v0.1.26
func (x *Deviation) GetOperation() Deviation_Operation
func (*Deviation) ProtoMessage ¶ added in v0.1.19
func (*Deviation) ProtoMessage()
func (*Deviation) ProtoReflect ¶ added in v0.1.19
func (x *Deviation) ProtoReflect() protoreflect.Message
type Deviation_Operation ¶ added in v0.1.26
type Deviation_Operation int32
const ( Deviation_Delete Deviation_Operation = 0 Deviation_Add Deviation_Operation = 1 Deviation_Replace Deviation_Operation = 2 )
func (Deviation_Operation) Descriptor ¶ added in v0.1.26
func (Deviation_Operation) Descriptor() protoreflect.EnumDescriptor
func (Deviation_Operation) Enum ¶ added in v0.1.26
func (x Deviation_Operation) Enum() *Deviation_Operation
func (Deviation_Operation) EnumDescriptor
deprecated
added in
v0.1.26
func (Deviation_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use Deviation_Operation.Descriptor instead.
func (Deviation_Operation) Number ¶ added in v0.1.26
func (x Deviation_Operation) Number() protoreflect.EnumNumber
func (Deviation_Operation) String ¶ added in v0.1.26
func (x Deviation_Operation) String() string
func (Deviation_Operation) Type ¶ added in v0.1.26
func (Deviation_Operation) Type() protoreflect.EnumType
type Notification ¶ added in v0.1.27
type Notification struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // the name of the resource this notifcation applies to Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"` // the level of the resource this notification applies to Update []*Update `protobuf:"bytes,4,rep,name=update,proto3" json:"update,omitempty"` // Data elements that have changed values. Delete []*Path `protobuf:"bytes,5,rep,name=delete,proto3" json:"delete,omitempty"` // Data elements that have been deleted. // This notification contains a set of paths that are always updated together // referenced by a globally unique prefix. Atomic bool `protobuf:"varint,6,opt,name=atomic,proto3" json:"atomic,omitempty"` // contains filtered or unexported fields }
func (*Notification) Descriptor
deprecated
added in
v0.1.27
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) GetAtomic ¶ added in v0.1.27
func (x *Notification) GetAtomic() bool
func (*Notification) GetDelete ¶ added in v0.1.27
func (x *Notification) GetDelete() []*Path
func (*Notification) GetLevel ¶ added in v0.1.27
func (x *Notification) GetLevel() int32
func (*Notification) GetName ¶ added in v0.1.27
func (x *Notification) GetName() string
func (*Notification) GetTimestamp ¶ added in v0.1.27
func (x *Notification) GetTimestamp() int64
func (*Notification) GetUpdate ¶ added in v0.1.27
func (x *Notification) GetUpdate() []*Update
func (*Notification) ProtoMessage ¶ added in v0.1.27
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶ added in v0.1.27
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶ added in v0.1.27
func (x *Notification) Reset()
func (*Notification) String ¶ added in v0.1.27
func (x *Notification) String() string
type Path ¶ added in v0.1.19
type Path struct { Elem []*PathElem `protobuf:"bytes,3,rep,name=elem,proto3" json:"elem,omitempty"` // Elements of the path. // contains filtered or unexported fields }
Path encodes a data tree path as a series of repeated strings, with each element of the path representing a data tree node name and the associated attributes. Reference: gNMI Specification Section 2.2.2.
func (*Path) Descriptor
deprecated
added in
v0.1.19
func (*Path) ProtoMessage ¶ added in v0.1.19
func (*Path) ProtoMessage()
func (*Path) ProtoReflect ¶ added in v0.1.19
func (x *Path) ProtoReflect() protoreflect.Message
type PathElem ¶ added in v0.1.19
type PathElem struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The name of the element in the path. Key map[string]string `` // Map of key (attribute) name to value. /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
PathElem encodes an element of a path, along with any attributes (keys) that may be associated with it.
func (*PathElem) Descriptor
deprecated
added in
v0.1.19
func (*PathElem) ProtoMessage ¶ added in v0.1.19
func (*PathElem) ProtoMessage()
func (*PathElem) ProtoReflect ¶ added in v0.1.19
func (x *PathElem) ProtoReflect() protoreflect.Message
type Reply ¶ added in v0.1.19
type Reply struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
added in
v0.1.19
func (*Reply) GetTimestamp ¶ added in v0.1.30
func (*Reply) ProtoMessage ¶ added in v0.1.19
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶ added in v0.1.19
func (x *Reply) ProtoReflect() protoreflect.Message
type Request ¶ added in v0.1.19
type Request struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // resourcename Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"` // level of the path Path *Path `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` // path of the resource Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // full data object of the resource Update []*Update `protobuf:"bytes,6,rep,name=update,proto3" json:"update,omitempty"` // Fine granular updates of the resource. // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
added in
v0.1.19
func (*Request) GetTimestamp ¶ added in v0.1.30
func (*Request) ProtoMessage ¶ added in v0.1.19
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶ added in v0.1.19
func (x *Request) ProtoReflect() protoreflect.Message
type ResourceKey ¶ added in v0.1.19
type ResourceKey struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"` Path *Path `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` //used only in Get to find the data in the cache when a MR is created but the resource already exists // contains filtered or unexported fields }
func (*ResourceKey) Descriptor
deprecated
added in
v0.1.19
func (*ResourceKey) Descriptor() ([]byte, []int)
Deprecated: Use ResourceKey.ProtoReflect.Descriptor instead.
func (*ResourceKey) GetLevel ¶ added in v0.1.19
func (x *ResourceKey) GetLevel() int32
func (*ResourceKey) GetName ¶ added in v0.1.19
func (x *ResourceKey) GetName() string
func (*ResourceKey) GetPath ¶ added in v0.1.29
func (x *ResourceKey) GetPath() *Path
func (*ResourceKey) GetTimestamp ¶ added in v0.1.31
func (x *ResourceKey) GetTimestamp() int64
func (*ResourceKey) ProtoMessage ¶ added in v0.1.19
func (*ResourceKey) ProtoMessage()
func (*ResourceKey) ProtoReflect ¶ added in v0.1.19
func (x *ResourceKey) ProtoReflect() protoreflect.Message
func (*ResourceKey) Reset ¶ added in v0.1.19
func (x *ResourceKey) Reset()
func (*ResourceKey) String ¶ added in v0.1.19
func (x *ResourceKey) String() string
type ResourceReply ¶ added in v0.1.19
type ResourceReply struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // resourcename // contains filtered or unexported fields }
func (*ResourceReply) Descriptor
deprecated
added in
v0.1.19
func (*ResourceReply) Descriptor() ([]byte, []int)
Deprecated: Use ResourceReply.ProtoReflect.Descriptor instead.
func (*ResourceReply) GetName ¶ added in v0.1.19
func (x *ResourceReply) GetName() string
func (*ResourceReply) GetTimestamp ¶ added in v0.1.30
func (x *ResourceReply) GetTimestamp() int64
func (*ResourceReply) ProtoMessage ¶ added in v0.1.19
func (*ResourceReply) ProtoMessage()
func (*ResourceReply) ProtoReflect ¶ added in v0.1.19
func (x *ResourceReply) ProtoReflect() protoreflect.Message
func (*ResourceReply) Reset ¶ added in v0.1.19
func (x *ResourceReply) Reset()
func (*ResourceReply) String ¶ added in v0.1.19
func (x *ResourceReply) String() string
type ResourceRequest ¶ added in v0.1.19
type ResourceRequest struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. Path *Path `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // path of the resource // contains filtered or unexported fields }
func (*ResourceRequest) Descriptor
deprecated
added in
v0.1.19
func (*ResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResourceRequest.ProtoReflect.Descriptor instead.
func (*ResourceRequest) GetPath ¶ added in v0.1.19
func (x *ResourceRequest) GetPath() *Path
func (*ResourceRequest) GetTimestamp ¶ added in v0.1.30
func (x *ResourceRequest) GetTimestamp() int64
func (*ResourceRequest) ProtoMessage ¶ added in v0.1.19
func (*ResourceRequest) ProtoMessage()
func (*ResourceRequest) ProtoReflect ¶ added in v0.1.19
func (x *ResourceRequest) ProtoReflect() protoreflect.Message
func (*ResourceRequest) Reset ¶ added in v0.1.19
func (x *ResourceRequest) Reset()
func (*ResourceRequest) String ¶ added in v0.1.19
func (x *ResourceRequest) String() string
type ScalarArray ¶ added in v0.1.27
type ScalarArray struct { // The set of elements within the array. Each TypedValue message should // specify only elements that have a field identifier of 1-7 (i.e., the // values are scalar values). Element []*TypedValue `protobuf:"bytes,1,rep,name=element,proto3" json:"element,omitempty"` // contains filtered or unexported fields }
ScalarArray is used to encode a mixed-type array of values.
func (*ScalarArray) Descriptor
deprecated
added in
v0.1.27
func (*ScalarArray) Descriptor() ([]byte, []int)
Deprecated: Use ScalarArray.ProtoReflect.Descriptor instead.
func (*ScalarArray) GetElement ¶ added in v0.1.27
func (x *ScalarArray) GetElement() []*TypedValue
func (*ScalarArray) ProtoMessage ¶ added in v0.1.27
func (*ScalarArray) ProtoMessage()
func (*ScalarArray) ProtoReflect ¶ added in v0.1.27
func (x *ScalarArray) ProtoReflect() protoreflect.Message
func (*ScalarArray) Reset ¶ added in v0.1.27
func (x *ScalarArray) Reset()
func (*ScalarArray) String ¶ added in v0.1.27
func (x *ScalarArray) String() string
type Status ¶ added in v0.1.19
type Status struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"` Path *Path `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` Update []*Update `protobuf:"bytes,6,rep,name=update,proto3" json:"update,omitempty"` // Fine granular updates of the resource. Status Status_ResourceStatus `protobuf:"varint,7,opt,name=status,proto3,enum=config.Status_ResourceStatus" json:"status,omitempty"` Deviation []*Deviation `protobuf:"bytes,8,rep,name=deviation,proto3" json:"deviation,omitempty"` Exists bool `protobuf:"varint,9,opt,name=exists,proto3" json:"exists,omitempty"` // contains filtered or unexported fields }
func (*Status) Descriptor
deprecated
added in
v0.1.19
func (*Status) GetDeviation ¶ added in v0.1.19
func (*Status) GetStatus ¶ added in v0.1.19
func (x *Status) GetStatus() Status_ResourceStatus
func (*Status) GetTimestamp ¶ added in v0.1.30
func (*Status) ProtoMessage ¶ added in v0.1.19
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶ added in v0.1.19
func (x *Status) ProtoReflect() protoreflect.Message
type Status_ResourceStatus ¶ added in v0.1.19
type Status_ResourceStatus int32
const ( Status_None Status_ResourceStatus = 0 Status_Success Status_ResourceStatus = 1 Status_Failed Status_ResourceStatus = 2 Status_CreatePending Status_ResourceStatus = 3 Status_UpdatePending Status_ResourceStatus = 4 Status_DeletePending Status_ResourceStatus = 5 )
func (Status_ResourceStatus) Descriptor ¶ added in v0.1.19
func (Status_ResourceStatus) Descriptor() protoreflect.EnumDescriptor
func (Status_ResourceStatus) Enum ¶ added in v0.1.19
func (x Status_ResourceStatus) Enum() *Status_ResourceStatus
func (Status_ResourceStatus) EnumDescriptor
deprecated
added in
v0.1.19
func (Status_ResourceStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Status_ResourceStatus.Descriptor instead.
func (Status_ResourceStatus) Number ¶ added in v0.1.19
func (x Status_ResourceStatus) Number() protoreflect.EnumNumber
func (Status_ResourceStatus) String ¶ added in v0.1.19
func (x Status_ResourceStatus) String() string
func (Status_ResourceStatus) Type ¶ added in v0.1.19
func (Status_ResourceStatus) Type() protoreflect.EnumType
type TypedValue ¶ added in v0.1.27
type TypedValue struct { // One of the fields within the val oneof is populated with the value // of the update. The type of the value being included in the Update // determines which field should be populated. In the case that the // encoding is a particular form of the base protobuf type, a specific // field is used to store the value (e.g., json_val). // // Types that are assignable to Value: // *TypedValue_StringVal // *TypedValue_IntVal // *TypedValue_UintVal // *TypedValue_BoolVal // *TypedValue_BytesVal // *TypedValue_FloatVal // *TypedValue_DecimalVal // *TypedValue_LeaflistVal // *TypedValue_AnyVal // *TypedValue_JsonVal // *TypedValue_JsonIetfVal // *TypedValue_AsciiVal // *TypedValue_ProtoBytes Value isTypedValue_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
TypedValue is used to encode a value being sent between the client and target (originated by either entity).
func (*TypedValue) Descriptor
deprecated
added in
v0.1.27
func (*TypedValue) Descriptor() ([]byte, []int)
Deprecated: Use TypedValue.ProtoReflect.Descriptor instead.
func (*TypedValue) GetAnyVal ¶ added in v0.1.27
func (x *TypedValue) GetAnyVal() *anypb.Any
func (*TypedValue) GetAsciiVal ¶ added in v0.1.27
func (x *TypedValue) GetAsciiVal() string
func (*TypedValue) GetBoolVal ¶ added in v0.1.27
func (x *TypedValue) GetBoolVal() bool
func (*TypedValue) GetBytesVal ¶ added in v0.1.27
func (x *TypedValue) GetBytesVal() []byte
func (*TypedValue) GetDecimalVal ¶ added in v0.1.27
func (x *TypedValue) GetDecimalVal() *Decimal64
func (*TypedValue) GetFloatVal ¶ added in v0.1.27
func (x *TypedValue) GetFloatVal() float32
func (*TypedValue) GetIntVal ¶ added in v0.1.27
func (x *TypedValue) GetIntVal() int64
func (*TypedValue) GetJsonIetfVal ¶ added in v0.1.27
func (x *TypedValue) GetJsonIetfVal() []byte
func (*TypedValue) GetJsonVal ¶ added in v0.1.27
func (x *TypedValue) GetJsonVal() []byte
func (*TypedValue) GetLeaflistVal ¶ added in v0.1.27
func (x *TypedValue) GetLeaflistVal() *ScalarArray
func (*TypedValue) GetProtoBytes ¶ added in v0.1.27
func (x *TypedValue) GetProtoBytes() []byte
func (*TypedValue) GetStringVal ¶ added in v0.1.27
func (x *TypedValue) GetStringVal() string
func (*TypedValue) GetUintVal ¶ added in v0.1.27
func (x *TypedValue) GetUintVal() uint64
func (*TypedValue) GetValue ¶ added in v0.1.27
func (m *TypedValue) GetValue() isTypedValue_Value
func (*TypedValue) ProtoMessage ¶ added in v0.1.27
func (*TypedValue) ProtoMessage()
func (*TypedValue) ProtoReflect ¶ added in v0.1.27
func (x *TypedValue) ProtoReflect() protoreflect.Message
func (*TypedValue) Reset ¶ added in v0.1.27
func (x *TypedValue) Reset()
func (*TypedValue) String ¶ added in v0.1.27
func (x *TypedValue) String() string
type TypedValue_AnyVal ¶ added in v0.1.27
type TypedValue_AsciiVal ¶ added in v0.1.27
type TypedValue_AsciiVal struct {
AsciiVal string `protobuf:"bytes,12,opt,name=ascii_val,json=asciiVal,proto3,oneof"` // Arbitrary ASCII text.
}
type TypedValue_BoolVal ¶ added in v0.1.27
type TypedValue_BoolVal struct {
BoolVal bool `protobuf:"varint,4,opt,name=bool_val,json=boolVal,proto3,oneof"` // Bool value.
}
type TypedValue_BytesVal ¶ added in v0.1.27
type TypedValue_BytesVal struct {
BytesVal []byte `protobuf:"bytes,5,opt,name=bytes_val,json=bytesVal,proto3,oneof"` // Arbitrary byte sequence value.
}
type TypedValue_DecimalVal ¶ added in v0.1.27
type TypedValue_DecimalVal struct {
DecimalVal *Decimal64 `protobuf:"bytes,7,opt,name=decimal_val,json=decimalVal,proto3,oneof"` // Decimal64 encoded value.
}
type TypedValue_FloatVal ¶ added in v0.1.27
type TypedValue_FloatVal struct {
FloatVal float32 `protobuf:"fixed32,6,opt,name=float_val,json=floatVal,proto3,oneof"` // Floating point value.
}
type TypedValue_IntVal ¶ added in v0.1.27
type TypedValue_IntVal struct {
IntVal int64 `protobuf:"varint,2,opt,name=int_val,json=intVal,proto3,oneof"` // Integer value.
}
type TypedValue_JsonIetfVal ¶ added in v0.1.27
type TypedValue_JsonIetfVal struct {
JsonIetfVal []byte `protobuf:"bytes,11,opt,name=json_ietf_val,json=jsonIetfVal,proto3,oneof"` // JSON-encoded text per RFC7951.
}
type TypedValue_JsonVal ¶ added in v0.1.27
type TypedValue_JsonVal struct {
JsonVal []byte `protobuf:"bytes,10,opt,name=json_val,json=jsonVal,proto3,oneof"` // JSON-encoded text.
}
type TypedValue_LeaflistVal ¶ added in v0.1.27
type TypedValue_LeaflistVal struct {
LeaflistVal *ScalarArray `protobuf:"bytes,8,opt,name=leaflist_val,json=leaflistVal,proto3,oneof"` // Mixed type scalar array value.
}
type TypedValue_ProtoBytes ¶ added in v0.1.27
type TypedValue_ProtoBytes struct { // Protobuf binary encoded bytes. The message type is not included. // See the specification at // github.com/openconfig/reference/blob/master/rpc/gnmi/protobuf-vals.md // for a complete specification. ProtoBytes []byte `protobuf:"bytes,13,opt,name=proto_bytes,json=protoBytes,proto3,oneof"` }
type TypedValue_StringVal ¶ added in v0.1.27
type TypedValue_StringVal struct {
StringVal string `protobuf:"bytes,1,opt,name=string_val,json=stringVal,proto3,oneof"` // String value.
}
type TypedValue_UintVal ¶ added in v0.1.27
type TypedValue_UintVal struct {
UintVal uint64 `protobuf:"varint,3,opt,name=uint_val,json=uintVal,proto3,oneof"` // Unsigned integer value.
}
type UnimplementedConfigurationServer ¶
type UnimplementedConfigurationServer struct { }
UnimplementedConfigurationServer must be embedded to have forward compatible implementations.
func (UnimplementedConfigurationServer) Delete ¶
func (UnimplementedConfigurationServer) Delete(context.Context, *ResourceKey) (*Reply, error)
func (UnimplementedConfigurationServer) Get ¶
func (UnimplementedConfigurationServer) Get(context.Context, *ResourceKey) (*Status, error)
func (UnimplementedConfigurationServer) GetConfig ¶ added in v0.1.19
func (UnimplementedConfigurationServer) GetConfig(context.Context, *ConfigRequest) (*ConfigReply, error)
func (UnimplementedConfigurationServer) GetResourceName ¶ added in v0.1.19
func (UnimplementedConfigurationServer) GetResourceName(context.Context, *ResourceRequest) (*ResourceReply, error)
func (UnimplementedConfigurationServer) Update ¶
func (UnimplementedConfigurationServer) Update(context.Context, *Notification) (*Reply, error)
type UnsafeConfigurationServer ¶
type UnsafeConfigurationServer interface {
// contains filtered or unexported methods
}
UnsafeConfigurationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConfigurationServer will result in compilation errors.
type Update ¶ added in v0.1.27
type Update struct { Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // The path (key) for the update. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // The untypes value Val *TypedValue `protobuf:"bytes,3,opt,name=val,proto3" json:"val,omitempty"` // The explicitly typed update value. // contains filtered or unexported fields }
func (*Update) Descriptor
deprecated
added in
v0.1.27
func (*Update) GetVal ¶ added in v0.1.27
func (x *Update) GetVal() *TypedValue
func (*Update) ProtoMessage ¶ added in v0.1.27
func (*Update) ProtoMessage()
func (*Update) ProtoReflect ¶ added in v0.1.27
func (x *Update) ProtoReflect() protoreflect.Message