ipam

package
v0.0.0-...-aaeafce Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PhpIPAM

type PhpIPAM struct {
	PhpIPAMConfig *PhpIPAMConfigSpec `yaml:"phpIPAM,omitempty"`
}

func NewPhpIPAM

func NewPhpIPAM() (*PhpIPAM, error)

func (*PhpIPAM) DeleteIPAddress

func (p *PhpIPAM) DeleteIPAddress(ipAddr string) error

func (*PhpIPAM) GetSubnetForIP

func (p *PhpIPAM) GetSubnetForIP(ipAddr string) (map[string]string, error)

func (*PhpIPAM) ReserveIPAddress

func (p *PhpIPAM) ReserveIPAddress(owner string, zone string) (string, error)

type PhpIPAMAddress

type PhpIPAMAddress struct {
	ID       string `json:"id,omitempty"`
	IPAddr   string `json:"ip_addr,omitempty"`
	SubnetId string `json:"subnetId,omitempty"`
}

type PhpIPAMConfigSpec

type PhpIPAMConfigSpec struct {
	InsecureSkipTLSVerify bool    `yaml:"insecureSkipTLSVerify"`
	URL                   *string `yaml:"url"`
	AppID                 *string `yaml:"appID"`

	// map of zone to subnet IDs, e.g. "wdc04": ["7", "8", "9"]
	SubnetMap map[string][]int `yaml:"subnetMap"`
	// contains filtered or unexported fields
}

type PhpIPAMSubnet

type PhpIPAMSubnet struct {
	ID     string `json:"id,omitempty"`
	Subnet string `json:"subnet,omitempty"`
	Mask   string `json:"mask,omitempty"`
}

Jump to

Keyboard shortcuts

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