netboxgo/netbox.go

16 lines
329 B
Go
Raw Normal View History

2019-09-11 20:12:42 +02:00
package netboxgo
2019-09-10 22:32:20 +02:00
2019-09-17 09:53:24 +02:00
// NetBox settings struct
2019-09-10 22:32:20 +02:00
type NetBox struct {
2019-09-11 09:38:29 +02:00
RootURL string
Token string
InsecureSkipVerify bool
2019-09-11 09:19:24 +02:00
}
2019-09-17 09:53:24 +02:00
// New populates the NetBox settings struct
func (n *NetBox) New(root, token string, TLSSkipVerify bool) {
2019-09-11 09:19:24 +02:00
n.RootURL = root
n.Token = token
2019-09-17 09:53:24 +02:00
n.InsecureSkipVerify = TLSSkipVerify
2019-09-10 22:32:20 +02:00
}