agent

package
v0.10.2 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: 8 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 {
	Datastore datastore.DataStore
}

Config is the service configuration

type Service

type Service struct {
	// 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) (*empty.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) (*empty.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(stream agent.Agent_RenewAgentServer) error

Jump to

Keyboard shortcuts

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