license

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDoesLicenseExists added in v1.31.0

func CheckDoesLicenseExists(allLicenses []*kotsv1beta1.License, uploadedLicense string) (*kotsv1beta1.License, error)

func GetCurrentLicenseString added in v1.31.0

func GetCurrentLicenseString(a *apptypes.App) (string, error)

Gets the license as it was at a given app sequence

func GetFromPlatformLicense

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

func GetParsedLicense added in v1.31.0

func GetParsedLicense(licenseStr string) (*kotsv1beta1.License, error)

func Sync

func Sync(a *apptypes.App, licenseString string, failOnVersionCreate bool) (*kotsv1beta1.License, error)

Types

type GetFromPlatformLicenseRequest

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

Jump to

Keyboard shortcuts

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