15 lines
329 B
Go
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
|
|
}
|