subscription

package
v1.2.27 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvisioner added in v1.1.5

func NewProvisioner(client MuleSubscriptionClient, log logrus.FieldLogger) prov.Provisioning

NewProvisioner creates a type to implement the SDK Provisioning methods for handling subscriptions

Types

type MockMuleSubscriptionClient added in v1.1.5

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

func (*MockMuleSubscriptionClient) CreateApp added in v1.1.5

func (m *MockMuleSubscriptionClient) CreateApp(appName, apiID, description string) (*anypoint.Application, error)

func (*MockMuleSubscriptionClient) CreateContract added in v1.1.5

func (m *MockMuleSubscriptionClient) CreateContract(_, _, _ string) (*anypoint.Contract, error)

func (*MockMuleSubscriptionClient) CreateIfNotExistingSLATier added in v1.1.47

func (m *MockMuleSubscriptionClient) CreateIfNotExistingSLATier(appID string) (string, error)

func (*MockMuleSubscriptionClient) DeleteApp added in v1.1.5

func (m *MockMuleSubscriptionClient) DeleteApp(appName string) error

func (*MockMuleSubscriptionClient) DeleteContract added in v1.1.5

func (m *MockMuleSubscriptionClient) DeleteContract(apiID, contractID string) error

func (*MockMuleSubscriptionClient) GetApp added in v1.1.5

func (*MockMuleSubscriptionClient) ResetAppSecret added in v1.1.9

func (m *MockMuleSubscriptionClient) ResetAppSecret(appID string) (*anypoint.Application, error)

type MuleSubscriptionClient added in v1.1.5

type MuleSubscriptionClient interface {
	CreateApp(appName string, apiID string, description string) (*anypoint.Application, error)
	CreateContract(apiID, tierID, appID string) (*anypoint.Contract, error)
	DeleteApp(appID string) error
	DeleteContract(apiID, contractID string) error
	GetApp(appID string) (*anypoint.Application, error)
	ResetAppSecret(appID string) (*anypoint.Application, error)
	CreateIfNotExistingSLATier(apiID string) (string, error)
}

MuleSubscriptionClient interface for managing mulesoft subscriptions

func NewMuleSubscriptionClient added in v1.1.5

func NewMuleSubscriptionClient(client anypoint.Client) MuleSubscriptionClient

NewMuleSubscriptionClient creates a MuleSubscriptionClient

Jump to

Keyboard shortcuts

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