agentv1

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_spire_api_server_agent_v1_agent_proto protoreflect.FileDescriptor

Functions

func RegisterAgentServer

func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)

Types

type AgentClient

type AgentClient interface {
	// Count agents.
	//
	// The caller must be local or present an admin X509-SVID.
	CountAgents(ctx context.Context, in *CountAgentsRequest, opts ...grpc.CallOption) (*CountAgentsResponse, error)
	// Lists agents.
	//
	// The caller must be local or present an admin X509-SVID.
	ListAgents(ctx context.Context, in *ListAgentsRequest, opts ...grpc.CallOption) (*ListAgentsResponse, error)
	// Gets an agent.
	//
	// The caller must be local or present an admin X509-SVID.
	GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*types.Agent, error)
	// Deletes an agent. The agent can come back into the trust domain through
	// the Issuer AttestAgent RPC.
	//
	// The caller must be local or present an admin X509-SVID.
	DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Bans an agent. This evicts the agent and prevents it from rejoining the
	// trust domain through attestation until the ban is lifted via a call to
	// DeleteAgent.
	//
	// The caller must be local or present an admin X509-SVID.
	BanAgent(ctx context.Context, in *BanAgentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Attests the agent via node attestation, using a bidirectional stream to
	// faciliate attestation methods that require challenge/response.
	//
	// The caller is not authenticated.
	AttestAgent(ctx context.Context, opts ...grpc.CallOption) (Agent_AttestAgentClient, error)
	// Renews the agent and returns a new X509-SVID. The new SVID is not enabled
	// on the server side until its first use.
	//
	// The caller must present an active agent X509-SVID, i.e. the X509-SVID
	// returned by the AttestAgent or the most recent RenewAgent call.
	RenewAgent(ctx context.Context, in *RenewAgentRequest, opts ...grpc.CallOption) (*RenewAgentResponse, error)
	// Creates an agent join token. The token can be used with `join_token`
	// attestation to join the trust domain.
	//
	// The caller must be local or present an admin X509-SVID.
	CreateJoinToken(ctx context.Context, in *CreateJoinTokenRequest, opts ...grpc.CallOption) (*types.JoinToken, error)
	// PostStatus post Agent status, informing what's the current
	// bundle that is being used by the agent.
	//
	// The caller must present an active agent X509-SVID, i.e. the X509-SVID
	// returned by the AttestAgent or the most recent RenewAgent call.
	PostStatus(ctx context.Context, in *PostStatusRequest, opts ...grpc.CallOption) (*PostStatusResponse, error)
}

AgentClient is the client API for Agent 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 NewAgentClient

func NewAgentClient(cc grpc.ClientConnInterface) AgentClient

type AgentServer

type AgentServer interface {
	// Count agents.
	//
	// The caller must be local or present an admin X509-SVID.
	CountAgents(context.Context, *CountAgentsRequest) (*CountAgentsResponse, error)
	// Lists agents.
	//
	// The caller must be local or present an admin X509-SVID.
	ListAgents(context.Context, *ListAgentsRequest) (*ListAgentsResponse, error)
	// Gets an agent.
	//
	// The caller must be local or present an admin X509-SVID.
	GetAgent(context.Context, *GetAgentRequest) (*types.Agent, error)
	// Deletes an agent. The agent can come back into the trust domain through
	// the Issuer AttestAgent RPC.
	//
	// The caller must be local or present an admin X509-SVID.
	DeleteAgent(context.Context, *DeleteAgentRequest) (*emptypb.Empty, error)
	// Bans an agent. This evicts the agent and prevents it from rejoining the
	// trust domain through attestation until the ban is lifted via a call to
	// DeleteAgent.
	//
	// The caller must be local or present an admin X509-SVID.
	BanAgent(context.Context, *BanAgentRequest) (*emptypb.Empty, error)
	// Attests the agent via node attestation, using a bidirectional stream to
	// faciliate attestation methods that require challenge/response.
	//
	// The caller is not authenticated.
	AttestAgent(Agent_AttestAgentServer) error
	// Renews the agent and returns a new X509-SVID. The new SVID is not enabled
	// on the server side until its first use.
	//
	// The caller must present an active agent X509-SVID, i.e. the X509-SVID
	// returned by the AttestAgent or the most recent RenewAgent call.
	RenewAgent(context.Context, *RenewAgentRequest) (*RenewAgentResponse, error)
	// Creates an agent join token. The token can be used with `join_token`
	// attestation to join the trust domain.
	//
	// The caller must be local or present an admin X509-SVID.
	CreateJoinToken(context.Context, *CreateJoinTokenRequest) (*types.JoinToken, error)
	// PostStatus post Agent status, informing what's the current
	// bundle that is being used by the agent.
	//
	// The caller must present an active agent X509-SVID, i.e. the X509-SVID
	// returned by the AttestAgent or the most recent RenewAgent call.
	PostStatus(context.Context, *PostStatusRequest) (*PostStatusResponse, error)
	// contains filtered or unexported methods
}

