instancediscoverer

package
v0.143.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 5 Imported by: 0

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 AppDiscoveryScope struct {
	SpaceName        string
	SpaceID          string
	OrganizationName string
	OrganizationID   string
	AppNames         []string
}

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)
}

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