cf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CfClient

type CfClient interface {
	ListOrgs(cliConnection plugin.CliConnection) ([]Org, error)
	ListSpacesByOrg(cliConnection plugin.CliConnection, spacesUrl string) ([]Space, error)
	ListServices(cliConnection plugin.CliConnection) ([]Service, error)
	ListServicePlans(cliConnection plugin.CliConnection) ([]ServicePlan, error)
	GetServiceInstancesByUrl(cliConnection plugin.CliConnection, serviceInstancesUrl string) ([]ServiceInstance, error)
	GetServiceSummaryBySpace(cliConnection plugin.CliConnection, spaceUrl string) ([]ServiceSummaryBySpace, error)
}

type ClientHelper

type ClientHelper struct{}

implementation of interface CfClient

func (*ClientHelper) GetServiceInstancesByUrl

func (helper *ClientHelper) GetServiceInstancesByUrl(cliConnection plugin.CliConnection, serviceInstancesUrl string) ([]ServiceInstance, error)

get all service instances from service_instances_url under space response

func (*ClientHelper) GetServiceSummaryBySpace

func (helper *ClientHelper) GetServiceSummaryBySpace(cliConnection plugin.CliConnection, spaceUrl string) ([]ServiceSummaryBySpace, error)

get service summary for specific space to get bound_app_count numbers

func (*ClientHelper) ListOrgs

func (helper *ClientHelper) ListOrgs(cliConnection plugin.CliConnection) ([]Org, error)

list all the orgs in the foundation

func (*ClientHelper) ListServicePlans

func (helper *ClientHelper) ListServicePlans(cliConnection plugin.CliConnection) ([]ServicePlan, error)

list all the service plans

func (*ClientHelper) ListServices

func (helper *ClientHelper) ListServices(cliConnection plugin.CliConnection) ([]Service, error)

list all the services

func (*ClientHelper) ListSpacesByOrg

func (helper *ClientHelper) ListSpacesByOrg(cliConnection plugin.CliConnection, spacesUrl string) ([]Space, error)

list all the spaces under the particular org

type Org

type Org struct {
	Name      string
	Guid      string
	SpacesUrl string
}

type Service

type Service struct {
	Name string
	Guid string
}

type ServiceInstance

type ServiceInstance struct {
	Name            string
	Guid            string
	ServicePlanGuid string
	SpaceGuid       string
}

type ServicePlan

type ServicePlan struct {
	Name        string
	Guid        string
	ServiceGuid string
}

type ServiceSummaryBySpace

type ServiceSummaryBySpace struct {
	Name          string
	Guid          string
	BoundAppCount int
}

type Space

type Space struct {
	Name                string
	Guid                string
	Url                 string
	OrgGuid             string
	ServiceInstancesUrl string
}

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