AgentServer is the server API for Agent service. All implementations must embed UnimplementedAgentServer for forward compatibility

type AgentX509SVIDParams

type AgentX509SVIDParams struct {

	// Required. The ASN.1 DER encoded Certificate Signing Request (CSR). The
	// CSR is only used to convey the public key; other fields in the CSR are
	// ignored. The agent X509-SVID attributes are determined by the server.
	Csr []byte `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"`
	// contains filtered or unexported fields
}

func (*AgentX509SVIDParams) Descriptor deprecated

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

Deprecated: Use AgentX509SVIDParams.ProtoReflect.Descriptor instead.

func (*AgentX509SVIDParams) GetCsr

func (x *AgentX509SVIDParams) GetCsr() []byte

func (*AgentX509SVIDParams) ProtoMessage

func (*AgentX509SVIDParams) ProtoMessage()

func (*AgentX509SVIDParams) ProtoReflect

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

func (*AgentX509SVIDParams) Reset

func (x *AgentX509SVIDParams) Reset()

func (*AgentX509SVIDParams) String

func (x *AgentX509SVIDParams) String() string

type Agent_AttestAgentClient

type Agent_AttestAgentClient interface {
	Send(*AttestAgentRequest) error
	Recv() (*AttestAgentResponse, error)
	grpc.ClientStream
}

type Agent_AttestAgentServer

type Agent_AttestAgentServer interface {
	Send(*AttestAgentResponse) error
	Recv() (*AttestAgentRequest, error)
	grpc.ServerStream
}

type AttestAgentRequest

type AttestAgentRequest struct {

	// Required. The data for the step in the attestation flow.
	//
	// Types that are assignable to Step:
	//	*AttestAgentRequest_Params_
	//	*AttestAgentRequest_ChallengeResponse
	Step isAttestAgentRequest_Step `protobuf_oneof:"step"`
	// contains filtered or unexported fields
}

func (*AttestAgentRequest) Descriptor deprecated

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

Deprecated: Use AttestAgentRequest.ProtoReflect.Descriptor instead.

func (*AttestAgentRequest) GetChallengeResponse

func (x *AttestAgentRequest) GetChallengeResponse() []byte

func (*AttestAgentRequest) GetParams

func (*AttestAgentRequest) GetStep

func (m *AttestAgentRequest) GetStep() isAttestAgentRequest_Step

func (*AttestAgentRequest) ProtoMessage

func (*AttestAgentRequest) ProtoMessage()

func (*AttestAgentRequest) ProtoReflect

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

func (*AttestAgentRequest) Reset

func (x *AttestAgentRequest) Reset()

func (*AttestAgentRequest) String

func (x *AttestAgentRequest) String() string

type AttestAgentRequest_ChallengeResponse

type AttestAgentRequest_ChallengeResponse struct {
	// The response to a challenge issued by the attestor. Only sent in
	// response to a challenge received by the issuer.
	ChallengeResponse []byte `protobuf:"bytes,2,opt,name=challenge_response,json=challengeResponse,proto3,oneof"`
}

type AttestAgentRequest_Params

