Versions in this module Expand all Collapse all v2 v2.0.1 Oct 14, 2022 Changes in this version + var IPRangeAny = net.IPNet + var ProtocolIDs = map[string]int + var ProtocolNames = map[int]string + type Device macbaremetal.Device + func (d Device) Columns() []string + func (d Device) Keys() []string + func (d Device) String() string + func (d Device) Values() map[string]interface{} + type DeviceAction macbaremetal.DeviceAction + func (d DeviceAction) Columns() []string + func (d DeviceAction) Keys() []string + func (d DeviceAction) Values() map[string]interface{} + type DeviceActionService struct + func NewDeviceActionService(client goclient.Client, deviceID int) DeviceActionService + func (d DeviceActionService) Run(ctx context.Context, data DeviceRunAction) (Device, error) + type DeviceCreate = macbaremetal.DeviceCreate + type DeviceRunAction = macbaremetal.DeviceRunAction + type DeviceRunWorkflow = macbaremetal.DeviceRunWorkflow + type DeviceService struct + func NewDeviceService(client goclient.Client) 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 = macbaremetal.DeviceUpdate + type DeviceVNCConnection = macbaremetal.DeviceVNCConnection + type DeviceWorkflow macbaremetal.DeviceWorkflow + func (d DeviceWorkflow) Columns() []string + func (d DeviceWorkflow) Keys() []string + func (d DeviceWorkflow) Values() map[string]interface{} + type DeviceWorkflowService struct + func NewDeviceWorkflowService(client goclient.Client, deviceID int) DeviceWorkflowService + func (d DeviceWorkflowService) List(ctx context.Context) ([]DeviceWorkflow, error) + func (d DeviceWorkflowService) Run(ctx context.Context, data DeviceRunWorkflow) (Device, error) + type ElasticIP macbaremetal.ElasticIP + func (e ElasticIP) Columns() []string + func (e ElasticIP) Keys() []string + func (e ElasticIP) String() string + func (e ElasticIP) Values() map[string]interface{} + type ElasticIPAttach = macbaremetal.ElasticIPAttach + type ElasticIPCreate = macbaremetal.ElasticIPCreate + type ElasticIPService struct + func NewElasticIPService(client goclient.Client) 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 macbaremetal.Network + func (n Network) Columns() []string + func (n Network) Keys() []string + func (n Network) String() string + func (n Network) Values() map[string]interface{} + type NetworkCreate = macbaremetal.NetworkCreate + type NetworkInterface macbaremetal.NetworkInterface + func (n NetworkInterface) Columns() []string + func (n NetworkInterface) Keys() []string + func (n NetworkInterface) Values() map[string]interface{} + type NetworkInterfaceSecurityGroupUpdate = macbaremetal.NetworkInterfaceSecurityGroupUpdate + type NetworkInterfaceService struct + func NewNetworkInterfaceService(client goclient.Client, deviceID int) NetworkInterfaceService + func (n NetworkInterfaceService) List(ctx context.Context) ([]NetworkInterface, error) + func (n NetworkInterfaceService) UpdateSecurityGroup(ctx context.Context, id int, data NetworkInterfaceSecurityGroupUpdate) (NetworkInterface, error) + type NetworkService struct + func NewNetworkService(client goclient.Client) 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 = macbaremetal.NetworkUpdate + type Router macbaremetal.Router + func (r Router) Columns() []string + func (r Router) Keys() []string + func (r Router) Values() map[string]interface{} + type RouterService struct + func NewRouterService(client goclient.Client) RouterService + func (r RouterService) List(ctx context.Context) ([]Router, error) + func (r RouterService) Update(ctx context.Context, id int, data RouterUpdate) (Router, error) + type RouterUpdate = macbaremetal.RouterUpdate + type SecurityGroup macbaremetal.SecurityGroup + func (s SecurityGroup) Columns() []string + func (s SecurityGroup) Keys() []string + func (s SecurityGroup) String() string + func (s SecurityGroup) Values() map[string]interface{} + type SecurityGroupCreate = macbaremetal.SecurityGroupCreate + type SecurityGroupRule macbaremetal.SecurityGroupRule + func (s SecurityGroupRule) Columns() []string + func (s SecurityGroupRule) Keys() []string + func (s SecurityGroupRule) Values() map[string]interface{} + type SecurityGroupRuleCreate = macbaremetal.SecurityGroupRuleOptions + type SecurityGroupRuleService struct + func NewSecurityGroupRuleService(client goclient.Client, securityGroupID int) 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 = macbaremetal.SecurityGroupRuleOptions + type SecurityGroupService struct + func NewSecurityGroupService(client goclient.Client) 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 = macbaremetal.SecurityGroupUpdate