agentstorev1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AgentStore_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spire.hostservice.server.agentstore.v1.AgentStore",
	HandlerType: (*AgentStoreServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAgentInfo",
			Handler:    _AgentStore_GetAgentInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spire/hostservice/server/agentstore/v1/agentstore.proto",
}

AgentStore_ServiceDesc is the grpc.ServiceDesc for AgentStore 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_spire_hostservice_server_agentstore_v1_agentstore_proto protoreflect.FileDescriptor

Functions

func AgentStoreServiceServer

func AgentStoreServiceServer(server AgentStoreServer) pluginsdk.ServiceServer

func RegisterAgentStoreServer

func RegisterAgentStoreServer(s grpc.ServiceRegistrar, srv AgentStoreServer)

Types

type AgentInfo

type AgentInfo struct {

	// Required. The ID of the agent.
	AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AgentInfo) Descriptor deprecated

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

Deprecated: Use AgentInfo.ProtoReflect.Descriptor instead.

func (*AgentInfo) GetAgentId

func (x *AgentInfo) GetAgentId() string

func (*AgentInfo) ProtoMessage

func (*AgentInfo) ProtoMessage()

func (*AgentInfo) ProtoReflect

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

func (*AgentInfo) Reset

func (x *AgentInfo) Reset()

func (*AgentInfo) String

func (x *AgentInfo) String() string

type AgentStoreClient

type AgentStoreClient interface {
	// Gets the information associated with the given agent ID. If the given
	// agent is not attested, NOT_FOUND is returned. This RPC is currently
	// only used by server-side NodeAttestor plugins look up existing
	// agents to enforce TOFU.
	GetAgentInfo(ctx context.Context, in *GetAgentInfoRequest, opts ...grpc.CallOption) (*GetAgentInfoResponse, error)
}

AgentStoreClient is the client API for AgentStore 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 NewAgentStoreClient

func NewAgentStoreClient(cc grpc.ClientConnInterface) AgentStoreClient

type AgentStoreServer

type AgentStoreServer interface {
	// Gets the information associated with the given agent ID. If the given
	// agent is not attested, NOT_FOUND is returned. This RPC is currently
	// only used by server-side NodeAttestor plugins look up existing
	// agents to enforce TOFU.
	GetAgentInfo(context.Context, *GetAgentInfoRequest) (*GetAgentInfoResponse, error)
	// contains filtered or unexported methods
}

AgentStoreServer is the server API for AgentStore service. All implementations must embed UnimplementedAgentStoreServer for forward compatibility

type AgentStoreServiceClient

type AgentStoreServiceClient struct {
	AgentStoreClient
}

func (*AgentStoreServiceClient) GRPCServiceName

func (c *AgentStoreServiceClient) GRPCServiceName() string

func (*AgentStoreServiceClient) InitClient

func (c *AgentStoreServiceClient) InitClient(conn grpc.ClientConnInterface) interface{}

func (*AgentStoreServiceClient) IsInitialized

func (c *AgentStoreServiceClient) IsInitialized() bool

type GetAgentInfoRequest

type GetAgentInfoRequest struct {

	// Required. The ID of the agent to get information for.
	AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAgentInfoRequest) Descriptor deprecated

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

Deprecated: Use GetAgentInfoRequest.ProtoReflect.Descriptor instead.

func (*GetAgentInfoRequest) GetAgentId

func (x *GetAgentInfoRequest) GetAgentId() string

func (*GetAgentInfoRequest) ProtoMessage

func (*GetAgentInfoRequest) ProtoMessage()

func (*GetAgentInfoRequest) ProtoReflect

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

func (*GetAgentInfoRequest) Reset

func (x *GetAgentInfoRequest) Reset()

func (*GetAgentInfoRequest) String

func (x *GetAgentInfoRequest) String() string

type GetAgentInfoResponse

type GetAgentInfoResponse struct {

	// Required. The agent information.
	Info *AgentInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAgentInfoResponse) Descriptor deprecated

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

Deprecated: Use GetAgentInfoResponse.ProtoReflect.Descriptor instead.

func (*GetAgentInfoResponse) GetInfo

func (x *GetAgentInfoResponse) GetInfo() *AgentInfo

func (*GetAgentInfoResponse) ProtoMessage

func (*GetAgentInfoResponse) ProtoMessage()

func (*GetAgentInfoResponse) ProtoReflect

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

func (*GetAgentInfoResponse) Reset

func (x *GetAgentInfoResponse) Reset()

func (*GetAgentInfoResponse) String

func (x *GetAgentInfoResponse) String() string

type UnimplementedAgentStoreServer

type UnimplementedAgentStoreServer struct {
}

UnimplementedAgentStoreServer must be embedded to have forward compatible implementations.

func (UnimplementedAgentStoreServer) GetAgentInfo

type UnsafeAgentStoreServer

type UnsafeAgentStoreServer interface {
	// contains filtered or unexported methods
}

UnsafeAgentStoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentStoreServer will result in compilation errors.

Jump to

Keyboard shortcuts

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