internal_agent

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureAuthenticatedBladectlConfig added in v0.10.0

func EnsureAuthenticatedBladectlConfig(ctx context.Context, serverAddr string, serverMode ListenMode) humane.Error

func EnsureServerCertificate added in v0.10.0

func EnsureServerCertificate(ctx context.Context) (tls.Certificate, *x509.CertPool, humane.Error)

EnsureServerCertificate ensures the presence of a valid server certificate and CA, generating them if necessary.

func EnsureUnauthenticatedBladectlConfig added in v0.10.0

func EnsureUnauthenticatedBladectlConfig(ctx context.Context, serverAddr string, serverMode ListenMode) humane.Error

func GenerateClientCert added in v0.10.0

func GenerateClientCert(commonName string) (caPEM, certPEM, keyPEM []byte, herr humane.Error)

GenerateClientCert creates a client certificate signed by a CA with the specified common name. It validates the CA certificate and private key before generating the client certificate. Returns CA certificate, client certificate, private key in PEM format, and any error encountered.

func NewComputeBladeAgent

NewComputeBladeAgent creates and initializes a new ComputeBladeAgent, including gRPC server setup and hardware interfaces.

Types

type ListenMode added in v0.10.0

type ListenMode string
const (
	ModeTcp  ListenMode = "tcp"
	ModeUnix ListenMode = "unix"
)

func ListenModeFromString added in v0.10.0

func ListenModeFromString(s string) (ListenMode, humane.Error)

func (ListenMode) String added in v0.10.0

func (l ListenMode) String() string

Jump to

Keyboard shortcuts

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