network

package
Version: v0.0.0-...-f62483c Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IP

type IP struct {
	Address string `json:"address"`
	Claimed bool   `json:"claimed"`
	Server  string `json:"server"`
	Type    string `json:"type"` // private | virtual | publicMapped
}

type Network

type Network struct {
	ID          string    `json:"id"`
	CIDR        string    `json:"cidr"`
	Description string    `json:"description"`
	Gateway     string    `json:"gateway"`
	Name        string    `json:"name"`
	Netmask     string    `json:"netmask"`
	Type        string    `json:"type"`
	VLAN        int       `json:"vlan"`
	IPAddresses []IP      `json:"ipAddresses"`
	Links       api.Links `json:"links"`
}

type Service

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

func New

func New(client api.HTTP) *Service

func (*Service) Claim

func (s *Service) Claim(dc string) (*status.QueuedOperation, error)

func (*Service) Get

func (s *Service) Get(dc, id string) (*Network, error)

func (*Service) GetAddresses

func (s *Service) GetAddresses(dc, id string) (*[]IP, error)

func (*Service) List

func (s *Service) List(dc string) (*[]Network, error)

func (*Service) Release

func (s *Service) Release(dc, id string) error

func (*Service) Update

func (s *Service) Update(dc, id, name, description string) error

Source Files

Jump to

Keyboard shortcuts

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