Documentation
¶
Index ¶
- func EnsureAuthenticatedBladectlConfig(ctx context.Context, serverAddr string, serverMode ListenMode) humane.Error
- func EnsureServerCertificate(ctx context.Context) (tls.Certificate, *x509.CertPool, humane.Error)
- func EnsureUnauthenticatedBladectlConfig(ctx context.Context, serverAddr string, serverMode ListenMode) humane.Error
- func GenerateClientCert(commonName string) (caPEM, certPEM, keyPEM []byte, herr humane.Error)
- func NewComputeBladeAgent(ctx context.Context, config agent.ComputeBladeAgentConfig, ...) (agent.ComputeBladeAgent, error)
- type ListenMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureAuthenticatedBladectlConfig ¶ added in v0.10.0
func EnsureServerCertificate ¶ added in v0.10.0
EnsureServerCertificate ensures the presence of a valid server certificate and CA, generating them if necessary.
func EnsureUnauthenticatedBladectlConfig ¶ added in v0.10.0
func GenerateClientCert ¶ added in v0.10.0
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 ¶
func NewComputeBladeAgent(ctx context.Context, config agent.ComputeBladeAgentConfig, agentInfo agent.ComputeBladeAgentInfo) (agent.ComputeBladeAgent, error)
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
Click to show internal directories.
Click to hide internal directories.