Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ServiceName - The name of service.
ServiceName = "License"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportLicenseCommandInput ¶
type ImportLicenseCommandInput struct {
Body models.LicenseImportDocView
}
ImportLicenseCommandInput - Inputs for ImportLicenseCommand
type LicenseAPI ¶
type LicenseAPI interface { GetLicenseCommand() (output *models.LicenseView, resp *http.Response, err error) ImportLicenseCommand(input *ImportLicenseCommandInput) (output *models.LicenseView, resp *http.Response, err error) }
type LicenseService ¶
LicenseService provides the API operations for making requests to License endpoint.
func New ¶
func New(cfg *config.Config) *LicenseService
New createa a new instance of the LicenseService client.
Example:
cfg := config.NewConfig().WithUsername("Administrator").WithPassword("2Access").WithEndpoint(paURL) //Create a LicenseService from the configuration svc := license.New(cfg)
func (*LicenseService) GetLicenseCommand ¶
func (s *LicenseService) GetLicenseCommand() (output *models.LicenseView, resp *http.Response, err error)
GetLicenseCommand - Get the License File RequestType: GET Input:
func (*LicenseService) ImportLicenseCommand ¶
func (s *LicenseService) ImportLicenseCommand(input *ImportLicenseCommandInput) (output *models.LicenseView, resp *http.Response, err error)
ImportLicenseCommand - Import a License RequestType: POST Input: input *ImportLicenseCommandInput
Click to show internal directories.
Click to hide internal directories.