verifier

package module
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 7

README

PkgGoDev

license-verifier

Library for verifying license

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadLicense added in v0.7.0

func BadLicense(err error) (v1alpha1.License, error)

func CheckLicense added in v0.12.0

func CheckLicense(opts VerifyOptions) (v1alpha1.License, error)

func ParseLicense added in v0.12.0

func ParseLicense(opts ParserOptions) (v1alpha1.License, error)

func VerifyLicense

func VerifyLicense(opts Options) (v1alpha1.License, error)

Types

type Options

type Options struct {
	ClusterUID string `json:"clusterUID"`
	Features   string `json:"features"`
	CACert     []byte `json:"caCert,omitempty"`
	License    []byte `json:"license"`
}

type ParserOptions added in v0.12.0

type ParserOptions struct {
	ClusterUID string
	CACert     *x509.Certificate
	License    []byte
}

type VerifyOptions added in v0.12.0

type VerifyOptions struct {
	ParserOptions
	Features string
}

Directories

Path Synopsis
licenses/v1alpha1
+groupName=licenses.appscode.com
+groupName=licenses.appscode.com
kubernetes module

Jump to

Keyboard shortcuts

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