util

package
v0.0.0-...-db75b6a Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLicenseExists

func CheckLicenseExists(configMap *corev1.ConfigMap, license string) bool

func GetNextLicenseKeySuffix

func GetNextLicenseKeySuffix(data map[string]string) int

func InterfaceToInt64

func InterfaceToInt64(value interface{}) (int64, error)

func ReadConfigFromConfigMap

func ReadConfigFromConfigMap(expectName string, configMap *corev1.ConfigMap) (cloud.Config, error)

func RegisterAndStart

func RegisterAndStart(data RegisterAndStartData) error

func SubmitLicense

func SubmitLicense(ctx context.Context, client cl.Client, cluster corev1.Secret) error

func SubmitNotificationWithUser

func SubmitNotificationWithUser(ctx context.Context, client cl.Client, logger logr.Logger, target string, pack cloud.NotificationPackage)

func SubmitNotificationWithUserCategory

func SubmitNotificationWithUserCategory(ctx context.Context, client cl.Client, logger logr.Logger, users cloud.UserCategory, prefix string, pack cloud.NotificationPackage)

Types

type RegisterAndStartCallBack

type RegisterAndStartCallBack func(data RegisterAndStartData) error

type RegisterAndStartData

type RegisterAndStartData struct {
	Users cloud.UserCategory

	FreeLicense cloud.License
	// contains filtered or unexported fields
}

func NewRegisterAndStartData

func NewRegisterAndStartData(ctx context.Context, client cl.Client, clusterScret *corev1.Secret,
	users cloud.UserCategory, config cloud.Config, logger logr.Logger) RegisterAndStartData

func (*RegisterAndStartData) Register

func (rd *RegisterAndStartData) Register() error

func (*RegisterAndStartData) StartCloudModule

func (rd *RegisterAndStartData) StartCloudModule() error

func (*RegisterAndStartData) StartLauncher

func (rd *RegisterAndStartData) StartLauncher() error

Jump to

Keyboard shortcuts

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