license

package
v0.0.0-...-d5808ce Latest Latest
Warning

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

Go to latest
Published: Feb 18, 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

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

func GetCurrentLicenseString

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

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