macbaremetal

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IPRangeAny = net.IPNet{
	IP:   net.IPv4(0, 0, 0, 0),
	Mask: net.IPv4Mask(0, 0, 0, 0),
}
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

func (Device) Columns

func (d Device) Columns() []string

func (Device) Keys

func (d Device) Keys() []string

func (Device) String

func (d Device) String() string

func (Device) Values

func (d Device) Values() map[string]interface{}

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

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 (DeviceService) Delete

func (d DeviceService) Delete(ctx context.Context, id int) error

func (DeviceService) Get

func (d DeviceService) Get(ctx context.Context, id int) (Device, error)

func (DeviceService) GetVNC

func (DeviceService) List

func (d DeviceService) List(ctx context.Context) ([]Device, 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 (DeviceWorkflowService) Run

type ElasticIP

type ElasticIP macbaremetal.ElasticIP

func (ElasticIP) Columns

func (e ElasticIP) Columns() []string

func (ElasticIP) Keys

func (e ElasticIP) Keys() []string

func (ElasticIP) String

func (e ElasticIP) String() string

func (ElasticIP) Values

func (e ElasticIP) Values() map[string]interface{}

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 (ElasticIPService) Delete

func (e ElasticIPService) Delete(ctx context.Context, id int) error

func (ElasticIPService) Detach

func (e ElasticIPService) Detach(ctx context.Context, deviceID, elasticIPID int) error

func (ElasticIPService) List

func (e ElasticIPService) List(ctx context.Context) ([]ElasticIP, error)

type Network

type Network macbaremetal.Network

func (Network) Columns

func (n Network) Columns() []string

func (Network) Keys

func (n Network) Keys() []string

func (Network) String

func (n Network) String() string

func (Network) Values

func (n Network) Values() map[string]interface{}

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 NetworkInterfaceService

type NetworkInterfaceService struct {
	// contains filtered or unexported fields
}

func NewNetworkInterfaceService

func NewNetworkInterfaceService(client goclient.Client, deviceID int) NetworkInterfaceService

func (NetworkInterfaceService) List

func (NetworkInterfaceService) UpdateSecurityGroup

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) Delete

func (n NetworkService) Delete(ctx context.Context, id int) error

func (NetworkService) List

func (n NetworkService) List(ctx context.Context) ([]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

func (Router) Columns

func (r Router) Columns() []string

func (Router) Keys

func (r Router) Keys() []string

func (Router) Values

func (r Router) Values() map[string]interface{}

type RouterService

type RouterService struct {
	// contains filtered or unexported fields
}

func NewRouterService

func NewRouterService(client goclient.Client) RouterService

func (RouterService) List

func (r RouterService) List(ctx context.Context) ([]Router, error)

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 (SecurityGroupRuleService) Delete

func (s SecurityGroupRuleService) Delete(ctx context.Context, id int) error

func (SecurityGroupRuleService) List

func (SecurityGroupRuleService) Update

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 (SecurityGroupService) Delete

func (s SecurityGroupService) Delete(ctx context.Context, id int) error

func (SecurityGroupService) List

func (SecurityGroupService) Update

type SecurityGroupUpdate

type SecurityGroupUpdate = macbaremetal.SecurityGroupUpdate

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL