Documentation
¶
Index ¶
- Variables
- func DynamicCertificateLoader(certPath, keyPath string) func(*tls.ClientHelloInfo) (*tls.Certificate, error)
- type AdoptRequest
- type AdoptResponse
- type AdoptedUpdater
- type Adopter
- type Checker
- type InventoryCredentialsUpdater
- type Options
- type Reloader
- type Runner
- type RuntimeAdopter
- type Service
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNodeAlreadyAdopted = internalapi.ErrNodeAlreadyAdopted
Functions ¶
func DynamicCertificateLoader ¶
func DynamicCertificateLoader(certPath, keyPath string) func(*tls.ClientHelloInfo) (*tls.Certificate, error)
Types ¶
type AdoptRequest ¶
type AdoptRequest = internalapi.AdoptRequest
type AdoptResponse ¶
type AdoptResponse = internalapi.AdoptResponse
type AdoptedUpdater ¶
type AdoptedUpdater interface {
UpdateAdopted(bool)
}
type Adopter ¶
type Adopter interface {
ApplyAdoption(context.Context, AdoptRequest) (AdoptResponse, error)
}
type Checker ¶
Checker is the standalone update checker/installer, re-exported so callers outside internal/api can construct and inject one.
type Options ¶
type Options struct {
Version string
Serial string
StartedAt time.Time
Runner Runner
UPSCPath string
UPSCmdPath string
UPSRWPath string
CPUTempPath string
MemInfoPath string
CPUStatPath string
RootPath string
AdoptionPath string
DisableAuth bool
AuthPath string
UpdatesRoot string
UpdatesChecker *updates.Checker
NUTUser string
NUTPassword string
Adopter Adopter
}
type RuntimeAdopter ¶
type RuntimeAdopter struct {
Logger *log.Logger
ConfigDir string
AdoptionPath string
Reloader Reloader
Advertiser AdoptedUpdater
Inventory InventoryCredentialsUpdater
Version string
Serial string
TLSPort int
TLSCertPath string
TLSKeyPath string
}
func (*RuntimeAdopter) ApplyAdoption ¶
func (a *RuntimeAdopter) ApplyAdoption(ctx context.Context, req AdoptRequest) (AdoptResponse, error)
type Service ¶
type Service = internalapi.Service
Click to show internal directories.
Click to hide internal directories.