proto

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package proto contains the Go generated files for the protocol buffer files.

Index

Constants

This section is empty.

Variables

View Source
var (
	Value_Type_name = map[int32]string{
		0: "INVALID",
		1: "UNDEFINED",
		2: "NULL",
		3: "BOOL",
		4: "INT",
		5: "FLOAT",
		6: "STRING",
		7: "LIST",
		8: "MAP",
	}
	Value_Type_value = map[string]int32{
		"INVALID":   0,
		"UNDEFINED": 1,
		"NULL":      2,
		"BOOL":      3,
		"INT":       4,
		"FLOAT":     5,
		"STRING":    6,
		"LIST":      7,
		"MAP":       8,
	}
)

Enum value maps for Value_Type.

View Source
var File_plugin_proto protoreflect.FileDescriptor

Functions

func RegisterPluginServer added in v0.4.0

func RegisterPluginServer(s *grpc.Server, srv PluginServer)

Types

type Close

type Close struct {
	// contains filtered or unexported fields
}

Close contains the structures for Close RPC calls.

func (*Close) Descriptor deprecated

func (*Close) Descriptor() ([]byte, []int)

Deprecated: Use Close.ProtoReflect.Descriptor instead.

func (*Close) ProtoMessage

func (*Close) ProtoMessage()

func (*Close) ProtoReflect added in v0.4.0

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

func (*Close) Reset

func (x *Close) Reset()

func (*Close) String

func (x *Close) String() string

type Close_Request

type Close_Request struct {
	InstanceId uint64 `protobuf:"varint,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Close_Request) Descriptor deprecated

func (*Close_Request) Descriptor() ([]byte, []int)

Deprecated: Use Close_Request.ProtoReflect.Descriptor instead.

func (*Close_Request) GetInstanceId

func (x *Close_Request) GetInstanceId() uint64

func (*Close_Request) ProtoMessage

func (*Close_Request) ProtoMessage()

func (*Close_Request) ProtoReflect added in v0.4.0

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

func (*Close_Request) Reset

func (x *Close_Request) Reset()

func (*Close_Request) String

func (x *Close_Request) String() string

type Configure

type Configure struct {
	// contains filtered or unexported fields
}

Configure are the structures for Plugin.Configure

func (*Configure) Descriptor deprecated

func (*Configure) Descriptor() ([]byte, []int)

Deprecated: Use Configure.ProtoReflect.Descriptor instead.

func (*Configure) ProtoMessage

func (*Configure) ProtoMessage()

func (*Configure) ProtoReflect added in v0.4.0

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

func (*Configure) Reset

func (x *Configure) Reset()

func (*Configure) String

func (x *Configure) String() string

type Configure_Request

type Configure_Request struct {
	Config *Value `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*Configure_Request) Descriptor deprecated

func (*Configure_Request) Descriptor() ([]byte, []int)

Deprecated: Use Configure_Request.ProtoReflect.Descriptor instead.

func (*Configure_Request) GetConfig

func (x *Configure_Request) GetConfig() *Value

func (*Configure_Request) ProtoMessage

func (*Configure_Request) ProtoMessage()

func (*Configure_Request) ProtoReflect added in v0.4.0

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

func (*Configure_Request) Reset

func (x *Configure_Request) Reset()

func (*Configure_Request) String

func (x *Configure_Request) String() string

type Configure_Response

