github.com/go-chef/chef@v0.30.1/license.go (about) 1 package chef 2 3 type LicenseService struct { 4 client *Client 5 } 6 7 // License represents the body of the returned information. 8 type License struct { 9 LimitExceeded bool `json:"limit_exceeded"` 10 NodeLicense int `json:"node_license"` 11 NodeCount int `json:"node_count"` 12 UpgradeUrl string `json:"Upgrade_url"` 13 } 14 15 // License gets license information. 16 // 17 // https://docs.chef.io/api_chef_server/#license 18 func (e *LicenseService) Get() (data License, err error) { 19 err = e.client.magicRequestDecoder("GET", "license", nil, &data) 20 return 21 }