license

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2020 License: MIT Imports: 7 Imported by: 0

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

type LicenseService struct {
	*client.Client
}

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("2FederateM0re").WithEndpoint(paURL.String())

//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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL