Documentation ¶
Index ¶
- type ApiClient
- type BlockDevice
- func (b *BlockDevice) AddTag(systemID string, id int, tag string) (blockDevice *entity.BlockDevice, err error)
- func (b *BlockDevice) Delete(systemID string, id int) error
- func (b *BlockDevice) Format(systemID string, id int, fsType string) (blockDevice *entity.BlockDevice, err error)
- func (b *BlockDevice) Get(systemID string, id int) (blockDevice *entity.BlockDevice, err error)
- func (b *BlockDevice) Mount(systemID string, id int, mountPoint string, mountOptions string) (blockDevice *entity.BlockDevice, err error)
- func (b *BlockDevice) RemoveTag(systemID string, id int, tag string) (blockDevice *entity.BlockDevice, err error)
- func (b *BlockDevice) SetBootDisk(systemID string, id int) error
- func (b *BlockDevice) Unformat(systemID string, id int) (blockDevice *entity.BlockDevice, err error)
- func (b *BlockDevice) Unmount(systemID string, id int) (blockDevice *entity.BlockDevice, err error)
- func (b *BlockDevice) Update(systemID string, id int, params *entity.BlockDeviceParams) (blockDevice *entity.BlockDevice, err error)
- type BlockDevicePartition
- func (p *BlockDevicePartition) AddTag(systemID string, blockDeviceID int, id int, tag string) (partition *entity.BlockDevicePartition, err error)
- func (p *BlockDevicePartition) Delete(systemID string, blockDeviceID int, id int) error
- func (p *BlockDevicePartition) Format(systemID string, blockDeviceID int, id int, fsType string, label string) (partition *entity.BlockDevicePartition, err error)
- func (p *BlockDevicePartition) Get(systemID string, blockDeviceID int, id int) (partition *entity.BlockDevicePartition, err error)
- func (p *BlockDevicePartition) Mount(systemID string, blockDeviceID int, id int, mountPoint string, ...) (partition *entity.BlockDevicePartition, err error)
- func (p *BlockDevicePartition) RemoveTag(systemID string, blockDeviceID int, id int, tag string) (partition *entity.BlockDevicePartition, err error)
- func (p *BlockDevicePartition) Unformat(systemID string, blockDeviceID int, id int) (partition *entity.BlockDevicePartition, err error)
- func (p *BlockDevicePartition) Unmount(systemID string, blockDeviceID int, id int) (partition *entity.BlockDevicePartition, err error)
- type BlockDevicePartitions
- type BlockDevices
- type Client
- type DNSResource
- type DNSResourceRecord
- type DNSResourceRecords
- type DNSResources
- type Domain
- type Domains
- type Fabric
- type Fabrics
- type IPAddresses
- type IPRange
- type IPRanges
- type Machine
- func (m *Machine) ClearDefaultGateways(systemID string) (ma *entity.Machine, err error)
- func (m *Machine) Commission(systemID string, params *entity.MachineCommissionParams) (ma *entity.Machine, err error)
- func (m *Machine) Delete(systemID string) error
- func (m *Machine) Deploy(systemID string, params *entity.MachineDeployParams) (ma *entity.Machine, err error)
- func (m *Machine) Get(systemID string) (ma *entity.Machine, err error)
- func (m *Machine) GetPowerParameters(systemID string) (params map[string]string, err error)
- func (m *Machine) Lock(systemID string, comment string) (ma *entity.Machine, err error)
- func (m *Machine) Update(systemID string, machineParams *entity.MachineParams, ...) (ma *entity.Machine, err error)
- type Machines
- func (m *Machines) Allocate(params *entity.MachineAllocateParams) (ma *entity.Machine, err error)
- func (m *Machines) Create(machineParams *entity.MachineParams, powerParams map[string]string) (ma *entity.Machine, err error)
- func (m *Machines) Get() (machines []entity.Machine, err error)
- func (m *Machines) Release(systemIDs []string, comment string) error
- type NetworkInterface
- func (n *NetworkInterface) AddTag(systemID string, id int, tag string) (*entity.NetworkInterface, error)
- func (n *NetworkInterface) Delete(systemID string, id int) error
- func (n *NetworkInterface) Disconnect(systemID string, id int) (networkInterface *entity.NetworkInterface, err error)
- func (n *NetworkInterface) Get(systemID string, id int) (networkInterface *entity.NetworkInterface, err error)
- func (n *NetworkInterface) LinkSubnet(systemID string, id int, params *entity.NetworkInterfaceLinkParams) (*entity.NetworkInterface, error)
- func (n *NetworkInterface) RemoveTag(systemID string, id int, tag string) (*entity.NetworkInterface, error)
- func (n *NetworkInterface) SetDefaultGateway(systemID string, id int, linkID int) (networkInterface *entity.NetworkInterface, err error)
- func (n *NetworkInterface) UnlinkSubnet(systemID string, id int, linkID int) (networkInterface *entity.NetworkInterface, err error)
- func (n *NetworkInterface) Update(systemID string, id int, params interface{}) (networkInterface *entity.NetworkInterface, err error)
- type NetworkInterfaces
- func (n *NetworkInterfaces) CreateBond(systemID string, params *entity.NetworkInterfaceBondParams) (networkInterface *entity.NetworkInterface, err error)
- func (n *NetworkInterfaces) CreateBridge(systemID string, params *entity.NetworkInterfaceBridgeParams) (networkInterface *entity.NetworkInterface, err error)
- func (n *NetworkInterfaces) CreatePhysical(systemID string, params *entity.NetworkInterfacePhysicalParams) (networkInterface *entity.NetworkInterface, err error)
- func (n *NetworkInterfaces) CreateVLAN(systemID string, params *entity.NetworkInterfaceVLANParams) (networkInterface *entity.NetworkInterface, err error)
- func (n *NetworkInterfaces) Get(systemID string) (networkInterfaces []entity.NetworkInterface, err error)
- type Space
- type Spaces
- type Subnet
- func (s *Subnet) Delete(id int) error
- func (s *Subnet) Get(id int) (subnet *entity.Subnet, err error)
- func (s *Subnet) GetIPAddresses(id int) (subnetIPAddresses []subnet.IPAddress, err error)
- func (s *Subnet) GetReservedIPRanges(id int) (subnetReservedIPRanges []subnet.ReservedIPRange, err error)
- func (s *Subnet) GetStatistics(id int) (stats *subnet.Statistics, err error)
- func (s *Subnet) GetUnreservedIPRanges(id int) (ipRanges []subnet.IPRange, err error)
- func (s *Subnet) Update(id int, params *entity.SubnetParams) (subnet *entity.Subnet, err error)
- type Subnets
- type Tag
- func (t *Tag) AddMachines(name string, machineIds []string) error
- func (t *Tag) Delete(name string) error
- func (t *Tag) Get(name string) (tag *entity.Tag, err error)
- func (t *Tag) GetMachines(name string) (machines []entity.Machine, err error)
- func (t *Tag) RemoveMachines(name string, machineIds []string) error
- func (t *Tag) Update(name string, tagParams *entity.TagParams) (tag *entity.Tag, err error)
- type Tags
- type User
- type Users
- type VLAN
- type VLANs
- type VMHost
- func (p *VMHost) Compose(id int, params *entity.VMHostMachineParams) (machine *entity.Machine, err error)
- func (p *VMHost) Delete(id int) (err error)
- func (p *VMHost) Get(id int) (vmHost *entity.VMHost, err error)
- func (p *VMHost) GetParameters(id int) (params map[string]string, err error)
- func (p *VMHost) Refresh(id int) (vmHost *entity.VMHost, err error)
- func (p *VMHost) Update(id int, params *entity.VMHostParams) (vmHost *entity.VMHost, err error)
- type VMHosts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient struct { AuthClient gomaasapi.Client *gomaasapi.MAASObject }
func GetApiClient ¶
func (ApiClient) GetSubObject ¶
type BlockDevice ¶
type BlockDevice struct {
ApiClient ApiClient
}
func (*BlockDevice) AddTag ¶
func (b *BlockDevice) AddTag(systemID string, id int, tag string) (blockDevice *entity.BlockDevice, err error)
func (*BlockDevice) Format ¶
func (b *BlockDevice) Format(systemID string, id int, fsType string) (blockDevice *entity.BlockDevice, err error)
func (*BlockDevice) Get ¶
func (b *BlockDevice) Get(systemID string, id int) (blockDevice *entity.BlockDevice, err error)
func (*BlockDevice) Mount ¶
func (b *BlockDevice) Mount(systemID string, id int, mountPoint string, mountOptions string) (blockDevice *entity.BlockDevice, err error)
func (*BlockDevice) RemoveTag ¶
func (b *BlockDevice) RemoveTag(systemID string, id int, tag string) (blockDevice *entity.BlockDevice, err error)
func (*BlockDevice) SetBootDisk ¶
func (b *BlockDevice) SetBootDisk(systemID string, id int) error
func (*BlockDevice) Unformat ¶
func (b *BlockDevice) Unformat(systemID string, id int) (blockDevice *entity.BlockDevice, err error)
func (*BlockDevice) Unmount ¶
func (b *BlockDevice) Unmount(systemID string, id int) (blockDevice *entity.BlockDevice, err error)
func (*BlockDevice) Update ¶
func (b *BlockDevice) Update(systemID string, id int, params *entity.BlockDeviceParams) (blockDevice *entity.BlockDevice, err error)
type BlockDevicePartition ¶
type BlockDevicePartition struct {
ApiClient ApiClient
}
func (*BlockDevicePartition) AddTag ¶
func (p *BlockDevicePartition) AddTag(systemID string, blockDeviceID int, id int, tag string) (partition *entity.BlockDevicePartition, err error)
func (*BlockDevicePartition) Delete ¶
func (p *BlockDevicePartition) Delete(systemID string, blockDeviceID int, id int) error
func (*BlockDevicePartition) Format ¶
func (p *BlockDevicePartition) Format(systemID string, blockDeviceID int, id int, fsType string, label string) (partition *entity.BlockDevicePartition, err error)
func (*BlockDevicePartition) Get ¶
func (p *BlockDevicePartition) Get(systemID string, blockDeviceID int, id int) (partition *entity.BlockDevicePartition, err error)
func (*BlockDevicePartition) Mount ¶
func (p *BlockDevicePartition) Mount(systemID string, blockDeviceID int, id int, mountPoint string, mountOptions string) (partition *entity.BlockDevicePartition, err error)
func (*BlockDevicePartition) RemoveTag ¶
func (p *BlockDevicePartition) RemoveTag(systemID string, blockDeviceID int, id int, tag string) (partition *entity.BlockDevicePartition, err error)
func (*BlockDevicePartition) Unformat ¶
func (p *BlockDevicePartition) Unformat(systemID string, blockDeviceID int, id int) (partition *entity.BlockDevicePartition, err error)
func (*BlockDevicePartition) Unmount ¶
func (p *BlockDevicePartition) Unmount(systemID string, blockDeviceID int, id int) (partition *entity.BlockDevicePartition, err error)
type BlockDevicePartitions ¶
type BlockDevicePartitions struct {
ApiClient ApiClient
}
func (*BlockDevicePartitions) Create ¶
func (p *BlockDevicePartitions) Create(systemID string, blockDeviceID int, params *entity.BlockDevicePartitionParams) (partition *entity.BlockDevicePartition, err error)
func (*BlockDevicePartitions) Get ¶
func (p *BlockDevicePartitions) Get(systemID string, blockDeviceID int) (partitions []entity.BlockDevicePartition, err error)
type BlockDevices ¶
type BlockDevices struct {
ApiClient ApiClient
}
func (*BlockDevices) Create ¶
func (b *BlockDevices) Create(systemID string, params *entity.BlockDeviceParams) (blockDevice *entity.BlockDevice, err error)
func (*BlockDevices) Get ¶
func (b *BlockDevices) Get(systemID string) (blockDevices []entity.BlockDevice, err error)
type Client ¶
type Client struct { DNSResource api.DNSResource DNSResources api.DNSResources DNSResourceRecord api.DNSResourceRecord DNSResourceRecords api.DNSResourceRecords Domain api.Domain Domains api.Domains Fabric api.Fabric Fabrics api.Fabrics VLAN api.VLAN VLANs api.VLANs Space api.Space Spaces api.Spaces Machine api.Machine Machines api.Machines VMHost api.VMHost VMHosts api.VMHosts NetworkInterface api.NetworkInterface NetworkInterfaces api.NetworkInterfaces Subnet api.Subnet Subnets api.Subnets IPRange api.IPRange IPRanges api.IPRanges IPAddresses api.IPAddresses Tag api.Tag Tags api.Tags BlockDevice api.BlockDevice BlockDevices api.BlockDevices BlockDevicePartition api.BlockDevicePartition BlockDevicePartitions api.BlockDevicePartitions User api.User Users api.Users }
type DNSResource ¶
type DNSResource struct {
ApiClient ApiClient
}
func (*DNSResource) Delete ¶
func (d *DNSResource) Delete(id int) error
func (*DNSResource) Get ¶
func (d *DNSResource) Get(id int) (dnsResource *entity.DNSResource, err error)
func (*DNSResource) Update ¶
func (d *DNSResource) Update(id int, params *entity.DNSResourceParams) (dnsResource *entity.DNSResource, err error)
type DNSResourceRecord ¶
type DNSResourceRecord struct {
ApiClient ApiClient
}
func (*DNSResourceRecord) Delete ¶
func (d *DNSResourceRecord) Delete(id int) error
func (*DNSResourceRecord) Get ¶
func (d *DNSResourceRecord) Get(id int) (dnsResourceRecord *entity.DNSResourceRecord, err error)
func (*DNSResourceRecord) Update ¶
func (d *DNSResourceRecord) Update(id int, params *entity.DNSResourceRecordParams) (dnsResourceRecord *entity.DNSResourceRecord, err error)
type DNSResourceRecords ¶
type DNSResourceRecords struct {
ApiClient ApiClient
}
func (*DNSResourceRecords) Create ¶
func (d *DNSResourceRecords) Create(params *entity.DNSResourceRecordParams) (dnsResourceRecord *entity.DNSResourceRecord, err error)
func (*DNSResourceRecords) Get ¶
func (d *DNSResourceRecords) Get() (dnsResourceRecords []entity.DNSResourceRecord, err error)
type DNSResources ¶
type DNSResources struct {
ApiClient ApiClient
}
func (*DNSResources) Create ¶
func (d *DNSResources) Create(params *entity.DNSResourceParams) (dnsResource *entity.DNSResource, err error)
func (*DNSResources) Get ¶
func (d *DNSResources) Get() (dnsresources []entity.DNSResource, err error)
type IPAddresses ¶
type IPAddresses struct {
ApiClient ApiClient
}
func (*IPAddresses) Get ¶
func (i *IPAddresses) Get(params *entity.IPAddressesParams) (ipAddresses []entity.IPAddress, err error)
func (*IPAddresses) Release ¶
func (i *IPAddresses) Release(params *entity.IPAddressesParams) error
func (*IPAddresses) Reserve ¶
func (i *IPAddresses) Reserve(params *entity.IPAddressesParams) (ipAddress *entity.IPAddress, err error)
type Machine ¶
type Machine struct {
ApiClient ApiClient
}
Contains functionality for manipulating the Machine entity.
func (*Machine) ClearDefaultGateways ¶
Clear default gateways.
func (*Machine) Commission ¶
func (m *Machine) Commission(systemID string, params *entity.MachineCommissionParams) (ma *entity.Machine, err error)
Commission machine.
func (*Machine) Deploy ¶
func (m *Machine) Deploy(systemID string, params *entity.MachineDeployParams) (ma *entity.Machine, err error)
Deploy machine.
func (*Machine) GetPowerParameters ¶
type Machines ¶
type Machines struct {
ApiClient ApiClient
}
Contains functionality for manipulating the Machines entity.
func (*Machines) Create ¶
func (m *Machines) Create(machineParams *entity.MachineParams, powerParams map[string]string) (ma *entity.Machine, err error)
Create machine.
type NetworkInterface ¶
type NetworkInterface struct {
ApiClient ApiClient
}
func (*NetworkInterface) AddTag ¶
func (n *NetworkInterface) AddTag(systemID string, id int, tag string) (*entity.NetworkInterface, error)
func (*NetworkInterface) Disconnect ¶
func (n *NetworkInterface) Disconnect(systemID string, id int) (networkInterface *entity.NetworkInterface, err error)
func (*NetworkInterface) Get ¶
func (n *NetworkInterface) Get(systemID string, id int) (networkInterface *entity.NetworkInterface, err error)
func (*NetworkInterface) LinkSubnet ¶
func (n *NetworkInterface) LinkSubnet(systemID string, id int, params *entity.NetworkInterfaceLinkParams) (*entity.NetworkInterface, error)
func (*NetworkInterface) RemoveTag ¶
func (n *NetworkInterface) RemoveTag(systemID string, id int, tag string) (*entity.NetworkInterface, error)
func (*NetworkInterface) SetDefaultGateway ¶
func (n *NetworkInterface) SetDefaultGateway(systemID string, id int, linkID int) (networkInterface *entity.NetworkInterface, err error)
func (*NetworkInterface) UnlinkSubnet ¶
func (n *NetworkInterface) UnlinkSubnet(systemID string, id int, linkID int) (networkInterface *entity.NetworkInterface, err error)
func (*NetworkInterface) Update ¶
func (n *NetworkInterface) Update(systemID string, id int, params interface{}) (networkInterface *entity.NetworkInterface, err error)
type NetworkInterfaces ¶
type NetworkInterfaces struct {
ApiClient ApiClient
}
func (*NetworkInterfaces) CreateBond ¶
func (n *NetworkInterfaces) CreateBond(systemID string, params *entity.NetworkInterfaceBondParams) (networkInterface *entity.NetworkInterface, err error)
func (*NetworkInterfaces) CreateBridge ¶
func (n *NetworkInterfaces) CreateBridge(systemID string, params *entity.NetworkInterfaceBridgeParams) (networkInterface *entity.NetworkInterface, err error)
func (*NetworkInterfaces) CreatePhysical ¶
func (n *NetworkInterfaces) CreatePhysical(systemID string, params *entity.NetworkInterfacePhysicalParams) (networkInterface *entity.NetworkInterface, err error)
func (*NetworkInterfaces) CreateVLAN ¶
func (n *NetworkInterfaces) CreateVLAN(systemID string, params *entity.NetworkInterfaceVLANParams) (networkInterface *entity.NetworkInterface, err error)
func (*NetworkInterfaces) Get ¶
func (n *NetworkInterfaces) Get(systemID string) (networkInterfaces []entity.NetworkInterface, err error)
type Subnet ¶
type Subnet struct {
ApiClient ApiClient
}
func (*Subnet) GetIPAddresses ¶
func (*Subnet) GetReservedIPRanges ¶
func (s *Subnet) GetReservedIPRanges(id int) (subnetReservedIPRanges []subnet.ReservedIPRange, err error)
func (*Subnet) GetStatistics ¶
func (s *Subnet) GetStatistics(id int) (stats *subnet.Statistics, err error)
func (*Subnet) GetUnreservedIPRanges ¶
type Subnets ¶
type Subnets struct {
ApiClient ApiClient
}
Contains functionality for manipulating the Subnets entity.
type VMHost ¶
type VMHost struct { ApiClient ApiClient // contains filtered or unexported fields }
Contains functionality for manipulating the VMHost entity.
func (*VMHost) GetParameters ¶
Source Files ¶
- block_device.go
- block_device_partition.go
- block_device_partitions.go
- block_devices.go
- client.go
- dns_resource.go
- dns_resource_record.go
- dns_resource_records.go
- dns_resources.go
- domain.go
- domains.go
- fabric.go
- fabrics.go
- ip_addresses.go
- ip_range.go
- ip_ranges.go
- machine.go
- machines.go
- network_interface.go
- network_interfaces.go
- space.go
- spaces.go
- subnet.go
- subnets.go
- tag.go
- tags.go
- user.go
- users.go
- vlan.go
- vlans.go
- vm_host.go
- vm_hosts.go
Click to show internal directories.
Click to hide internal directories.