mgmtapi

package
v0.0.0-...-fb356ce Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachRoutes

func AttachRoutes(r *mux.Router, manageableBroker ManageableBroker, serviceOffering config.ServiceOffering, loggerFactory *loggerfactory.LoggerFactory)

Types

type BrokerMetrics

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

func (BrokerMetrics) AddGlobalMetric

func (m BrokerMetrics) AddGlobalMetric(metricName string, value int) BrokerMetrics

func (BrokerMetrics) AddPlanMetric

func (m BrokerMetrics) AddPlanMetric(serviceOfferingPlanName, metricName string, value int) BrokerMetrics

type Deployment

type Deployment struct {
	Name string `json:"deployment_name"`
}

type ManageableBroker

type ManageableBroker interface {
	Instances(filter map[string]string, logger *log.Logger) ([]service.Instance, error)
	OrphanDeployments(logger *log.Logger) ([]string, error)
	Upgrade(ctx context.Context, instanceID string, updateDetails domain.UpdateDetails, logger *log.Logger) (broker.OperationData, string, error)
	Recreate(ctx context.Context, instanceID string, updateDetails domain.UpdateDetails, logger *log.Logger) (broker.OperationData, error)
	CountInstancesOfPlans(logger *log.Logger) (map[cf.ServicePlan]int, error)
}

type Metric

type Metric struct {
	Key   string  `json:"key"`
	Value float64 `json:"value"`
	Unit  string  `json:"unit"`
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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