cloudfoundry

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceBindRepository

func GetServiceBindRepository() (api.ServiceBindingRepository, error)

Types

type Client

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

func New

func New(logger hclog.Logger) (*Client, error)

func (*Client) CfClient

func (c *Client) CfClient() *ccv3.Client

func (*Client) CloudControllerURL

func (c *Client) CloudControllerURL() interface{}

func (*Client) CreateApplicationDeployment

func (c *Client) CreateApplicationDeployment(appGuid string, dropletGuid string) (string, error)

func (*Client) CreateApplicationProcessScale

func (c *Client) CreateApplicationProcessScale(guid string, p resources.Process) (proc resources.Process, err error)

func (*Client) CreateBuild

func (c *Client) CreateBuild(packageGuid string) (resources.Build, error)

func (*Client) CreatePackage

func (c *Client) CreatePackage(pkg resources.Package) (resources.Package, error)

func (*Client) CreateRoute

func (c *Client) CreateRoute(route resources.Route) (resources.Route, error)

func (*Client) DeleteApplication

func (c *Client) DeleteApplication(guid string) (ccv3.JobURL, error)

func (*Client) DeleteRoute

func (c *Client) DeleteRoute(guid string) (ccv3.JobURL, error)

func (*Client) GetApplicationProcesses

func (c *Client) GetApplicationProcesses(appGuid string) (processes []resources.Process, err error)

func (*Client) GetApplicationRoutes

func (c *Client) GetApplicationRoutes(guid string) ([]resources.Route, error)

func (*Client) GetApplications

func (c *Client) GetApplications(
	orgGuid string,
	spaceGuid string,
	appName string,
) (apps []resources.Application, err error)

func (*Client) GetApplicationsByLabels

func (c *Client) GetApplicationsByLabels(
	orgGuid string,
	spaceGuid string,
	labels []string,
) (apps []resources.Application, err error)

func (*Client) GetBuild

func (c *Client) GetBuild(buildGuid string) (resources.Build, error)

func (*Client) GetDomains

func (c *Client) GetDomains(domains ...string) ([]resources.Domain, error)

func (*Client) GetDomainsByName

func (c *Client) GetDomainsByName(names ...string) (domains []resources.Domain, err error)

func (*Client) GetHealthByGUID

func (c *Client) GetHealthByGUID(appGuid string) (result *proto.StatusReport, err error)

func (*Client) GetOrganization

func (c *Client) GetOrganization(name string) (resources.Organization, error)

func (*Client) GetProcessInstances

func (c *Client) GetProcessInstances(guid string) ([]ccv3.ProcessInstance, error)

func (*Client) GetRoute

func (c *Client) GetRoute(guid string) (route resources.Route, err error)

func (*Client) GetServiceInstances

func (c *Client) GetServiceInstances(
	spaceGuid string,
	serviceName string,
) (resources.ServiceInstance, error)

func (*Client) GetSpaceByName

func (c *Client) GetSpaceByName(spaceName string, orgGuid string) (space resources.Space, err error)

func (*Client) MapRoute

func (c *Client) MapRoute(routeGuid string, appGuid string) error

func (*Client) SelectOrgAndSpace

func (c *Client) SelectOrgAndSpace(
	orgName string,
	spaceName string,
) (org resources.Organization, space resources.Space, err error)

func (*Client) StopApplication

func (c *Client) StopApplication(guid string) (resources.Application, error)

func (*Client) UnmapRoute

func (c *Client) UnmapRoute(routeGuid string, appGuid string) error

func (*Client) UpdateApplicationEnvironmentVariables

func (c *Client) UpdateApplicationEnvironmentVariables(
	appGuid string,
	vars resources.EnvironmentVariables,
) (resources.EnvironmentVariables, error)

func (*Client) UpdateApplicationProcess

func (c *Client) UpdateApplicationProcess(p resources.Process) (proc resources.Process, err error)

func (*Client) UpsertRoute

func (c *Client) UpsertRoute(
	hostname string,
	domain resources.Domain,
	spaceGuid string,
) (route resources.Route, err error)

Jump to

Keyboard shortcuts

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