aws

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package aws provides a high-level aws client for CSP functionality, including license check-in, checkout, and extension

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// AccountNumber gets the account number for the AWS account this client will issue calls to
	AccountNumber() string
	// GetRancherLicense returns the license which is for the rancher product sku
	GetRancherLicense(ctx context.Context) (*types.GrantedLicense, error)
	// CheckoutRancherLicense checks out the license for entitlementAmt entitlements to RKE_NODE_SUPP
	CheckoutRancherLicense(ctx context.Context, l types.GrantedLicense, entitlementAmt int) (*lm.CheckoutLicenseOutput, error)
	// CheckInRancherLicense checks in a license using the provided consumptionToken
	CheckInRancherLicense(ctx context.Context, consumptionToken string) (*lm.CheckInLicenseOutput, error)
	// ExtendRancherLicenseConsumptionToken extends the Expiry time of the provided consumptionToken
	ExtendRancherLicenseConsumptionToken(ctx context.Context, consumptionToken string) (*lm.ExtendLicenseConsumptionOutput, error)
	// GetNumberOfAvailableEntitlements gets the number of RKE_NODE_SUPP entitlements available on license
	GetNumberOfAvailableEntitlements(ctx context.Context, license types.GrantedLicense) (int, error)
}

func NewClient

func NewClient(ctx context.Context) (Client, error)

Jump to

Keyboard shortcuts

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