workloadattestorv0

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_spire_plugin_agent_workloadattestor_v0_workloadattestor_proto protoreflect.FileDescriptor
View Source
var WorkloadAttestor_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spire.agent.workloadattestor.WorkloadAttestor",
	HandlerType: (*WorkloadAttestorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Attest",
			Handler:    _WorkloadAttestor_Attest_Handler,
		},
		{
			MethodName: "Configure",
			Handler:    _WorkloadAttestor_Configure_Handler,
		},
		{
			MethodName: "GetPluginInfo",
			Handler:    _WorkloadAttestor_GetPluginInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spire/plugin/agent/workloadattestor/v0/workloadattestor.proto",
}

WorkloadAttestor_ServiceDesc is the grpc.ServiceDesc for WorkloadAttestor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterWorkloadAttestorServer

func RegisterWorkloadAttestorServer(s grpc.ServiceRegistrar, srv WorkloadAttestorServer)

func WorkloadAttestorPluginServer

func WorkloadAttestorPluginServer(server WorkloadAttestorServer) pluginsdk.PluginServer

Types

type AttestRequest

type AttestRequest struct {

	//* Workload PID
	Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
	// contains filtered or unexported fields
}

* Represents the workload PID.

func (*AttestRequest) Descriptor deprecated

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

Deprecated: Use AttestRequest.ProtoReflect.Descriptor instead.

func (*AttestRequest) GetPid

func (x *AttestRequest) GetPid() int32

func (*AttestRequest) ProtoMessage

func (*AttestRequest) ProtoMessage()

func (*AttestRequest) ProtoReflect

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

func (*AttestRequest) Reset

func (x *AttestRequest) Reset()

func (*AttestRequest) String

func (x *AttestRequest) String() string

type AttestResponse

type AttestResponse struct {

	//* List of selectors
	Selectors []*common.Selector `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"`
	// contains filtered or unexported fields
}

* Represents a list of selectors resolved for a given PID.

func (*AttestResponse) Descriptor deprecated

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

Deprecated: Use AttestResponse.ProtoReflect.Descriptor instead.

func (*AttestResponse) GetSelectors

func (x *AttestResponse) GetSelectors() []*common.Selector

func (*AttestResponse) ProtoMessage

func (*AttestResponse) ProtoMessage()

func (*AttestResponse) ProtoReflect

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

func (*AttestResponse) Reset

func (x *AttestResponse) Reset()

func (*AttestResponse) String

func (x *AttestResponse) String() string

type UnimplementedWorkloadAttestorServer

type UnimplementedWorkloadAttestorServer struct {
}

UnimplementedWorkloadAttestorServer must be embedded to have forward compatible implementations.

func (UnimplementedWorkloadAttestorServer) Attest

func (UnimplementedWorkloadAttestorServer) Configure

func (UnimplementedWorkloadAttestorServer) GetPluginInfo

type UnsafeWorkloadAttestorServer

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

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

type WorkloadAttestorClient

type WorkloadAttestorClient interface {
	//* Returns a list of selectors resolved for a given PID
	Attest(ctx context.Context, in *AttestRequest, opts ...grpc.CallOption) (*AttestResponse, error)
	//* Applies the plugin configuration and returns configuration errors
	Configure(ctx context.Context, in *plugin.ConfigureRequest, opts ...grpc.CallOption) (*plugin.ConfigureResponse, error)
	//* Returns the version and related metadata of the plugin
	GetPluginInfo(ctx context.Context, in *plugin.GetPluginInfoRequest, opts ...grpc.CallOption) (*plugin.GetPluginInfoResponse, error)
}

WorkloadAttestorClient is the client API for WorkloadAttestor 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 WorkloadAttestorPluginClient

type WorkloadAttestorPluginClient struct {
	WorkloadAttestorClient
}

func (*WorkloadAttestorPluginClient) GRPCServiceName

func (c *WorkloadAttestorPluginClient) GRPCServiceName() string

func (*WorkloadAttestorPluginClient) InitClient

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

func (*WorkloadAttestorPluginClient) IsInitialized

func (c *WorkloadAttestorPluginClient) IsInitialized() bool

func (WorkloadAttestorPluginClient) Type

type WorkloadAttestorServer

type WorkloadAttestorServer interface {
	//* Returns a list of selectors resolved for a given PID
	Attest(context.Context, *AttestRequest) (*AttestResponse, error)
	//* Applies the plugin configuration and returns configuration errors
	Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
	//* Returns the version and related metadata of the plugin
	GetPluginInfo(context.Context, *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error)
	// contains filtered or unexported methods
}

WorkloadAttestorServer is the server API for WorkloadAttestor service. All implementations must embed UnimplementedWorkloadAttestorServer for forward compatibility

Jump to

Keyboard shortcuts

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