Documentation
¶
Index ¶
- func Change(a *apptypes.App, newLicenseString string) (*licensewrapper.LicenseWrapper, error)
- func CheckIfLicenseExists(license []byte) (*licensewrapper.LicenseWrapper, error)
- func GetFromPlatformLicense(apiEndpoint, platformLicense string) (string, error)
- func ResolveExistingLicense(newLicense *licensewrapper.LicenseWrapper) (bool, error)
- func Sync(a *apptypes.App, licenseString string, failOnVersionCreate bool) (*licensewrapper.LicenseWrapper, bool, error)
- func SyncWithServiceAccountToken(a *apptypes.App, serviceAccountToken string, failOnVersionCreate bool) (*licensewrapper.LicenseWrapper, bool, error)
- type GetFromPlatformLicenseRequest
- type ServiceAccountToken
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 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
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.
Click to show internal directories.
Click to hide internal directories.