Documentation
¶
Index ¶
- type BundleManager
- func (m *BundleManager) CreateSkuBundle(ctx context.Context, params bundle_management.CreateSkuBundleParams) middleware.Responder
- func (m *BundleManager) GetSkuBundle(ctx context.Context, params bundle_management.GetSkuBundleParams) middleware.Responder
- func (m *BundleManager) GetSkuBundleByName(ctx context.Context, params bundle_management.GetSkuBundleByNameParams) middleware.Responder
- func (m *BundleManager) ListSkuBundles(ctx context.Context, params bundle_management.ListSkuBundlesParams) middleware.Responder
- func (m *BundleManager) UpdateSkuBundle(ctx context.Context, params bundle_management.UpdateSkuBundleParams) middleware.Responder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleManager ¶
type BundleManager struct {
// contains filtered or unexported fields
}
BundleManager is the struct defined to group and contain all the methods that interact with the bundle subsystem. Parameters: - basePath: a string with the base path of the system. - db: a DbParameter reference to be able to use the DBManager methods. - monit: a StatusManager reference to be able to use the status subsystem methods.
func New ¶
func New(db *dbManager.DbParameter, monit *statusManager.StatusManager, bp string) *BundleManager
New is the function to create the struct BundleManager. Parameters: - DbParameter: reference pointing to the DbParameter that allows the interaction with the DBManager methods. - StatusParameter: reference poining to the StatusManager that allows the interaction with the StatusManager methods. - bp: a string containing the base path of the service. Returns: - BundleManager: struct to interact with BundleManager subsystem functionalities.
func (*BundleManager) CreateSkuBundle ¶
func (m *BundleManager) CreateSkuBundle(ctx context.Context, params bundle_management.CreateSkuBundleParams) middleware.Responder
CreateSkuBundle (Swagger func) is the function behind the (POST) endpoint /bundle Its job is to add a new bundle to the system.
func (*BundleManager) GetSkuBundle ¶
func (m *BundleManager) GetSkuBundle(ctx context.Context, params bundle_management.GetSkuBundleParams) middleware.Responder
GetSkuBundle (Swagger func) is the function behind the (GET) endpoint /bundle/{id} Its job is to retrieve the bundle linked to the provided id.
func (*BundleManager) GetSkuBundleByName ¶
func (m *BundleManager) GetSkuBundleByName(ctx context.Context, params bundle_management.GetSkuBundleByNameParams) middleware.Responder
GetSkuBundleByName (Swagger func) is the function behind the (GET) endpoint /bundle/name/{name} Its job is to retrieve the bundle provided the name of the bundle.
func (*BundleManager) ListSkuBundles ¶
func (m *BundleManager) ListSkuBundles(ctx context.Context, params bundle_management.ListSkuBundlesParams) middleware.Responder
ListSkuBundles (Swagger func) is the function behind the (GET) endpoint /bundle Its job is to list all the bundles present in the system.
func (*BundleManager) UpdateSkuBundle ¶
func (m *BundleManager) UpdateSkuBundle(ctx context.Context, params bundle_management.UpdateSkuBundleParams) middleware.Responder
UpdateSkuBundle (Swagger func) is the function behind the (PUT) endpoint /sku/bundle/{id} Its job is to update the linked Sku bundle to the provided ID with the provided data.