license

package
v1.130.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Change

func Change(a *apptypes.App, newLicenseString string) (*licensewrapper.LicenseWrapper, error)

func CheckIfLicenseExists

func CheckIfLicenseExists(license []byte) (*licensewrapper.LicenseWrapper, error)

func GetFromPlatformLicense

func GetFromPlatformLicense(apiEndpoint, platformLicense string) (string, error)

func ResolveExistingLicense added in v1.112.0

func ResolveExistingLicense(newLicense *licensewrapper.LicenseWrapper) (bool, error)

func Sync

func Sync(a *apptypes.App, licenseString string, failOnVersionCreate bool) (*licensewrapper.LicenseWrapper, bool, error)

func SyncWithServiceAccountToken added in v1.125.0

func SyncWithServiceAccountToken(a *apptypes.App, serviceAccountToken string, failOnVersionCreate bool) (*licensewrapper.LicenseWrapper, bool, error)

Types

type GetFromPlatformLicenseRequest

type GetFromPlatformLicenseRequest struct {
	License string `json:"license"`
}

type ServiceAccountToken added in v1.125.0

type ServiceAccountToken struct {
	Identity string `json:"i"`
	Secret   string `json:"s"`
}

func ValidateServiceAccountToken added in v1.125.0

func ValidateServiceAccountToken(token string, currentLicense *licensewrapper.LicenseWrapper) (*ServiceAccountToken, bool, error)

ValidateServiceAccountToken checks if the service account token is valid and if it matches the current license identity. It returns the service account token, a boolean indicating if the secret has been updated, and an error if any.

Jump to

Keyboard shortcuts

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