deleter

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFoundryClient

type CloudFoundryClient interface {
	GetInstancesOfServiceOffering(serviceOfferingID string, logger *log.Logger) ([]string, error)
	GetInstance(instanceGUID string, logger *log.Logger) (cloud_foundry_client.Instance, error)
	GetBindingsForInstance(instanceGUID string, logger *log.Logger) ([]cloud_foundry_client.Binding, error)
	DeleteBinding(binding cloud_foundry_client.Binding, logger *log.Logger) error
	GetServiceKeysForInstance(instanceGUID string, logger *log.Logger) ([]cloud_foundry_client.ServiceKey, error)
	DeleteServiceKey(serviceKey cloud_foundry_client.ServiceKey, logger *log.Logger) error
	DeleteServiceInstance(instanceGUID string, logger *log.Logger) error
}

type Config

type Config struct {
	ServiceCatalog             ServiceCatalog `yaml:"service_catalog"`
	DisableSSLCertVerification bool           `yaml:"disable_ssl_cert_verification"`
	CF                         config.CF      `yaml:"cf"`
	PollingInterval            int            `yaml:"polling_interval"`
	PollingInitialOffset       int            `yaml:"polling_initial_offset"`
}

type Deleter

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

func New

func New(cfClient CloudFoundryClient, sleeper Sleeper, pollingInitialOffset int, pollingInterval int, logger *log.Logger) *Deleter

func (*Deleter) DeleteAllServiceInstances

func (d *Deleter) DeleteAllServiceInstances(serviceUniqueID string) error

type ServiceCatalog

type ServiceCatalog struct {
	ID string `yaml:"id"`
}

type Sleeper

type Sleeper interface {
	Sleep(d time.Duration)
}

TODO SF extract a poller, rather than a sleeper

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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