Documentation ¶
Index ¶
- Constants
- func CreateCcError(message string, parentErr error) error
- func IsSuccessStatus(state int) bool
- type CfAPI
- func (c *CfAPI) AssertAppHasRoutes(appSummary *types.CfAppSummary) error
- func (c *CfAPI) AssociateRoute(appID string, routeID string) error
- func (c *CfAPI) BindService(appGUID, serviceGUID string, errorsCh chan error, wg *sync.WaitGroup)
- func (c *CfAPI) CopyBits(sourceID string, destID string, asyncError chan error)
- func (c *CfAPI) CreateApp(app types.CfApp) (*types.CfAppResource, error)
- func (c *CfAPI) CreateApplicationClone(sourceAppGUID, spaceGUID string, parameters map[string]string) (*types.CfAppResource, error)
- func (c *CfAPI) CreateRoute(req *types.CfCreateRouteRequest) (*types.CfRouteResource, error)
- func (c *CfAPI) CreateServiceBinding(req *types.CfServiceBindingCreateRequest) (*types.CfServiceBindingCreateResponse, error)
- func (c *CfAPI) CreateServiceClone(spaceGUID string, params map[string]interface{}, comp types.Component, ...)
- func (c *CfAPI) CreateServiceInstance(req *types.CfServiceInstanceCreateRequest) (*types.CfServiceInstanceCreateResponse, error)
- func (c *CfAPI) CreateUserProvidedServiceBinding(req *types.CfServiceBindingCreateRequest) (*types.CfServiceBindingCreateResponse, error)
- func (c *CfAPI) CreateUserProvidedServiceInstance(req *types.CfUserProvidedService) (*types.CfUserProvidedServiceResource, error)
- func (c *CfAPI) DeleteApp(id string) error
- func (c *CfAPI) DeleteBinding(binding types.CfBindingResource) error
- func (c *CfAPI) DeleteRoute(routeID string) error
- func (c *CfAPI) DeleteRoutes(appGUID string, errorsCh chan error, doneWaitGroup *sync.WaitGroup)
- func (c *CfAPI) DeleteServiceInstIfUnbound(comp types.Component, errorsCh chan error, doneWaitGroup *sync.WaitGroup)
- func (c *CfAPI) DeleteServiceInstance(id string) error
- func (c *CfAPI) DeleteUPSInstIfUnbound(comp types.Component, errorsCh chan error, doneWaitGroup *sync.WaitGroup)
- func (c *CfAPI) DeleteUserProvidedServiceInstance(id string) error
- func (c *CfAPI) GetAppBindings(id string) (*types.CfBindingsResources, error)
- func (c *CfAPI) GetAppRoutes(appID string) (*types.CfRoutesResponse, error)
- func (c *CfAPI) GetAppSummary(id string) (*types.CfAppSummary, error)
- func (c *CfAPI) GetAppsFromRoute(routeGUID string) (*types.CfAppsResponse, error)
- func (c *CfAPI) GetBrokers(brokerName string) (*types.CfServiceBrokerResources, error)
- func (c *CfAPI) GetServiceBindings(id string) (*types.CfBindingsResources, error)
- func (c *CfAPI) GetServiceOfName(name string) (*types.CfServiceResource, error)
- func (c *CfAPI) GetSpaceRoutesForHostname(spaceGUID, hostname string) (*types.CfRoutesResponse, error)
- func (c *CfAPI) GetUserProvidedService(guid string) (*types.CfUserProvidedServiceResource, error)
- func (c *CfAPI) GetUserProvidedServiceBindings(id string) (*types.CfBindingsResources, error)
- func (c *CfAPI) PurgeService(serviceID string, serviceName string, servicePlansURL string) error
- func (c *CfAPI) RegisterBroker(brokerName string, brokerURL string, username string, password string) error
- func (c *CfAPI) RestageApp(appGUID string) error
- func (c *CfAPI) StartApp(app *types.CfAppResource) error
- func (c *CfAPI) UnassociateRoute(appID string, routeID string) error
- func (w *CfAPI) UnbindAppServices(appGUID string, errorsCh chan error, doneWaitGroup *sync.WaitGroup)
- func (c *CfAPI) UpdateApp(app *types.CfAppResource) error
- func (c *CfAPI) UpdateBroker(brokerGUID string, brokerURL string, username string, password string) error
- type HttpMethod
Constants ¶
View Source
const ( MethodGet = "GET" MethodPost = "POST" MethodPut = "PUT" MethodDelete = "DELETE" MethodPatch = "PATCH" MethodOptions = "OPTIONS" )
Variables ¶
This section is empty.
Functions ¶
func CreateCcError ¶
func IsSuccessStatus ¶
Types ¶
type CfAPI ¶
CfAPI is the implementation of API interface. It is point of access to CF CloudController API
func NewCfAPI ¶
func NewCfAPI() *CfAPI
NewCfAPI constructs and initializes access to CF by loading necessary credentials from ENVs
func (*CfAPI) AssertAppHasRoutes ¶
func (c *CfAPI) AssertAppHasRoutes(appSummary *types.CfAppSummary) error
func (*CfAPI) BindService ¶
func (*CfAPI) CreateApplicationClone ¶
func (*CfAPI) CreateRoute ¶
func (c *CfAPI) CreateRoute(req *types.CfCreateRouteRequest) (*types.CfRouteResource, error)
func (*CfAPI) CreateServiceBinding ¶
func (c *CfAPI) CreateServiceBinding(req *types.CfServiceBindingCreateRequest) (*types.CfServiceBindingCreateResponse, error)
func (*CfAPI) CreateServiceClone ¶
func (*CfAPI) CreateServiceInstance ¶
func (c *CfAPI) CreateServiceInstance(req *types.CfServiceInstanceCreateRequest) (*types.CfServiceInstanceCreateResponse, error)
func (*CfAPI) CreateUserProvidedServiceBinding ¶
func (c *CfAPI) CreateUserProvidedServiceBinding(req *types.CfServiceBindingCreateRequest) (*types.CfServiceBindingCreateResponse, error)
func (*CfAPI) CreateUserProvidedServiceInstance ¶
func (c *CfAPI) CreateUserProvidedServiceInstance(req *types.CfUserProvidedService) (*types.CfUserProvidedServiceResource, error)
func (*CfAPI) DeleteBinding ¶
func (c *CfAPI) DeleteBinding(binding types.CfBindingResource) error
func (*CfAPI) DeleteRoute ¶
func (*CfAPI) DeleteRoutes ¶
func (*CfAPI) DeleteServiceInstIfUnbound ¶
func (*CfAPI) DeleteServiceInstance ¶
func (*CfAPI) DeleteUPSInstIfUnbound ¶
func (*CfAPI) DeleteUserProvidedServiceInstance ¶
func (*CfAPI) GetAppBindings ¶
func (c *CfAPI) GetAppBindings(id string) (*types.CfBindingsResources, error)
func (*CfAPI) GetAppRoutes ¶
func (c *CfAPI) GetAppRoutes(appID string) (*types.CfRoutesResponse, error)
func (*CfAPI) GetAppSummary ¶
func (c *CfAPI) GetAppSummary(id string) (*types.CfAppSummary, error)
func (*CfAPI) GetAppsFromRoute ¶
func (c *CfAPI) GetAppsFromRoute(routeGUID string) (*types.CfAppsResponse, error)
func (*CfAPI) GetBrokers ¶
func (c *CfAPI) GetBrokers(brokerName string) (*types.CfServiceBrokerResources, error)
func (*CfAPI) GetServiceBindings ¶
func (c *CfAPI) GetServiceBindings(id string) (*types.CfBindingsResources, error)
func (*CfAPI) GetServiceOfName ¶
func (c *CfAPI) GetServiceOfName(name string) (*types.CfServiceResource, error)
func (*CfAPI) GetSpaceRoutesForHostname ¶
func (c *CfAPI) GetSpaceRoutesForHostname(spaceGUID, hostname string) (*types.CfRoutesResponse, error)
func (*CfAPI) GetUserProvidedService ¶
func (c *CfAPI) GetUserProvidedService(guid string) (*types.CfUserProvidedServiceResource, error)
func (*CfAPI) GetUserProvidedServiceBindings ¶
func (c *CfAPI) GetUserProvidedServiceBindings(id string) (*types.CfBindingsResources, error)
func (*CfAPI) PurgeService ¶
func (*CfAPI) RegisterBroker ¶
func (*CfAPI) RestageApp ¶
func (*CfAPI) UnassociateRoute ¶
func (*CfAPI) UnbindAppServices ¶
type HttpMethod ¶
type HttpMethod string
Click to show internal directories.
Click to hide internal directories.