macbaremetal

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 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) Values

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

type DeviceCreate

type DeviceCreate = macbaremetal.DeviceCreate

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

type ElasticIP macbaremetal.ElasticIP

func (ElasticIP) Columns

func (e ElasticIP) Columns() []string

func (ElasticIP) Keys

func (e ElasticIP) Keys() []string

func (ElasticIP) Values

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

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

func (ElasticIPService) Delete

func (e ElasticIPService) Delete(ctx context.Context, id 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) Values

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

type NetworkCreate

type NetworkCreate = macbaremetal.NetworkCreate

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