mgmtapi

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 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 added in v0.31.0

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

func (BrokerMetrics) AddGlobalMetric added in v0.31.0

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

func (BrokerMetrics) AddPlanMetric added in v0.31.0

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, 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