license

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomAPIClient

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

CustomAPIClient is a custom implementation of the nextgen.APIClient that allows for more customization of the client configuration

func NewCustomAPIClient

func NewCustomAPIClient(cfg *nextgen.Configuration) *CustomAPIClient

NewCustomAPIClient creates a new CustomAPIClient

type CustomLicensesApiService

type CustomLicensesApiService struct {
	Client *CustomAPIClient
}

CustomLicensesApiService is a custom implementation of the LicensesApiService that allows for more customization of the client configuration

func CreateCustomLicenseClientWithContext

func CreateCustomLicenseClientWithContext(ctx context.Context, config *config.McpServerConfig, licenseBaseURL, baseURL, path, secret string) (*CustomLicensesApiService, error)

CreateCustomLicenseClientWithContext creates a custom license client using the registered provider

func (*CustomLicensesApiService) GetAccountLicenses

func (a *CustomLicensesApiService) GetAccountLicenses(ctx context.Context, accountIdentifier string) (nextgen.ResponseDtoAccountLicense, *http.Response, error)

GetAccountLicenses gets all module license information in account

type LicenseClientProvider

type LicenseClientProvider interface {
	// BuildServiceURL constructs the appropriate service URL
	BuildServiceURL(config *config.McpServerConfig, internalBaseURL, externalBaseURL, externalPathPrefix string) string

	// CreateClient creates a license client with appropriate authentication
	CreateClient(ctx context.Context, config *config.McpServerConfig, licenseBaseURL, baseURL, path, secret string) (*CustomLicensesApiService, error)

	// ConfigureAuth sets up authentication for the client configuration
	ConfigureAuth(ctx context.Context, cfg *nextgen.Configuration, config *config.McpServerConfig, secret string) error
}

LicenseClientProvider defines the interface for creating license clients This allows different implementations for internal and external modes

var DefaultProvider LicenseClientProvider

DefaultProvider holds the active provider implementation

Jump to

Keyboard shortcuts

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