2019-09-11 09:19:24 +02:00
|
|
|
package nbclient
|
2019-09-10 22:32:20 +02:00
|
|
|
|
|
|
|
type NetBox struct {
|
|
|
|
RootURL string
|
2019-09-11 09:19:24 +02:00
|
|
|
Token string
|
|
|
|
}
|
|
|
|
|
2019-09-11 09:26:41 +02:00
|
|
|
func (n *NetBox) New(root, token string) error {
|
2019-09-11 09:19:24 +02:00
|
|
|
n.RootURL = root
|
|
|
|
n.Token = token
|
|
|
|
|
|
|
|
return nil
|
2019-09-10 22:32:20 +02:00
|
|
|
}
|