Documentation
¶
Index ¶
- type AutoCapabilities
- type Config
- type Discovery
- type Enrollment
- type Option
- func WithAutoDiscoveryAutoEnrollmentEnabled(enabled bool) Option
- func WithAutoDiscoveryNamespace(ns string) Option
- func WithBackend(b grpcinternal.BackendReadWriter) Option
- func WithBindAddrPort(addrPort netip.AddrPort) Option
- func WithLogger(l logr.Logger) Option
- func WithTLSCert(cert credentials.TransportCredentials) Option
- type TLS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoCapabilities ¶ added in v0.19.1
type AutoCapabilities struct {
Enrollment Enrollment
Discovery Discovery
}
type Config ¶
type Config struct {
Backend grpcinternal.BackendReadWriter
BindAddrPort netip.AddrPort
Logger logr.Logger
Auto AutoCapabilities
TLS TLS
}
type Discovery ¶ added in v0.19.1
type Discovery struct {
Enabled bool
Namespace string
EnrollmentEnabled bool
Backend grpcinternal.AutoDiscoveryReadCreator
}
type Enrollment ¶ added in v0.19.1
type Enrollment struct {
Enabled bool
Backend grpcinternal.AutoEnrollmentReadCreator
}
type Option ¶
type Option func(*Config)
Option is a functional option type.
func WithAutoDiscoveryAutoEnrollmentEnabled ¶ added in v0.19.1
WithAutoDiscoveryAutoEnrollmentEnabled sets the value for hardware.spec.auto.enrollmentEnabled when auto discovery creates Hardware objects.
func WithAutoDiscoveryNamespace ¶ added in v0.19.0
WithAutoDiscoveryNamespace sets the namespace for auto discovery.
func WithBackend ¶
func WithBackend(b grpcinternal.BackendReadWriter) Option
WithBackend sets the backend for the server.
func WithBindAddrPort ¶
WithBindAddrPort sets the bind address and port for the server.
func WithTLSCert ¶ added in v0.22.0
func WithTLSCert(cert credentials.TransportCredentials) Option
WithTLSCert sets the TLS key file for the server.
type TLS ¶ added in v0.22.0
type TLS struct {
Cert credentials.TransportCredentials
}
Click to show internal directories.
Click to hide internal directories.