clusteragent

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCSR = errors.New("agent certificate request is invalid")
View Source
var ErrPeerIdentityMismatch = errors.New("agent peer identity does not match")

Functions

This section is empty.

Types

type AgentRegistry

type AgentRegistry interface {
	ActivateAgent(context.Context, string, []byte, time.Time, audit.Event) (bool, error)
	TouchAgent(context.Context, string, []byte, time.Time) error
}

type GRPCService

type GRPCService struct {
	clusteragentv1alpha1.UnimplementedClusterAgentServiceServer
	// contains filtered or unexported fields
}

func NewGRPCService

func NewGRPCService(registry AgentRegistry, heartbeatInterval time.Duration) *GRPCService

type IssuedCertificate

type IssuedCertificate struct {
	CertificatePEM   []byte
	CACertificatePEM []byte
	Serial           string
	Fingerprint      []byte
	NotAfter         time.Time
}

type Signer

type Signer struct {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(certificatePEM, privateKeyPEM []byte, validity time.Duration) (*Signer, error)

func (*Signer) Sign

func (s *Signer) Sign(installationID string, csrPEM []byte, now time.Time) (IssuedCertificate, error)

Jump to

Keyboard shortcuts

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