Documentation
¶
Index ¶
- func RegisterService(s *grpc.Server, service *Service)
- type Config
- type Service
- func (s *Service) AttestAgent(stream agent.Agent_AttestAgentServer) error
- func (s *Service) BanAgent(ctx context.Context, req *agent.BanAgentRequest) (*emptypb.Empty, error)
- func (s *Service) CreateJoinToken(ctx context.Context, req *agent.CreateJoinTokenRequest) (*types.JoinToken, error)
- func (s *Service) DeleteAgent(ctx context.Context, req *agent.DeleteAgentRequest) (*emptypb.Empty, error)
- func (s *Service) GetAgent(ctx context.Context, req *agent.GetAgentRequest) (*types.Agent, error)
- func (s *Service) ListAgents(ctx context.Context, req *agent.ListAgentsRequest) (*agent.ListAgentsResponse, error)
- func (s *Service) RenewAgent(ctx context.Context, req *agent.RenewAgentRequest) (*agent.RenewAgentResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
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 {
agent.UnsafeAgentServer
// contains filtered or unexported fields
}
Service implements the v1 agent service
func (*Service) AttestAgent ¶
func (s *Service) AttestAgent(stream agent.Agent_AttestAgentServer) error
func (*Service) CreateJoinToken ¶
func (*Service) DeleteAgent ¶
func (*Service) ListAgents ¶
func (s *Service) ListAgents(ctx context.Context, req *agent.ListAgentsRequest) (*agent.ListAgentsResponse, error)
func (*Service) RenewAgent ¶
func (s *Service) RenewAgent(ctx context.Context, req *agent.RenewAgentRequest) (*agent.RenewAgentResponse, error)
Click to show internal directories.
Click to hide internal directories.