type Configure_Response struct {
	InstanceId uint64 `protobuf:"varint,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Configure_Response) Descriptor deprecated

func (*Configure_Response) Descriptor() ([]byte, []int)

Deprecated: Use Configure_Response.ProtoReflect.Descriptor instead.

func (*Configure_Response) GetInstanceId

func (x *Configure_Response) GetInstanceId() uint64

func (*Configure_Response) ProtoMessage

func (*Configure_Response) ProtoMessage()

func (*Configure_Response) ProtoReflect added in v0.4.0

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

func (*Configure_Response) Reset

func (x *Configure_Response) Reset()

func (*Configure_Response) String

func (x *Configure_Response) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

Empty is just an empty message.

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect added in v0.4.0

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Get

type Get struct {
	// contains filtered or unexported fields
}

Get are the structures for a Plugin.Get.

func (*Get) Descriptor deprecated

func (*Get) Descriptor() ([]byte, []int)

Deprecated: Use Get.ProtoReflect.Descriptor instead.

func (*Get) ProtoMessage

func (*Get) ProtoMessage()

func (*Get) ProtoReflect added in v0.4.0

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

func (*Get) Reset

func (x *Get) Reset()

func (*Get) String

func (x *Get) String() string

type Get_MultiRequest

type Get_MultiRequest struct {
	Requests []*Get_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

MultiRequest allows multiple requests in a single Get.

func (*Get_MultiRequest) Descriptor deprecated

func (*Get_MultiRequest) Descriptor() ([]byte, []int)

Deprecated: Use Get_MultiRequest.ProtoReflect.Descriptor instead.

func (*Get_MultiRequest) GetRequests

func (x *Get_MultiRequest) GetRequests() []*Get_Request

func (*Get_MultiRequest) ProtoMessage

func (*Get_MultiRequest) ProtoMessage()

func (*Get_MultiRequest) ProtoReflect added in v0.4.0

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

func (*Get_MultiRequest) Reset

func (x *Get_MultiRequest) Reset()

func (*Get_MultiRequest) String

func (x *Get_MultiRequest) String() string

type Get_MultiResponse

type Get_MultiResponse struct {
	Responses []*Get_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

MultiResponse allows multiple responses in a single Get.

func (*Get_MultiResponse) Descriptor deprecated

func (*Get_MultiResponse) Descriptor() ([]byte, []int)

Deprecated: Use Get_MultiResponse.ProtoReflect.Descriptor instead.

func (*Get_MultiResponse) GetResponses

func (x *Get_MultiResponse) GetResponses() []*Get_Response

func (*Get_MultiResponse) ProtoMessage

func (*Get_MultiResponse) ProtoMessage()

func (*Get_MultiResponse) ProtoReflect added in v0.4.0

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

func (*Get_MultiResponse) Reset

func (x *Get_MultiResponse) Reset()

func (*Get_MultiResponse) String

func (x *Get_MultiResponse) String() string

type Get_Request

type Get_Request struct {
	InstanceId   uint64             `protobuf:"varint,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	ExecId       uint64             `protobuf:"varint,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
	ExecDeadline uint64             `protobuf:"varint,3,opt,name=exec_deadline,json=execDeadline,proto3" json:"exec_deadline,omitempty"`
	Keys         []*Get_Request_Key `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"`
	KeyId        uint64             `protobuf:"varint,5,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	Context      map[string]*Value  `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request is a single request for a Get.

func (*Get_Request) Descriptor deprecated

func (*Get_Request) Descriptor() ([]byte, []int)

Deprecated: Use Get_Request.ProtoReflect.Descriptor instead.

func (*Get_Request) GetContext added in v0.3.0

func (x *Get_Request) GetContext() map[string]*Value

func (*Get_Request) GetExecDeadline

func (x *Get_Request) GetExecDeadline() uint64

func (*Get_Request) GetExecId

func (x *Get_Request) GetExecId() uint64

func (*Get_Request) GetInstanceId

func (x *Get_Request) GetInstanceId() uint64

func (*Get_Request) GetKeyId

func (x *Get_Request) GetKeyId() uint64

func (*Get_Request) GetKeys

func (x *Get_Request) GetKeys() []*Get_Request_Key

func (*Get_Request) ProtoMessage

func (*Get_Request) ProtoMessage()

func (*Get_Request) ProtoReflect added in v0.4.0

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

func (*Get_Request) Reset

func (x *Get_Request) Reset()

func (*Get_Request) String

func (x *Get_Request) String() string

type Get_Request_Key

type Get_Request_Key struct {
	Key  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Args []*Value `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
	Call bool     `protobuf:"varint,3,opt,name=call,proto3" json:"call,omitempty"`
	// contains filtered or unexported fields
}

func (*Get_Request_Key) Descriptor deprecated

func (*Get_Request_Key) Descriptor() ([]byte, []int)

Deprecated: Use Get_Request_Key.ProtoReflect.Descriptor instead.

func (*Get_Request_Key) GetArgs

func (x *Get_Request_Key) GetArgs() []*Value

func (*Get_Request_Key) GetCall added in v0.3.1

func (x *Get_Request_Key) GetCall() bool

func (*Get_Request_Key) GetKey

func (x *Get_Request_Key) GetKey() string

func (*Get_Request_Key) ProtoMessage

func (*Get_Request_Key) ProtoMessage()

func (*Get_Request_Key) ProtoReflect added in v0.4.0

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

func (*Get_Request_Key) Reset

func (x *Get_Request_Key) Reset()

func (*Get_Request_Key) String

func (x *Get_Request_Key) String() string

type Get_Response

type Get_Response struct {
	InstanceId uint64            `protobuf:"varint,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	KeyId      uint64            `protobuf:"varint,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	Keys       []string          `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"`
	Value      *Value            `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	Context    map[string]*Value `` /* 155-byte string literal not displayed */
	Callable   bool              `protobuf:"varint,6,opt,name=callable,proto3" json:"callable,omitempty"`
	// contains filtered or unexported fields
}

Response is a single response for a Get.

func (*Get_Response) Descriptor deprecated

func (*Get_Response) Descriptor() ([]byte, []int)

Deprecated: Use Get_Response.ProtoReflect.Descriptor instead.

func (*Get_Response) GetCallable added in v0.3.0

func (x *Get_Response) GetCallable() bool

func (*Get_Response) GetContext added in v0.3.0

func (x *Get_Response) GetContext() map[string]*Value

func (*Get_Response) GetInstanceId

func (x *Get_Response) GetInstanceId() uint64

func (*Get_Response) GetKeyId

func (x *Get_Response) GetKeyId() uint64

func (*Get_Response) GetKeys

func (x *Get_Response) GetKeys() []string

func (*Get_Response) GetValue

func (x *Get_Response) GetValue() *Value

func (*Get_Response) ProtoMessage

func (*Get_Response) ProtoMessage()

func (*Get_Response) ProtoReflect added in v0.4.0

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

func (*Get_Response) Reset

func (x *Get_Response) Reset()

func (*Get_Response) String

func (x *Get_Response) String() string

type PluginClient added in v0.4.0

type PluginClient interface {
	Configure(ctx context.Context, in *Configure_Request, opts ...grpc.CallOption) (*Configure_Response, error)
	Get(ctx context.Context, in *Get_MultiRequest, opts ...grpc.CallOption) (*Get_MultiResponse, error)
	Close(ctx context.Context, in *Close_Request, opts ...grpc.CallOption) (*Empty, error)
}

PluginClient is the client API for Plugin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPluginClient added in v0.4.0

func NewPluginClient(cc grpc.ClientConnInterface) PluginClient

type PluginServer added in v0.4.0

PluginServer is the server API for Plugin service.

type UnimplementedPluginServer added in v0.4.0

type UnimplementedPluginServer struct {
}

UnimplementedPluginServer can be embedded to have forward compatible implementations.

func (*UnimplementedPluginServer) Close added in v0.4.0

func (*UnimplementedPluginServer) Configure added in v0.4.0

func (*UnimplementedPluginServer) Get added in v0.4.0

type Value

type Value struct {

	// type is the type of this value
	Type Value_Type `protobuf:"varint,1,opt,name=type,proto3,enum=hashicorp.sentinel.proto.Value_Type" json:"type,omitempty"`
	// value is the value only if the type is not UNDEFINED or NULL.
	// If the value is UNDEFINED or NULL, then the value is known.
	//
	// Types that are assignable to Value:
	//
	//	*Value_ValueBool
	//	*Value_ValueInt
	//	*Value_ValueFloat
	//	*Value_ValueString
	//	*Value_ValueList
	//	*Value_ValueMap
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

Value represents a Sentinel value.

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetType

func (x *Value) GetType() Value_Type

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

func (*Value) GetValueBool

func (x *Value) GetValueBool() bool

func (*Value) GetValueFloat

func (x *Value) GetValueFloat() float64

func (*Value) GetValueInt

func (x *Value) GetValueInt() int64

func (*Value) GetValueList

func (x *Value) GetValueList() *Value_List

func (*Value) GetValueMap

func (x *Value) GetValueMap() *Value_Map

func (*Value) GetValueString

func (x *Value) GetValueString() string

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect added in v0.4.0

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

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

type Value_KV

type Value_KV struct {
	Key   *Value `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Value_KV) Descriptor deprecated

func (*Value_KV) Descriptor() ([]byte, []int)

Deprecated: Use Value_KV.ProtoReflect.Descriptor instead.

func (*Value_KV) GetKey

func (x *Value_KV) GetKey() *Value

func (*Value_KV) GetValue

func (x *Value_KV) GetValue() *Value

func (*Value_KV) ProtoMessage

func (*Value_KV) ProtoMessage()

func (*Value_KV) ProtoReflect added in v0.4.0

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

func (*Value_KV) Reset

func (x *Value_KV) Reset()

func (*Value_KV) String

func (x *Value_KV) String() string

type Value_List

type Value_List struct {
	Elems []*Value `protobuf:"bytes,1,rep,name=elems,proto3" json:"elems,omitempty"`
	// contains filtered or unexported fields
}

func (*Value_List) Descriptor deprecated

func (*Value_List) Descriptor() ([]byte, []int)

Deprecated: Use Value_List.ProtoReflect.Descriptor instead.

func (*Value_List) GetElems

func (x *Value_List) GetElems() []*Value

func (*Value_List) ProtoMessage

func (*Value_List) ProtoMessage()

func (*Value_List) ProtoReflect added in v0.4.0

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

func (*Value_List) Reset

func (x *Value_List) Reset()

func (*Value_List) String

func (x *Value_List) String() string

type Value_Map

type Value_Map struct {
	Elems []*Value_KV `protobuf:"bytes,1,rep,name=elems,proto3" json:"elems,omitempty"`
	// contains filtered or unexported fields
}

func (*Value_Map) Descriptor deprecated

func (*Value_Map) Descriptor() ([]byte, []int)

Deprecated: Use Value_Map.ProtoReflect.Descriptor instead.

func (*Value_Map) GetElems

func (x *Value_Map) GetElems() []*Value_KV

func (*Value_Map) ProtoMessage

func (*Value_Map) ProtoMessage()

func (*Value_Map) ProtoReflect added in v0.4.0

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

func (*Value_Map) Reset

func (x *Value_Map) Reset()

func (*Value_Map) String

func (x *Value_Map) String() string

type Value_Type

type Value_Type int32

Type is an enum representing the type of the value. This isn't the full set of Sentinel types since some types cannot be sent via Protobufs such as rules or functions.

const (
	Value_INVALID   Value_Type = 0
	Value_UNDEFINED Value_Type = 1
	Value_NULL      Value_Type = 2
	Value_BOOL      Value_Type = 3
	Value_INT       Value_Type = 4
	Value_FLOAT     Value_Type = 5
	Value_STRING    Value_Type = 6
	Value_LIST      Value_Type = 7
	Value_MAP       Value_Type = 8
)

func (Value_Type) Descriptor added in v0.4.0

func (Value_Type) Descriptor() protoreflect.EnumDescriptor

func (Value_Type) Enum added in v0.4.0

func (x Value_Type) Enum() *Value_Type

func (Value_Type) EnumDescriptor deprecated

func (Value_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Value_Type.Descriptor instead.

func (Value_Type) Number added in v0.4.0

func (x Value_Type) Number() protoreflect.EnumNumber

func (Value_Type) String

func (x Value_Type) String() string

func (Value_Type) Type added in v0.4.0

type Value_ValueBool

type Value_ValueBool struct {
	ValueBool bool `protobuf:"varint,2,opt,name=value_bool,json=valueBool,proto3,oneof"`
}

type Value_ValueFloat

type Value_ValueFloat struct {
	ValueFloat float64 `protobuf:"fixed64,4,opt,name=value_float,json=valueFloat,proto3,oneof"`
}

type Value_ValueInt

type Value_ValueInt struct {
	ValueInt int64 `protobuf:"varint,3,opt,name=value_int,json=valueInt,proto3,oneof"`
}

type Value_ValueList

type Value_ValueList struct {
	ValueList *Value_List `protobuf:"bytes,6,opt,name=value_list,json=valueList,proto3,oneof"`
}

type Value_ValueMap

type Value_ValueMap struct {
	ValueMap *Value_Map `protobuf:"bytes,7,opt,name=value_map,json=valueMap,proto3,oneof"`
}

type Value_ValueString

type Value_ValueString struct {
	ValueString string `protobuf:"bytes,5,opt,name=value_string,json=valueString,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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