license

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIngressList

func CheckIngressList(ingresses *networking.IngressList)

func CheckWorkerPodVolumeMounts

func CheckWorkerPodVolumeMounts(pod *v1.Pod) bool

func EnableIngressFeature

func EnableIngressFeature()

func FetchNew

func FetchNew(doc Doc) error

func IsFeatureEnabled

func IsFeatureEnabled(f Feature) bool

func Save

func Save(license string) (err error)

Types

type Doc

type Doc struct {
	Email        string `json:"email"`
	Edition      string `json:"edition"`
	End          int64  `json:"end"`
	NodeLimit    int64  `json:"nodes"`
	AppClientId  string `json:"app_client_id"`
	UserPoolId   string `json:"user_pool_id"`
	RefreshToken string `json:"refresh_token"`
}

func Check

func Check() (doc Doc, expired bool, err error)

func (*Doc) CheckNodeLimit

func (doc *Doc) CheckNodeLimit() bool

type Feature

type Feature string
const (
	PersistentStorage Feature = "PersistentStorage"
	Ingress           Feature = "Ingress"
)

func GetEnabledFeatures

func GetEnabledFeatures() []Feature

Jump to

Keyboard shortcuts

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