Documentation
¶
Index ¶
- Constants
- func AddRemoteHandler(spec *Specification, handler slog.Handler) (slog.Handler, error)
- func NewMetalAPIClient(log *slog.Logger, clientConfig *pixiecore.Client) (infrav2connect.BootServiceClient, error)
- func Run(log *slog.Logger, spec *Specification, hal hal.InBand) (*event.EventEmitter, error)
- func StartSSHD(log *slog.Logger, ip string) error
- func WaitForAllocation(ctx context.Context, log *slog.Logger, c infrav2connect.BootServiceClient, ...) (*apiv2.MachineAllocation, error)
- type Specification
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 NewMetalAPIClient ¶ added in v0.10.0
func NewMetalAPIClient(log *slog.Logger, clientConfig *pixiecore.Client) (infrav2connect.BootServiceClient, error)
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
func StartSSHD ¶
StartSSHD will start sshd to be able to diagnose problems on the pxe bootet machine.
func WaitForAllocation ¶ added in v0.16.0
func WaitForAllocation(ctx context.Context, log *slog.Logger, c infrav2connect.BootServiceClient, machineID string) (*apiv2.MachineAllocation, error)
WaitForAllocation can be used to call the wait method continuously until an allocation was made. This is made for the metal-hammer and located here for better testability.
Types ¶
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
// PixieConfig is fetched from pixiecore to initiate the client for the metal-apiserver and logging config
PixieConfig *pixiecore.V2MetalHammerConfigPayload
// contains filtered or unexported fields
}
Specification defines configuration items of the application
Source Files
¶
Click to show internal directories.
Click to hide internal directories.