keys

package
v0.0.0-...-48fd375 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Code generated by tools/gen-keys. DO NOT EDIT.

Last updated at Fri, 26 Jul 2019 18:09:14 BST

Index

Constants

This section is empty.

Variables

View Source
var BuiltinKeyData = PublicKeysData{
	Keys: []string{
		`-----BEGIN PUBLIC KEY-----
MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQBFiE1Y7Go1RcZL4iA2zPIlWy/gMqw
9FHC+jbpdv24x+EONqwh1YF6wxcXWNFxxTip/6b7Ch3LD1hDM7Q6JxD7A9EAftfP
H347+8MKNzBhektOJka/vfTYlg8OF9MuFORet/FXpp24xHTdT3JARRy/SQHYRwCF
D6U+KRSFP9c/TXSQw2c=
-----END PUBLIC KEY-----

`,
	},
}

Functions

This section is empty.

Types

type LicenseMetadata

type LicenseMetadata struct {
	ConfiguredAt time.Time
}

type LicenseParser

type LicenseParser struct {
	// contains filtered or unexported fields
}

func NewLicenseParser

func NewLicenseParser(pub PublicKeysData) *LicenseParser

func (*LicenseParser) Parse

func (l *LicenseParser) Parse(licenseData string) (*lic.License, error)

type LoadedKeyData

type LoadedKeyData map[string][]byte

func LoadPublicKeys

func LoadPublicKeys(pub PublicKeysData) LoadedKeyData

LoadPublicKeys loads our keys and returns map with checksums

type PublicKeysData

type PublicKeysData struct {
	Keys []string `json:"keys"`
}

PublicKeysData is our license public keys helper

Jump to

Keyboard shortcuts

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