Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAuthTokenNotFound is returned when the auth token is not found // in the database indicating that the agent does not have a token. ErrAuthTokenNotFound = errors.New("auth token not found") ErrNoAgentID = errors.New("no agent id") )
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Database ¶
type Database interface { AuthToken(ctx context.Context) (*AuthToken, error) SaveAuthToken(ctx context.Context, token *AuthToken) error AgentID(ctx context.Context) (string, error) SaveAgentID(ctx context.Context, agentID string) error }
func NewDatabase ¶
type Server ¶
type Server struct { rpc.UnimplementedAgentServer // contains filtered or unexported fields }
Server is the gRPC server that runs on the agent itself and is accessible by the real gRPC server that the agent connects to.
func (*Server) Shutdown ¶
func (s *Server) Shutdown(_ context.Context, _ *rpc.ShutdownRequest) (*rpc.ShutdownResponse, error)
type SystemMetadataProvider ¶
type SystemMetadataProvider interface {
GetSystemMetadata(ctx context.Context) (*rpc.SystemMetadata, error)
}
Click to show internal directories.
Click to hide internal directories.