configpb

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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)

View Source
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.

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

Deprecated: Use Decimal64.ProtoReflect.Descriptor instead.

func (*Decimal64) GetDigits added in v0.1.27

func (x *Decimal64) GetDigits() int64

func (*Decimal64) GetPrecision added in v0.1.27

func (x *Decimal64) GetPrecision() uint32

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

func (*Decimal64) Reset added in v0.1.27

func (x *Decimal64) Reset()

func (*Decimal64) String added in v0.1.27

func (x *Decimal64) String() string

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

Deprecated: Use Deviation.ProtoReflect.Descriptor instead.

func (*Deviation) GetOldValue added in v0.1.26

func (x *Deviation) GetOldValue() []byte

func (*Deviation) GetOperation added in v0.1.26

func (x *Deviation) GetOperation() Deviation_Operation

func (*Deviation) GetPath added in v0.1.19

func (x *Deviation) GetPath() *Path

func (*Deviation) GetValue added in v0.1.19

func (x *Deviation) GetValue() []byte

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

func (*Deviation) Reset added in v0.1.19

func (x *Deviation) Reset()

func (*Deviation) String added in v0.1.19

func (x *Deviation) String() string

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) Enum added in v0.1.26

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 (Deviation_Operation) String added in v0.1.26

func (x Deviation_Operation) String() string

func (Deviation_Operation) Type added in v0.1.26

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

Deprecated: Use Path.ProtoReflect.Descriptor instead.

func (*Path) GetElem added in v0.1.19

func (x *Path) GetElem() []*PathElem

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

func (*Path) Reset added in v0.1.19

func (x *Path) Reset()

func (*Path) String added in v0.1.19

func (x *Path) String() string

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

Deprecated: Use PathElem.ProtoReflect.Descriptor instead.

func (*PathElem) GetKey added in v0.1.19

func (x *PathElem) GetKey() map[string]string

func (*PathElem) GetName added in v0.1.19

func (x *PathElem) GetName() string

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

func (*PathElem) Reset added in v0.1.19

func (x *PathElem) Reset()

func (*PathElem) String added in v0.1.19

func (x *PathElem) String() string

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

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetTimestamp added in v0.1.30

func (x *Reply) GetTimestamp() int64

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

func (*Reply) Reset added in v0.1.19

func (x *Reply) Reset()

func (*Reply) String added in v0.1.19

func (x *Reply) String() string

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetData added in v0.1.19

func (x *Request) GetData() []byte

func (*Request) GetLevel added in v0.1.19

func (x *Request) GetLevel() int32

func (*Request) GetName added in v0.1.19

func (x *Request) GetName() string

func (*Request) GetPath added in v0.1.19

func (x *Request) GetPath() *Path

func (*Request) GetTimestamp added in v0.1.30

func (x *Request) GetTimestamp() int64

func (*Request) GetUpdate added in v0.1.30

func (x *Request) GetUpdate() []*Update

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

func (*Request) Reset added in v0.1.19

func (x *Request) Reset()

func (*Request) String added in v0.1.19

func (x *Request) String() string

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetData added in v0.1.19

func (x *Status) GetData() []byte

func (*Status) GetDeviation added in v0.1.19

func (x *Status) GetDeviation() []*Deviation

func (*Status) GetExists added in v0.1.19

func (x *Status) GetExists() bool

func (*Status) GetLevel added in v0.1.19

func (x *Status) GetLevel() int32

func (*Status) GetName added in v0.1.19

func (x *Status) GetName() string

func (*Status) GetPath added in v0.1.19

func (x *Status) GetPath() *Path

func (*Status) GetStatus added in v0.1.19

func (x *Status) GetStatus() Status_ResourceStatus

func (*Status) GetTimestamp added in v0.1.30

func (x *Status) GetTimestamp() int64

func (*Status) GetUpdate added in v0.1.33

func (x *Status) GetUpdate() []*Update

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

func (*Status) Reset added in v0.1.19

func (x *Status) Reset()

func (*Status) String added in v0.1.19

func (x *Status) String() string

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) Enum added in v0.1.19

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 (Status_ResourceStatus) String added in v0.1.19

func (x Status_ResourceStatus) String() string

func (Status_ResourceStatus) Type added in v0.1.19

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_AnyVal struct {
	AnyVal *anypb.Any `protobuf:"bytes,9,opt,name=any_val,json=anyVal,proto3,oneof"` // protobuf.Any encoded bytes.
}

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) Create

func (UnimplementedConfigurationServer) Delete

func (UnimplementedConfigurationServer) Get

func (UnimplementedConfigurationServer) GetConfig added in v0.1.19

func (UnimplementedConfigurationServer) GetResourceName added in v0.1.19

func (UnimplementedConfigurationServer) Update

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

Deprecated: Use Update.ProtoReflect.Descriptor instead.

func (*Update) GetPath added in v0.1.27

func (x *Update) GetPath() *Path

func (*Update) GetVal added in v0.1.27

func (x *Update) GetVal() *TypedValue

func (*Update) GetValue added in v0.1.28

func (x *Update) GetValue() []byte

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

func (*Update) Reset added in v0.1.27

func (x *Update) Reset()

func (*Update) String added in v0.1.27

func (x *Update) String() string

Jump to

Keyboard shortcuts

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