type AttestAgentRequest_Params struct {

	// Required. The attestation data.
	Data *types.AttestationData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// Required. The X509-SVID parameters.
	Params *AgentX509SVIDParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*AttestAgentRequest_Params) Descriptor deprecated

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

Deprecated: Use AttestAgentRequest_Params.ProtoReflect.Descriptor instead.

func (*AttestAgentRequest_Params) GetData

func (*AttestAgentRequest_Params) GetParams

func (*AttestAgentRequest_Params) ProtoMessage

func (*AttestAgentRequest_Params) ProtoMessage()

func (*AttestAgentRequest_Params) ProtoReflect

func (*AttestAgentRequest_Params) Reset

func (x *AttestAgentRequest_Params) Reset()

func (*AttestAgentRequest_Params) String

func (x *AttestAgentRequest_Params) String() string

type AttestAgentRequest_Params_

type AttestAgentRequest_Params_ struct {
	// Attestation parameters. These are only sent in the initial request.
	Params *AttestAgentRequest_Params `protobuf:"bytes,1,opt,name=params,proto3,oneof"`
}

type AttestAgentResponse

type AttestAgentResponse struct {

	// Types that are assignable to Step:
	//	*AttestAgentResponse_Result_
	//	*AttestAgentResponse_Challenge
	Step isAttestAgentResponse_Step `protobuf_oneof:"step"`
	// contains filtered or unexported fields
}

func (*AttestAgentResponse) Descriptor deprecated

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

Deprecated: Use AttestAgentResponse.ProtoReflect.Descriptor instead.

func (*AttestAgentResponse) GetChallenge

func (x *AttestAgentResponse) GetChallenge() []byte

func (*AttestAgentResponse) GetResult

func (*AttestAgentResponse) GetStep

func (m *AttestAgentResponse) GetStep() isAttestAgentResponse_Step

func (*AttestAgentResponse) ProtoMessage

func (*AttestAgentResponse) ProtoMessage()

func (*AttestAgentResponse) ProtoReflect

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

func (*AttestAgentResponse) Reset

func (x *AttestAgentResponse) Reset()

func (*AttestAgentResponse) String

func (x *AttestAgentResponse) String() string

type AttestAgentResponse_Challenge

type AttestAgentResponse_Challenge struct {
	// A challenge issued by the attestor. If set, the caller is expected
	// to send another request on the stream with the challenge response.
	Challenge []byte `protobuf:"bytes,2,opt,name=challenge,proto3,oneof"`
}

type AttestAgentResponse_Result

type AttestAgentResponse_Result struct {

	// The agent X509-SVID.
	Svid *types.X509SVID `protobuf:"bytes,1,opt,name=svid,proto3" json:"svid,omitempty"`
	// Whether or not the attested agent can reattest to renew its X509-SVID
	Reattestable bool `protobuf:"varint,2,opt,name=reattestable,proto3" json:"reattestable,omitempty"`
	// contains filtered or unexported fields
}

func (*AttestAgentResponse_Result) Descriptor deprecated

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

Deprecated: Use AttestAgentResponse_Result.ProtoReflect.Descriptor instead.

func (*AttestAgentResponse_Result) GetReattestable added in v1.4.2

func (x *AttestAgentResponse_Result) GetReattestable() bool

func (*AttestAgentResponse_Result) GetSvid

func (*AttestAgentResponse_Result) ProtoMessage

func (*AttestAgentResponse_Result) ProtoMessage()

func (*AttestAgentResponse_Result) ProtoReflect

func (*AttestAgentResponse_Result) Reset

func (x *AttestAgentResponse_Result) Reset()

func (*AttestAgentResponse_Result) String

func (x *AttestAgentResponse_Result) String() string

type AttestAgentResponse_Result_

type AttestAgentResponse_Result_ struct {
	// Attestation results. If set, attestation has completed.
	Result *AttestAgentResponse_Result `protobuf:"bytes,1,opt,name=result,proto3,oneof"`
}

type BanAgentRequest

type BanAgentRequest struct {

	// Required. The SPIFFE ID of the agent.
	Id *types.SPIFFEID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*BanAgentRequest) Descriptor deprecated

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

Deprecated: Use BanAgentRequest.ProtoReflect.Descriptor instead.

