ips

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package ips implements API functions residing under /provisioning/ips. This path contains methods for querying ips in a VLAN.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	GetFree(ctx context.Context, location, vlan string) ([]IP, error)
}

API contains methods for IP manipulation (but only in the context of provisioning).

func NewAPI

func NewAPI(c client.Client) API

NewAPI creates a new IP API instance with the given client.

type IP

type IP struct {
	Identifier string `json:"identifier"`
	Text       string `json:"text"`
	Prefix     string `json:"prefix"`
}

IP defines informationen corresponding to the IP of a VLAN.

Jump to

Keyboard shortcuts

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