Versions in this module Expand all Collapse all v0 v0.17.0 Apr 30, 2024 v0.16.0 Nov 9, 2023 Changes in this version + type API struct + func New(opts *Options) (*API, error) + func (a *API) AddKey(name, key string) (string, error) + func (a *API) CreateDevice(hostname string, conf *conf.Conf, console Console) (*packngo.Device, error) + func (a *API) DeleteDevice(deviceID string) error + func (a *API) DeleteKey(keyID string) error + func (a *API) GC(gracePeriod time.Duration) error + func (a *API) GetDeviceAddress(device *packngo.Device, family int, public bool) string + func (a *API) ListKeys() ([]packngo.SSHKey, error) + func (a *API) PreflightCheck() error + type Console interface + SSHClient func(ip, user string) (*ssh.Client, error) + type Options struct + ApiKey string + Architecture string + ConfigPath string + Facility string + IPXEURL string + ImageURL string + Plan string + Profile string + Project string