license

package
v0.0.0-...-367d749 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 8 Imported by: 1

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 LicenseAPI

type LicenseAPI interface {
	GetLicenseAgreement() (output *models.LicenseAgreementInfo, resp *http.Response, err error)
	GetLicenseAgreementWithContext(ctx context.Context) (output *models.LicenseAgreementInfo, resp *http.Response, err error)

	UpdateLicenseAgreement(input *UpdateLicenseAgreementInput) (output *models.LicenseAgreementInfo, resp *http.Response, err error)
	UpdateLicenseAgreementWithContext(ctx context.Context, input *UpdateLicenseAgreementInput) (output *models.LicenseAgreementInfo, resp *http.Response, err error)

	GetLicense() (output *models.LicenseView, resp *http.Response, err error)
	GetLicenseWithContext(ctx context.Context) (output *models.LicenseView, resp *http.Response, err error)

	UpdateLicense(input *UpdateLicenseInput) (output *models.LicenseView, resp *http.Response, err error)
	UpdateLicenseWithContext(ctx context.Context, input *UpdateLicenseInput) (output *models.LicenseView, resp *http.Response, err error)
}

type LicenseService

type LicenseService struct {
	*client.PfClient
}

func New

func New(cfg *config.Config) *LicenseService

New creates a new instance of the LicenseService client.

func (*LicenseService) GetLicense

func (s *LicenseService) GetLicense() (output *models.LicenseView, resp *http.Response, err error)

GetLicense - Get a license summary. RequestType: GET Input:

func (*LicenseService) GetLicenseAgreement

func (s *LicenseService) GetLicenseAgreement() (output *models.LicenseAgreementInfo, resp *http.Response, err error)

GetLicenseAgreement - Get license agreement link. RequestType: GET Input:

func (*LicenseService) GetLicenseAgreementWithContext

func (s *LicenseService) GetLicenseAgreementWithContext(ctx context.Context) (output *models.LicenseAgreementInfo, resp *http.Response, err error)

GetLicenseAgreementWithContext - Get license agreement link. RequestType: GET Input: ctx context.Context,

func (*LicenseService) GetLicenseWithContext

func (s *LicenseService) GetLicenseWithContext(ctx context.Context) (output *models.LicenseView, resp *http.Response, err error)

GetLicenseWithContext - Get a license summary. RequestType: GET Input: ctx context.Context,

func (*LicenseService) UpdateLicense

func (s *LicenseService) UpdateLicense(input *UpdateLicenseInput) (output *models.LicenseView, resp *http.Response, err error)

UpdateLicense - Import a license. RequestType: PUT Input: input *UpdateLicenseInput

func (*LicenseService) UpdateLicenseAgreement

func (s *LicenseService) UpdateLicenseAgreement(input *UpdateLicenseAgreementInput) (output *models.LicenseAgreementInfo, resp *http.Response, err error)

UpdateLicenseAgreement - Accept license agreement. RequestType: PUT Input: input *UpdateLicenseAgreementInput

func (*LicenseService) UpdateLicenseAgreementWithContext

func (s *LicenseService) UpdateLicenseAgreementWithContext(ctx context.Context, input *UpdateLicenseAgreementInput) (output *models.LicenseAgreementInfo, resp *http.Response, err error)

UpdateLicenseAgreementWithContext - Accept license agreement. RequestType: PUT Input: ctx context.Context, input *UpdateLicenseAgreementInput

func (*LicenseService) UpdateLicenseWithContext

func (s *LicenseService) UpdateLicenseWithContext(ctx context.Context, input *UpdateLicenseInput) (output *models.LicenseView, resp *http.Response, err error)

UpdateLicenseWithContext - Import a license. RequestType: PUT Input: ctx context.Context, input *UpdateLicenseInput

type UpdateLicenseAgreementInput

type UpdateLicenseAgreementInput struct {
	Body models.LicenseAgreementInfo
}

type UpdateLicenseInput

type UpdateLicenseInput struct {
	Body models.LicenseFile
}

Jump to

Keyboard shortcuts

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