gsmlicensing

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package gsmlicensing implements the Enterprise License Manager API

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, cap int) (<-chan *licensing.LicenseAssignment, <-chan error)

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

func ListLicenseAssignmentsForProductAndSku

func ListLicenseAssignmentsForProductAndSku(productID, skuID, customerID, fields string, cap int) (<-chan *licensing.LicenseAssignment, <-chan 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