Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Provision ¶
func (c *Client) Provision() (*MetalDevice, error)
type DeviceCreator ¶
type DeviceCreator interface { SetPlan(string) SetOperatingSystem(string) SetHostname(string) SetUserdata(string) SetTags([]string) SetHardwareReservationId(string) SetBillingCycle(metalv1.DeviceCreateInputBillingCycle) SetSpotInstance(bool) SetSpotPriceMax(float32) SetTerminationTime(time.Time) SetCustomdata(map[string]interface{}) }
type MetalDevice ¶
type MetalDevice struct {
// contains filtered or unexported fields
}
func NewSelfDevice ¶
func NewSelfDevice() *MetalDevice
func (*MetalDevice) Delete ¶
func (c *MetalDevice) Delete()
func (*MetalDevice) Run ¶
func (c *MetalDevice) Run(detach bool, args []string)
type OneOfDeviceCreator ¶
type OneOfDeviceCreator interface { DeviceCreator GetActualInstance() interface{} }
Click to show internal directories.
Click to hide internal directories.