Documentation ¶
Index ¶
- Variables
- type Device
- type DeviceAction
- type DeviceActionService
- type DeviceCreate
- type DeviceRunAction
- type DeviceRunWorkflow
- type DeviceService
- func (d DeviceService) Create(ctx context.Context, data DeviceCreate) (common.Ordering, error)
- func (d DeviceService) Delete(ctx context.Context, id int) error
- func (d DeviceService) Get(ctx context.Context, id int) (Device, error)
- func (d DeviceService) GetVNC(ctx context.Context, id int) (DeviceVNCConnection, error)
- func (d DeviceService) List(ctx context.Context) ([]Device, error)
- func (d DeviceService) Update(ctx context.Context, id int, data DeviceUpdate) (Device, error)
- type DeviceUpdate
- type DeviceVNCConnection
- type DeviceWorkflow
- type DeviceWorkflowService
- type ElasticIP
- type ElasticIPAttach
- type ElasticIPCreate
- type ElasticIPService
- func (e ElasticIPService) Attach(ctx context.Context, deviceID int, data ElasticIPAttach) (ElasticIP, error)
- func (e ElasticIPService) Create(ctx context.Context, data ElasticIPCreate) (ElasticIP, error)
- func (e ElasticIPService) Delete(ctx context.Context, id int) error
- func (e ElasticIPService) Detach(ctx context.Context, deviceID, elasticIPID int) error
- func (e ElasticIPService) List(ctx context.Context) ([]ElasticIP, error)
- type Network
- type NetworkCreate
- type NetworkInterface
- type NetworkInterfaceSecurityGroupUpdate
- type NetworkInterfaceService
- type NetworkService
- func (n NetworkService) Create(ctx context.Context, data NetworkCreate) (Network, error)
- func (n NetworkService) Delete(ctx context.Context, id int) error
- func (n NetworkService) List(ctx context.Context) ([]Network, error)
- func (n NetworkService) Update(ctx context.Context, id int, data NetworkUpdate) (Network, error)
- type NetworkUpdate
- type Router
- type RouterService
- type RouterUpdate
- type SecurityGroup
- type SecurityGroupCreate
- type SecurityGroupRule
- type SecurityGroupRuleCreate
- type SecurityGroupRuleService
- func (s SecurityGroupRuleService) Create(ctx context.Context, data SecurityGroupRuleCreate) (SecurityGroupRule, error)
- func (s SecurityGroupRuleService) Delete(ctx context.Context, id int) error
- func (s SecurityGroupRuleService) List(ctx context.Context) ([]SecurityGroupRule, error)
- func (s SecurityGroupRuleService) Update(ctx context.Context, id int, data SecurityGroupRuleUpdate) (SecurityGroupRule, error)
- type SecurityGroupRuleUpdate
- type SecurityGroupService
- func (s SecurityGroupService) Create(ctx context.Context, data SecurityGroupCreate) (SecurityGroup, error)
- func (s SecurityGroupService) Delete(ctx context.Context, id int) error
- func (s SecurityGroupService) List(ctx context.Context) ([]SecurityGroup, error)
- func (s SecurityGroupService) Update(ctx context.Context, id int, data SecurityGroupUpdate) (SecurityGroup, error)
- type SecurityGroupUpdate
Constants ¶
This section is empty.
Variables ¶
View Source
var ProtocolIDs = map[string]int{ "icmp": macbaremetal.ProtocolICMP, "tcp": macbaremetal.ProtocolTCP, "udp": macbaremetal.ProtocolUDP, }
View Source
var ProtocolNames = map[int]string{ macbaremetal.ProtocolICMP: "icmp", macbaremetal.ProtocolTCP: "tcp", macbaremetal.ProtocolUDP: "udp", }
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device macbaremetal.Device
type DeviceAction ¶
type DeviceAction macbaremetal.DeviceAction
func (DeviceAction) Columns ¶
func (d DeviceAction) Columns() []string
func (DeviceAction) Keys ¶
func (d DeviceAction) Keys() []string
func (DeviceAction) Values ¶
func (d DeviceAction) Values() map[string]interface{}
type DeviceActionService ¶
type DeviceActionService struct {
// contains filtered or unexported fields
}
func NewDeviceActionService ¶
func NewDeviceActionService(client goclient.Client, deviceID int) DeviceActionService
func (DeviceActionService) Run ¶
func (d DeviceActionService) Run(ctx context.Context, data DeviceRunAction) (Device, error)
type DeviceCreate ¶
type DeviceCreate = macbaremetal.DeviceCreate
type DeviceRunAction ¶
type DeviceRunAction = macbaremetal.DeviceRunAction
type DeviceRunWorkflow ¶
type DeviceRunWorkflow = macbaremetal.DeviceRunWorkflow
type DeviceService ¶
type DeviceService struct {
// contains filtered or unexported fields
}
func NewDeviceService ¶
func NewDeviceService(client goclient.Client) DeviceService
func (DeviceService) Create ¶
func (d DeviceService) Create(ctx context.Context, data DeviceCreate) (common.Ordering, error)
func (DeviceService) GetVNC ¶
func (d DeviceService) GetVNC(ctx context.Context, id int) (DeviceVNCConnection, error)
func (DeviceService) Update ¶
func (d DeviceService) Update(ctx context.Context, id int, data DeviceUpdate) (Device, error)
type DeviceUpdate ¶
type DeviceUpdate = macbaremetal.DeviceUpdate
type DeviceVNCConnection ¶
type DeviceVNCConnection = macbaremetal.DeviceVNCConnection
type DeviceWorkflow ¶
type DeviceWorkflow macbaremetal.DeviceWorkflow
func (DeviceWorkflow) Columns ¶
func (d DeviceWorkflow) Columns() []string
func (DeviceWorkflow) Keys ¶
func (d DeviceWorkflow) Keys() []string
func (DeviceWorkflow) Values ¶
func (d DeviceWorkflow) Values() map[string]interface{}
type DeviceWorkflowService ¶
type DeviceWorkflowService struct {
// contains filtered or unexported fields
}
func NewDeviceWorkflowService ¶
func NewDeviceWorkflowService(client goclient.Client, deviceID int) DeviceWorkflowService
func (DeviceWorkflowService) List ¶
func (d DeviceWorkflowService) List(ctx context.Context) ([]DeviceWorkflow, error)
func (DeviceWorkflowService) Run ¶
func (d DeviceWorkflowService) Run(ctx context.Context, data DeviceRunWorkflow) (Device, error)
type ElasticIP ¶
type ElasticIP macbaremetal.ElasticIP
type ElasticIPAttach ¶
type ElasticIPAttach = macbaremetal.ElasticIPAttach
type ElasticIPCreate ¶
type ElasticIPCreate = macbaremetal.ElasticIPCreate
type ElasticIPService ¶
type ElasticIPService struct {
// contains filtered or unexported fields
}
func NewElasticIPService ¶
func NewElasticIPService(client goclient.Client) ElasticIPService
func (ElasticIPService) Attach ¶
func (e ElasticIPService) Attach(ctx context.Context, deviceID int, data ElasticIPAttach) (ElasticIP, error)
func (ElasticIPService) Create ¶
func (e ElasticIPService) Create(ctx context.Context, data ElasticIPCreate) (ElasticIP, error)
func (ElasticIPService) Delete ¶
func (e ElasticIPService) Delete(ctx context.Context, id int) error
type Network ¶
type Network macbaremetal.Network
type NetworkCreate ¶
type NetworkCreate = macbaremetal.NetworkCreate
type NetworkInterface ¶
type NetworkInterface macbaremetal.NetworkInterface
func (NetworkInterface) Columns ¶
func (n NetworkInterface) Columns() []string
func (NetworkInterface) Keys ¶
func (n NetworkInterface) Keys() []string
func (NetworkInterface) Values ¶
func (n NetworkInterface) Values() map[string]interface{}
type NetworkInterfaceSecurityGroupUpdate ¶
type NetworkInterfaceSecurityGroupUpdate = macbaremetal.NetworkInterfaceSecurityGroupUpdate
type NetworkInterfaceService ¶
type NetworkInterfaceService struct {
// contains filtered or unexported fields
}
func NewNetworkInterfaceService ¶
func NewNetworkInterfaceService(client goclient.Client, deviceID int) NetworkInterfaceService
func (NetworkInterfaceService) List ¶
func (n NetworkInterfaceService) List(ctx context.Context) ([]NetworkInterface, error)
func (NetworkInterfaceService) UpdateSecurityGroup ¶
func (n NetworkInterfaceService) UpdateSecurityGroup(ctx context.Context, id int, data NetworkInterfaceSecurityGroupUpdate) (NetworkInterface, error)
type NetworkService ¶
type NetworkService struct {
// contains filtered or unexported fields
}
func NewNetworkService ¶
func NewNetworkService(client goclient.Client) NetworkService
func (NetworkService) Create ¶
func (n NetworkService) Create(ctx context.Context, data NetworkCreate) (Network, error)
func (NetworkService) Update ¶
func (n NetworkService) Update(ctx context.Context, id int, data NetworkUpdate) (Network, error)
type NetworkUpdate ¶
type NetworkUpdate = macbaremetal.NetworkUpdate
type Router ¶
type Router macbaremetal.Router
type RouterService ¶
type RouterService struct {
// contains filtered or unexported fields
}
func NewRouterService ¶
func NewRouterService(client goclient.Client) RouterService
func (RouterService) Update ¶
func (r RouterService) Update(ctx context.Context, id int, data RouterUpdate) (Router, error)
type RouterUpdate ¶
type RouterUpdate = macbaremetal.RouterUpdate
type SecurityGroup ¶
type SecurityGroup macbaremetal.SecurityGroup
func (SecurityGroup) Columns ¶
func (s SecurityGroup) Columns() []string
func (SecurityGroup) Keys ¶
func (s SecurityGroup) Keys() []string
func (SecurityGroup) String ¶
func (s SecurityGroup) String() string
func (SecurityGroup) Values ¶
func (s SecurityGroup) Values() map[string]interface{}
type SecurityGroupCreate ¶
type SecurityGroupCreate = macbaremetal.SecurityGroupCreate
type SecurityGroupRule ¶
type SecurityGroupRule macbaremetal.SecurityGroupRule
func (SecurityGroupRule) Columns ¶
func (s SecurityGroupRule) Columns() []string
func (SecurityGroupRule) Keys ¶
func (s SecurityGroupRule) Keys() []string
func (SecurityGroupRule) Values ¶
func (s SecurityGroupRule) Values() map[string]interface{}
type SecurityGroupRuleCreate ¶
type SecurityGroupRuleCreate = macbaremetal.SecurityGroupRuleOptions
type SecurityGroupRuleService ¶
type SecurityGroupRuleService struct {
// contains filtered or unexported fields
}
func NewSecurityGroupRuleService ¶
func NewSecurityGroupRuleService(client goclient.Client, securityGroupID int) SecurityGroupRuleService
func (SecurityGroupRuleService) Create ¶
func (s SecurityGroupRuleService) Create(ctx context.Context, data SecurityGroupRuleCreate) (SecurityGroupRule, error)
func (SecurityGroupRuleService) Delete ¶
func (s SecurityGroupRuleService) Delete(ctx context.Context, id int) error
func (SecurityGroupRuleService) List ¶
func (s SecurityGroupRuleService) List(ctx context.Context) ([]SecurityGroupRule, error)
func (SecurityGroupRuleService) Update ¶
func (s SecurityGroupRuleService) Update(ctx context.Context, id int, data SecurityGroupRuleUpdate) (SecurityGroupRule, error)
type SecurityGroupRuleUpdate ¶
type SecurityGroupRuleUpdate = macbaremetal.SecurityGroupRuleOptions
type SecurityGroupService ¶
type SecurityGroupService struct {
// contains filtered or unexported fields
}
func NewSecurityGroupService ¶
func NewSecurityGroupService(client goclient.Client) SecurityGroupService
func (SecurityGroupService) Create ¶
func (s SecurityGroupService) Create(ctx context.Context, data SecurityGroupCreate) (SecurityGroup, error)
func (SecurityGroupService) Delete ¶
func (s SecurityGroupService) Delete(ctx context.Context, id int) error
func (SecurityGroupService) List ¶
func (s SecurityGroupService) List(ctx context.Context) ([]SecurityGroup, error)
func (SecurityGroupService) Update ¶
func (s SecurityGroupService) Update(ctx context.Context, id int, data SecurityGroupUpdate) (SecurityGroup, error)
type SecurityGroupUpdate ¶
type SecurityGroupUpdate = macbaremetal.SecurityGroupUpdate
Click to show internal directories.
Click to hide internal directories.