agent

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 30 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s *grpc.Server, 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 {
	agent.UnsafeAgentServer
	// contains filtered or unexported fields
}

Service implements the v1 agent service

func New

func New(config Config) *Service

New creates a new agent service

func (*Service) AttestAgent

func (s *Service) AttestAgent(stream agent.Agent_AttestAgentServer) error

func (*Service) BanAgent

func (s *Service) BanAgent(ctx context.Context, req *agent.BanAgentRequest) (*emptypb.Empty, error)

func (*Service) CreateJoinToken

func (s *Service) CreateJoinToken(ctx context.Context, req *agent.CreateJoinTokenRequest) (*types.JoinToken, error)

func (*Service) DeleteAgent

func (s *Service) DeleteAgent(ctx context.Context, req *agent.DeleteAgentRequest) (*emptypb.Empty, error)

func (*Service) GetAgent

func (s *Service) GetAgent(ctx context.Context, req *agent.GetAgentRequest) (*types.Agent, error)

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)

Jump to

Keyboard shortcuts

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