cf

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name      string
	Guid      string
	Space     string
	Instances map[int]Instance
}

type Cli

type Cli interface {
	GetApp(string) (plugin_models.GetAppModel, error)
	GetCurrentOrg() (plugin_models.Organization, error)
	GetCurrentSpace() (plugin_models.Space, error)
	GetSpace(spaceName string) (plugin_models.GetSpace_Model, error)
	GetSpaces() ([]plugin_models.GetSpaces_Model, error)
	Username() (string, error)
}

type Client

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

func NewClient

func NewClient(cli Cli, processInstanceIDFetcher ProcessInstanceIDFetcher) Client

func (Client) GetApplication

func (c Client) GetApplication(logger lager.Logger, appName string) (Application, error)

func (Client) GetCurrentOrg

func (c Client) GetCurrentOrg(logger lager.Logger) (string, error)

func (Client) GetCurrentSpace

func (c Client) GetCurrentSpace(logger lager.Logger) (string, error)

func (Client) GetSpaces

func (c Client) GetSpaces(logger lager.Logger) ([]Space, error)

func (Client) Username

func (c Client) Username(logger lager.Logger) (string, error)

type Instance

type Instance struct {
	InstanceID        int
	ProcessInstanceID string
}

type ProcessInstanceIDFetcher

type ProcessInstanceIDFetcher interface {
	Fetch(logger lager.Logger, appGUID string) (map[int]string, error)
}

type Space

type Space struct {
	Name         string
	Applications []Application
}

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