func (*BanAgentRequest) GetId

func (x *BanAgentRequest) GetId() *types.SPIFFEID

func (*BanAgentRequest) ProtoMessage

func (*BanAgentRequest) ProtoMessage()

func (*BanAgentRequest) ProtoReflect

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

func (*BanAgentRequest) Reset

func (x *BanAgentRequest) Reset()

func (*BanAgentRequest) String

func (x *BanAgentRequest) String() string

type CountAgentsRequest

type CountAgentsRequest struct {

	// Filters the agents returned by the list operation.
	Filter *CountAgentsRequest_Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*CountAgentsRequest) Descriptor deprecated

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

Deprecated: Use CountAgentsRequest.ProtoReflect.Descriptor instead.

func (*CountAgentsRequest) GetFilter added in v1.9.6

func (*CountAgentsRequest) ProtoMessage

func (*CountAgentsRequest) ProtoMessage()

func (*CountAgentsRequest) ProtoReflect

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

func (*CountAgentsRequest) Reset

func (x *CountAgentsRequest) Reset()

func (*CountAgentsRequest) String

func (x *CountAgentsRequest) String() string

type CountAgentsRequest_Filter added in v1.9.6

type CountAgentsRequest_Filter struct {

	// Filters agents to those matching the attestation type.
	ByAttestationType string `protobuf:"bytes,1,opt,name=by_attestation_type,json=byAttestationType,proto3" json:"by_attestation_type,omitempty"`
	// Filters agents to those satisfying the selector match.
	BySelectorMatch *types.SelectorMatch `protobuf:"bytes,2,opt,name=by_selector_match,json=bySelectorMatch,proto3" json:"by_selector_match,omitempty"`
	// Filters agents to those that are banned.
	ByBanned *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=by_banned,json=byBanned,proto3" json:"by_banned,omitempty"`
	// Filters agents that can re-attest.
	ByCanReattest *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=by_can_reattest,json=byCanReattest,proto3" json:"by_can_reattest,omitempty"`
	// Filters agents by those expires before.
	ByExpiresBefore string `protobuf:"bytes,5,opt,name=by_expires_before,json=byExpiresBefore,proto3" json:"by_expires_before,omitempty"`
	// contains filtered or unexported fields
}

func (*CountAgentsRequest_Filter) Descriptor deprecated added in v1.9.6

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

Deprecated: Use CountAgentsRequest_Filter.ProtoReflect.Descriptor instead.

func (*CountAgentsRequest_Filter) GetByAttestationType added in v1.9.6

func (x *CountAgentsRequest_Filter) GetByAttestationType() string

func (*CountAgentsRequest_Filter) GetByBanned added in v1.9.6

func (*CountAgentsRequest_Filter) GetByCanReattest added in v1.9.6

func (x *CountAgentsRequest_Filter) GetByCanReattest() *wrapperspb.BoolValue

func (*CountAgentsRequest_Filter) GetByExpiresBefore added in v1.9.6

func (x *CountAgentsRequest_Filter) GetByExpiresBefore() string

func (*CountAgentsRequest_Filter) GetBySelectorMatch added in v1.9.6

func (x *CountAgentsRequest_Filter) GetBySelectorMatch() *types.SelectorMatch

func (*CountAgentsRequest_Filter) ProtoMessage added in v1.9.6

func (*CountAgentsRequest_Filter) ProtoMessage()

func (*CountAgentsRequest_Filter) ProtoReflect added in v1.9.6

func (*CountAgentsRequest_Filter) Reset added in v1.9.6

func (x *CountAgentsRequest_Filter) Reset()

func (*CountAgentsRequest_Filter) String added in v1.9.6

func (x *CountAgentsRequest_Filter) String() string

type CountAgentsResponse

type CountAgentsResponse struct {
	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*CountAgentsResponse) Descriptor deprecated

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

Deprecated: Use CountAgentsResponse.ProtoReflect.Descriptor instead.

func (*CountAgentsResponse) GetCount

func (x *CountAgentsResponse) GetCount() int32

func (*CountAgentsResponse) ProtoMessage

