Documentation ¶
Index ¶
- type API
- 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) GetDeviceAddress(device *packngo.Device, family int, public bool) string
- func (a *API) PreflightCheck() error
- type Console
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) CreateDevice ¶
func (a *API) CreateDevice(hostname string, conf *conf.Conf, console Console) (*packngo.Device, error)
console is optional, and is closed on error or when the device is deleted.
func (*API) DeleteDevice ¶
func (*API) GetDeviceAddress ¶
func (*API) PreflightCheck ¶
type Options ¶
type Options struct { *platform.Options // Config file. Defaults to $HOME/.config/packet.json. ConfigPath string // Profile name Profile string // API key (overrides config profile) ApiKey string // Project UUID (overrides config profile) Project string // Packet location code Facility string // Slug of the device type (e.g. "baremetal_0") Plan string // The Container Linux board name Board string // e.g. http://alpha.release.core-os.net/amd64-usr/current InstallerImageURL string // e.g. https://alpha.release.core-os.net/amd64-usr ImageBaseURL string // Version number or "current" ImageVersion string // Options for Google Storage GSOptions *gcloud.Options // Google Storage base URL for temporary uploads // e.g. gs://users.developer.core-os.net/bovik/mantle StorageURL string }
Click to show internal directories.
Click to hide internal directories.