aws

package
v1.19.0-up.1.rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MarketplaceProductCode      = "1fszvu527waovqeuhpkyx2b5d"
	MarketplacePublicKey        = "" /* 636-byte string literal not displayed */
	MarketplacePublicKeyVersion = 1
)

These constants are given by AWS Marketplace. TODO(muvaf): Consider fetching them from an Upbound API but keep the latest ones hard-coded as fallback for air-gapped environments.

View Source
const (
	SecretKeyAWSMeteringSignature = "awsMeteringSignature"
)

SecretKeyAWSMeteringSignature is the key whose value contains JWT signature returned from AWS Metering Service.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marketplace

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

Marketplace implements Registerer for AWS Marketplace API.

func NewMarketplace

func NewMarketplace(cl client.Client, mcl marketplaceClient, publicKey string) *Marketplace

NewMarketplace returns a new Marketplace object that can register usage.

func (*Marketplace) Register

func (am *Marketplace) Register(ctx context.Context, s *v1.Secret, uid string) (string, error)

Register makes sure user is entitled for this usage in an idempotent way.

func (*Marketplace) Verify

func (am *Marketplace) Verify(token, uid string) (bool, error)

Verify makes sure the signature is signed by AWS Marketplace.

Jump to

Keyboard shortcuts

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