netboxgo/netbox.go
2019-09-17 09:53:24 +02:00

15 lines
329 B
Go

package netboxgo
// NetBox settings struct
type NetBox struct {
RootURL string
Token string
InsecureSkipVerify bool
}
// New populates the NetBox settings struct
func (n *NetBox) New(root, token string, TLSSkipVerify bool) {
n.RootURL = root
n.Token = token
n.InsecureSkipVerify = TLSSkipVerify
}