infoblox

package
v0.0.0-...-4ca579c Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package infoblox provides REST actions against an infoblox WAPI

Package infoblox provides REST actions against an infoblox WAPI

Package infoblox provides REST actions against an infoblox WAPI

Package infoblox provides REST actions against an infoblox WAPI

Package infoblox provides REST actions against an infoblox WAPI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientInit

func ClientInit(c *Cfg) (*resty.Client, error)

ClientInit establishes default settings on the rest client

func IbCreateRecord

func IbCreateRecord(c *resty.Client, rcdType string, body []byte) (int, error)

IbCreateRecord creates a record

func IbDeleteRecord

func IbDeleteRecord(c *resty.Client, ref string) (int, error)

IbDeleteARecord creates an a record

func IbGetTest

func IbGetTest(c *resty.Client) error

IbGetTest sends a GET request to infoblox

func IbUpdateRecord

func IbUpdateRecord(c *resty.Client, ref string, body []byte) (int, error)

IbUpdateRecord updates a record

Types

type Cfg

type Cfg struct {
	Host        string
	WAPIVersion string
	Username    string
	Password    string
	TLSVerify   bool
	Timeout     int
}

Cfg config to construct client

type Result

type Result struct {
	Ref       string `json:"_ref"`
	Comment   string `json:"comment"`
	Text      string `json:"text"`
	Ipv4addr  string `json:"ipv4addr"`
	Name      string `json:"name"`
	Canonical string `json:"canonical"`
	View      string `json:"view"`
}

Result contains the json fields from a Get request

func IbReadRecord

func IbReadRecord(c *resty.Client, name string, rcdType string) (int, Result, error)

IbReadRecord returns data about a record

Jump to

Keyboard shortcuts

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