Documentation ¶
Index ¶
Constants ¶
View Source
const HammerBanner = `` /* 212-byte string literal not displayed */
HammerBanner our mighty logo.
Variables ¶
This section is empty.
Functions ¶
func AddRemoteHandler ¶ added in v0.12.1
func Run ¶
func Run(log *slog.Logger, spec *Specification, hal hal.InBand) (*event.EventEmitter, error)
Run orchestrates the whole register/wipe/format/burn and reboot process
Types ¶
type MetalAPIClient ¶ added in v0.10.0
type MetalAPIClient struct {
// contains filtered or unexported fields
}
func NewMetalAPIClient ¶ added in v0.10.0
func NewMetalAPIClient(log *slog.Logger, spec *Specification) (*MetalAPIClient, error)
NewMetalAPIClient fetches the address,hmac and certificates from pixie needed to communicate with metal-api, and returns a new client that can be used to invoke all provided grpc and rest endpoints.
func (*MetalAPIClient) BootService ¶ added in v0.10.0
func (c *MetalAPIClient) BootService() v1.BootServiceClient
func (*MetalAPIClient) Event ¶ added in v0.10.0
func (c *MetalAPIClient) Event() v1.EventServiceClient
func (*MetalAPIClient) Machine ¶ added in v0.13.0
func (c *MetalAPIClient) Machine() machine.ClientService
type Specification ¶
type Specification struct { // Debug turn on debug log Debug bool // PixieAPIUrl is the endpoint URL where the pixie reside PixieAPIUrl string // BGPEnabled if set to true real bgp configuration is configured, otherwise dhcp will be used BGPEnabled bool // Cidr of BGP interface in DEV Mode Cidr string // ConsolePassword of the metal user valid for one day. ConsolePassword string // MachineUUID is the unique identifier of this machine MachineUUID string // IP of this instance IP string // MetalConfig is fetched from pixiecore to get the certs for the metal-api and logging config MetalConfig *pixiecore.MetalConfig // contains filtered or unexported fields }
Specification defines configuration items of the application
func NewSpec ¶
func NewSpec(log *slog.Logger) *Specification
NewSpec fills Specification with configuration made by kernel commandline
Source Files ¶
Click to show internal directories.
Click to hide internal directories.