gsmlicensing

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package gsmlicensing implements the Enterprise License Manager API Copyright © 2020 Hannes Hayashi

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Package gsmlicensing implements the Enterprise License Manager API Copyright © 2020 Hannes Hayashi

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteLicenseAssignment

func DeleteLicenseAssignment(productID, skuID, userID string) (bool, error)

DeleteLicenseAssignment revoke a license.

func GetLicenseAssignment

func GetLicenseAssignment(productID, skuID, userID, fields string) (*licensing.LicenseAssignment, error)

GetLicenseAssignment get a specific user's license by product SKU.

func InsertLicenseAssignment

func InsertLicenseAssignment(productID, skuID, fields string, licenseAssignmentInsert *licensing.LicenseAssignmentInsert) (*licensing.LicenseAssignment, error)

InsertLicenseAssignment assign a license.

func ListLicenseAssignmentsForProduct

func ListLicenseAssignmentsForProduct(productID, customerID, fields string) ([]*licensing.LicenseAssignment, error)

ListLicenseAssignmentsForProduct list all users assigned licenses for a specific product SKU.

func ListLicenseAssignmentsForProductAndSku

func ListLicenseAssignmentsForProductAndSku(productID, skuID, customerID, fields string) ([]*licensing.LicenseAssignment, error)

ListLicenseAssignmentsForProductAndSku list all users assigned licenses for a specific product SKU.

func PatchLicenseAssignment

func PatchLicenseAssignment(productID, skuID, userID, fields string, licenseAssignment *licensing.LicenseAssignment) (*licensing.LicenseAssignment, error)

PatchLicenseAssignment reassign a user's product SKU with a different SKU in the same product.

func SetClient

func SetClient(c *http.Client)

SetClient is used to inject a *http.Client into the package

Types

This section is empty.

Jump to

Keyboard shortcuts

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