func (*CountAgentsResponse) ProtoMessage()

func (*CountAgentsResponse) ProtoReflect

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

func (*CountAgentsResponse) Reset

func (x *CountAgentsResponse) Reset()

func (*CountAgentsResponse) String

func (x *CountAgentsResponse) String() string

type CreateJoinTokenRequest

type CreateJoinTokenRequest struct {

	// Required. How long until the token expires (in seconds).
	Ttl int32 `protobuf:"varint,1,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// An optional token value to use for the token. Must be unique. If unset,
	// the server will generate a value.
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// An optional SPIFFE ID to assign to the agent beyond that given by
	// join token attestation. If set, this results in an entry being created
	// that maps the attestation assigned agent ID to this ID.
	AgentId *types.SPIFFEID `protobuf:"bytes,3,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateJoinTokenRequest) Descriptor deprecated

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

Deprecated: Use CreateJoinTokenRequest.ProtoReflect.Descriptor instead.

func (*CreateJoinTokenRequest) GetAgentId

func (x *CreateJoinTokenRequest) GetAgentId() *types.SPIFFEID

func (*CreateJoinTokenRequest) GetToken

func (x *CreateJoinTokenRequest) GetToken() string

func (*CreateJoinTokenRequest) GetTtl

func (x *CreateJoinTokenRequest) GetTtl() int32

func (*CreateJoinTokenRequest) ProtoMessage

func (*CreateJoinTokenRequest) ProtoMessage()

func (*CreateJoinTokenRequest) ProtoReflect

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

func (*CreateJoinTokenRequest) Reset

func (x *CreateJoinTokenRequest) Reset()

func (*CreateJoinTokenRequest) String

func (x *CreateJoinTokenRequest) String() string

type DeleteAgentRequest

type DeleteAgentRequest struct {

	// Required. The SPIFFE ID of the agent.
	Id *types.SPIFFEID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAgentRequest) Descriptor deprecated

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

Deprecated: Use DeleteAgentRequest.ProtoReflect.Descriptor instead.

func (*DeleteAgentRequest) GetId

func (x *DeleteAgentRequest) GetId() *types.SPIFFEID

func (*DeleteAgentRequest) ProtoMessage

func (*DeleteAgentRequest) ProtoMessage()

func (*DeleteAgentRequest) ProtoReflect

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

func (*DeleteAgentRequest) Reset

func (x *DeleteAgentRequest) Reset()

func (*DeleteAgentRequest) String

func (x *DeleteAgentRequest) String() string

type GetAgentRequest

type GetAgentRequest struct {

	// Required. The SPIFFE ID of the agent.
	Id *types.SPIFFEID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// An output mask indicating which agent fields are set in the response.
	OutputMask *types.AgentMask `protobuf:"bytes,2,opt,name=output_mask,json=outputMask,proto3" json:"output_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAgentRequest) Descriptor deprecated

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

Deprecated: Use GetAgentRequest.ProtoReflect.Descriptor instead.

func (*GetAgentRequest) GetId

func (x *GetAgentRequest) GetId() *types.SPIFFEID

func (*GetAgentRequest) GetOutputMask

func (x *GetAgentRequest) GetOutputMask() *types.AgentMask

func (*GetAgentRequest) ProtoMessage

func (*GetAgentRequest) ProtoMessage()

func (*GetAgentRequest) ProtoReflect

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

func (*GetAgentRequest) Reset

func (x *GetAgentRequest) Reset()

func (*GetAgentRequest) String

func (x *GetAgentRequest) String() string

type ListAgentsRequest

type ListAgentsRequest struct {

	// Filters the agents returned by the list operation.
	Filter *ListAgentsRequest_Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// An output mask indicating which agent fields are set in the response.
	OutputMask *types.AgentMask `protobuf:"bytes,2,opt,name=output_mask,json=outputMask,proto3" json:"output_mask,omitempty"`
	// The maximum number of results to return. The server may further
	// constrain this value, or if zero, choose its own.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous request, if any.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAgentsRequest) Descriptor deprecated

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

Deprecated: Use ListAgentsRequest.ProtoReflect.Descriptor instead.

func (*ListAgentsRequest) GetFilter

func (*ListAgentsRequest) GetOutputMask

func (x *ListAgentsRequest) GetOutputMask() *types.AgentMask

func (*ListAgentsRequest) GetPageSize

func (x *ListAgentsRequest) GetPageSize() int32

func (*ListAgentsRequest) GetPageToken

func (x *ListAgentsRequest) GetPageToken() string

func (*ListAgentsRequest) ProtoMessage

func (*ListAgentsRequest) ProtoMessage()

func (*ListAgentsRequest) ProtoReflect

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

func (*ListAgentsRequest) Reset

func (x *ListAgentsRequest) Reset()

func (*ListAgentsRequest) String

func (x *ListAgentsRequest) String() string

type ListAgentsRequest_Filter

type ListAgentsRequest_Filter struct {

	// Filters agents to those matching the attestation type.
	ByAttestationType string `protobuf:"bytes,1,opt,name=by_attestation_type,json=byAttestationType,proto3" json:"by_attestation_type,omitempty"`
	// Filters agents to those satisfying the selector match.
	BySelectorMatch *types.SelectorMatch `protobuf:"bytes,2,opt,name=by_selector_match,json=bySelectorMatch,proto3" json:"by_selector_match,omitempty"`
	// Filters agents to those that are banned.
	ByBanned *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=by_banned,json=byBanned,proto3" json:"by_banned,omitempty"`
	// Filters agents that can re-attest.
	ByCanReattest *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=by_can_reattest,json=byCanReattest,proto3" json:"by_can_reattest,omitempty"`
	// Filters agents by those expires before.
	ByExpiresBefore string `protobuf:"bytes,5,opt,name=by_expires_before,json=byExpiresBefore,proto3" json:"by_expires_before,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAgentsRequest_Filter) Descriptor deprecated

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

Deprecated: Use ListAgentsRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListAgentsRequest_Filter) GetByAttestationType

func (x *ListAgentsRequest_Filter) GetByAttestationType() string

func (*ListAgentsRequest_Filter) GetByBanned

func (x *ListAgentsRequest_Filter) GetByBanned() *wrapperspb.BoolValue

func (*ListAgentsRequest_Filter) GetByCanReattest added in v1.6.3

func (x *ListAgentsRequest_Filter) GetByCanReattest() *wrapperspb.BoolValue

func (*ListAgentsRequest_Filter) GetByExpiresBefore added in v1.9.6

func (x *ListAgentsRequest_Filter) GetByExpiresBefore() string

func (*ListAgentsRequest_Filter) GetBySelectorMatch

func (x *ListAgentsRequest_Filter) GetBySelectorMatch() *types.SelectorMatch

func (*ListAgentsRequest_Filter) ProtoMessage

func (*ListAgentsRequest_Filter) ProtoMessage()

func (*ListAgentsRequest_Filter) ProtoReflect

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

func (*ListAgentsRequest_Filter) Reset

func (x *ListAgentsRequest_Filter) Reset()

func (*ListAgentsRequest_Filter) String

func (x *ListAgentsRequest_Filter) String() string

type ListAgentsResponse

type ListAgentsResponse struct {

	// The agents.
	Agents []*types.Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"`
	// The page token for the next request. Empty if there are no more results.
	// This field should be checked by clients even when a page_size was not
	// requested, since the server may choose its own (see page_size).
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAgentsResponse) Descriptor deprecated

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

Deprecated: Use ListAgentsResponse.ProtoReflect.Descriptor instead.

func (*ListAgentsResponse) GetAgents

func (x *ListAgentsResponse) GetAgents() []*types.Agent

func (*ListAgentsResponse) GetNextPageToken

func (x *ListAgentsResponse) GetNextPageToken() string

func (*ListAgentsResponse) ProtoMessage

func (*ListAgentsResponse) ProtoMessage()

func (*ListAgentsResponse) ProtoReflect

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

func (*ListAgentsResponse) Reset

func (x *ListAgentsResponse) Reset()

func (*ListAgentsResponse) String

func (x *ListAgentsResponse) String() string

type PostStatusRequest added in v1.7.2

type PostStatusRequest struct {

	// Required. Serial number of the bundle currently being served by the agent
	CurrentBundleSerial uint64 `protobuf:"varint,1,opt,name=current_bundle_serial,json=currentBundleSerial,proto3" json:"current_bundle_serial,omitempty"`
	// contains filtered or unexported fields
}

func (*PostStatusRequest) Descriptor deprecated added in v1.7.2

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

Deprecated: Use PostStatusRequest.ProtoReflect.Descriptor instead.

func (*PostStatusRequest) GetCurrentBundleSerial added in v1.7.2

func (x *PostStatusRequest) GetCurrentBundleSerial() uint64

func (*PostStatusRequest) ProtoMessage added in v1.7.2

func (*PostStatusRequest) ProtoMessage()

func (*PostStatusRequest) ProtoReflect added in v1.7.2

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

func (*PostStatusRequest) Reset added in v1.7.2

func (x *PostStatusRequest) Reset()

func (*PostStatusRequest) String added in v1.7.2

func (x *PostStatusRequest) String() string

type PostStatusResponse added in v1.7.2

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

func (*PostStatusResponse) Descriptor deprecated added in v1.7.2

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

Deprecated: Use PostStatusResponse.ProtoReflect.Descriptor instead.

func (*PostStatusResponse) ProtoMessage added in v1.7.2

func (*PostStatusResponse) ProtoMessage()

func (*PostStatusResponse) ProtoReflect added in v1.7.2

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

func (*PostStatusResponse) Reset added in v1.7.2

func (x *PostStatusResponse) Reset()

func (*PostStatusResponse) String added in v1.7.2

func (x *PostStatusResponse) String() string

type RenewAgentRequest

type RenewAgentRequest struct {

	// Required. Parameters for the X509-SVID.
	Params *AgentX509SVIDParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*RenewAgentRequest) Descriptor deprecated

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

Deprecated: Use RenewAgentRequest.ProtoReflect.Descriptor instead.

func (*RenewAgentRequest) GetParams

func (x *RenewAgentRequest) GetParams() *AgentX509SVIDParams

func (*RenewAgentRequest) ProtoMessage

func (*RenewAgentRequest) ProtoMessage()

func (*RenewAgentRequest) ProtoReflect

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

func (*RenewAgentRequest) Reset

func (x *RenewAgentRequest) Reset()

func (*RenewAgentRequest) String

func (x *RenewAgentRequest) String() string

type RenewAgentResponse

type RenewAgentResponse struct {

	// The renewed X509-SVID
	Svid *types.X509SVID `protobuf:"bytes,1,opt,name=svid,proto3" json:"svid,omitempty"`
	// contains filtered or unexported fields
}

func (*RenewAgentResponse) Descriptor deprecated

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

Deprecated: Use RenewAgentResponse.ProtoReflect.Descriptor instead.

func (*RenewAgentResponse) GetSvid

func (x *RenewAgentResponse) GetSvid() *types.X509SVID

func (*RenewAgentResponse) ProtoMessage

func (*RenewAgentResponse) ProtoMessage()

func (*RenewAgentResponse) ProtoReflect

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

func (*RenewAgentResponse) Reset

func (x *RenewAgentResponse) Reset()

func (*RenewAgentResponse) String

func (x *RenewAgentResponse) String() string

type UnimplementedAgentServer

type UnimplementedAgentServer struct {
}

UnimplementedAgentServer must be embedded to have forward compatible implementations.

func (UnimplementedAgentServer) AttestAgent

func (UnimplementedAgentServer) BanAgent

func (UnimplementedAgentServer) CountAgents

func (UnimplementedAgentServer) CreateJoinToken

func (UnimplementedAgentServer) DeleteAgent

func (UnimplementedAgentServer) GetAgent

func (UnimplementedAgentServer) ListAgents

func (UnimplementedAgentServer) PostStatus added in v1.7.2

func (UnimplementedAgentServer) RenewAgent

type UnsafeAgentServer

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

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

Jump to

Keyboard shortcuts

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