Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AccessDeniedError = errors.New("access denied")
Functions ¶
This section is empty.
Types ¶
type AppDiscoveryScope ¶
type CFAppDiscoverer ¶
type CFAppDiscoverer interface { GetSpaceAppByName(appName string) (cfclient.App, error) GetAppRoutesByName(appName string) ([]cfclient.Route, error) GetAppRouteURLsByName(appName string) ([]*url.URL, error) Org() cfclient.Org Space() cfclient.Space MyName() string Ping() error }
func New ¶
func New(cfg Config) (CFAppDiscoverer, error)
type Config ¶
type Config struct { ClientConfig *cfclient.Config Client DiscovererClient Logger lager.Logger DiscoveryScope AppDiscoveryScope ThisAppName string }
type DiscovererClient ¶
type DiscovererClient interface { AppByName(appName, spaceGuid, orgGuid string) (cfclient.App, error) GetAppRoutes(guid string) ([]cfclient.Route, error) GetOrgByGuid(guid string) (cfclient.Org, error) GetSpaceByGuid(guid string) (cfclient.Space, error) GetDomainByGuid(guid string) (cfclient.Domain, error) }
Click to show internal directories.
Click to hide internal directories.