Documentation ¶
Index ¶
- func RegisterService(s grpc.ServiceRegistrar, service *Service)
- type Config
- type Service
- func (s *Service) AttestAgent(stream agentv1.Agent_AttestAgentServer) error
- func (s *Service) BanAgent(ctx context.Context, req *agentv1.BanAgentRequest) (*emptypb.Empty, error)
- func (s *Service) CountAgents(ctx context.Context, req *agentv1.CountAgentsRequest) (*agentv1.CountAgentsResponse, error)
- func (s *Service) CreateJoinToken(ctx context.Context, req *agentv1.CreateJoinTokenRequest) (*types.JoinToken, error)
- func (s *Service) DeleteAgent(ctx context.Context, req *agentv1.DeleteAgentRequest) (*emptypb.Empty, error)
- func (s *Service) GetAgent(ctx context.Context, req *agentv1.GetAgentRequest) (*types.Agent, error)
- func (s *Service) ListAgents(ctx context.Context, req *agentv1.ListAgentsRequest) (*agentv1.ListAgentsResponse, error)
- func (s *Service) PostStatus(context.Context, *agentv1.PostStatusRequest) (*agentv1.PostStatusResponse, error)
- func (s *Service) RenewAgent(ctx context.Context, req *agentv1.RenewAgentRequest) (*agentv1.RenewAgentResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s grpc.ServiceRegistrar, service *Service)
RegisterService registers the agent service on the gRPC server/
Types ¶
type Config ¶
type Config struct { Catalog catalog.Catalog Clock clock.Clock DataStore datastore.DataStore ServerCA ca.ServerCA TrustDomain spiffeid.TrustDomain }
Config is the service configuration
type Service ¶
type Service struct { agentv1.UnsafeAgentServer // contains filtered or unexported fields }
Service implements the v1 agent service
func (*Service) AttestAgent ¶
func (s *Service) AttestAgent(stream agentv1.Agent_AttestAgentServer) error
AttestAgent attests the authenticity of the given agent.
func (*Service) BanAgent ¶
func (s *Service) BanAgent(ctx context.Context, req *agentv1.BanAgentRequest) (*emptypb.Empty, error)
BanAgent sets the agent with the given SpiffeID to the banned state.
func (*Service) CountAgents ¶ added in v1.0.0
func (s *Service) CountAgents(ctx context.Context, req *agentv1.CountAgentsRequest) (*agentv1.CountAgentsResponse, error)
CountAgents returns the total number of agents.
func (*Service) CreateJoinToken ¶
func (s *Service) CreateJoinToken(ctx context.Context, req *agentv1.CreateJoinTokenRequest) (*types.JoinToken, error)
CreateJoinToken returns a new JoinToken for an agent.
func (*Service) DeleteAgent ¶
func (s *Service) DeleteAgent(ctx context.Context, req *agentv1.DeleteAgentRequest) (*emptypb.Empty, error)
DeleteAgent removes the agent with the given SpiffeID.
func (*Service) ListAgents ¶
func (s *Service) ListAgents(ctx context.Context, req *agentv1.ListAgentsRequest) (*agentv1.ListAgentsResponse, error)
ListAgents returns an optionally filtered and/or paginated list of agents.
func (*Service) PostStatus ¶ added in v1.7.2
func (s *Service) PostStatus(context.Context, *agentv1.PostStatusRequest) (*agentv1.PostStatusResponse, error)
PostStatus post agent status
func (*Service) RenewAgent ¶
func (s *Service) RenewAgent(ctx context.Context, req *agentv1.RenewAgentRequest) (*agentv1.RenewAgentResponse, error)
RenewAgent renews the SVID of the agent with the given SpiffeID.
Click to show internal directories.
Click to hide internal directories.