license

package
v0.0.0-...-be2ef80 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILicense

type ILicense interface {
	GetLicenseDetails(ctx context.Context) (*LicenseDetails, error)
}

func NewLicenseClient

func NewLicenseClient(licenseClient license_control.LicenseControlServiceClient) ILicense

type License

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

func (*License) GetLicenseDetails

func (l *License) GetLicenseDetails(ctx context.Context) (*LicenseDetails, error)

GetLicenseDetails implements ILicense.

type LicenseDetails

type LicenseDetails struct {
	LicenseType string
	ExpiryDate  time.Time
	GracePeriod bool
}

type MockLicense

type MockLicense struct {
	WantError bool
}

func (*MockLicense) GetLicenseDetails

func (l *MockLicense) GetLicenseDetails(ctx context.Context) (*LicenseDetails, error)

Jump to

Keyboard shortcuts

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