Documentation ¶
Index ¶
- Variables
- func NewSummary() *attributes.Attributes
- type CFApp
- type CFAppManager
- func (c *CFAppManager) Close()
- func (c *CFAppManager) FetchApp(a *CFApp) error
- func (c *CFAppManager) GetApp(guid string) (app *CFApp)
- func (c *CFAppManager) GetAppEnv(guid string) (cfclient.AppEnv, error)
- func (c *CFAppManager) GetAppInstanceAttributes(appID string, instanceID int32) (attrs *attributes.Attributes)
- func (c *CFAppManager) GetAppInstances(guid string) (map[string]cfclient.AppInstance, error)
- func (c *CFAppManager) UpdateClient()
- type Cache
- type Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AppName = cfg.GetString(config.EnvAppName) AppSpaceName = cfg.GetString(config.EnvAppSpaceName) AppOrgName = cfg.GetString(config.EnvAppOrgName) AppID = cfg.GetString(config.EnvAppID) AppInstanceIndex = cfg.GetString(config.EnvAppInstanceIndex) AppInstanceState = cfg.GetString(config.EnvAppInstanceState) AppInstanceUID = cfg.GetString(config.EnvAppInstanceUID) AppInstancesDesired = cfg.GetString(config.EnvAppInstancesDesired) )
nolint
Functions ¶
Types ¶
type CFApp ¶
type CFApp struct { Attributes *attributes.Attributes GUID string App *cfclient.App Summaries map[int32]string VcapServices map[string]interface{} LastPull time.Time Lock *sync.RWMutex // contains filtered or unexported fields }
CFApp Extended
func (*CFApp) GetAppEnv ¶
func (a *CFApp) GetAppEnv()
GetAppEnv calls the client to get the system environment. This is added to the pcfapp and consumed by applicaton specific accumulators (ContainerMetric and LogMessage)
func (*CFApp) GetInstanceAttributes ¶
func (a *CFApp) GetInstanceAttributes(id int32) (attrs *attributes.Attributes)
GetInstanceAttributes ...
type CFAppManager ¶
type CFAppManager struct { Cache *Cache // contains filtered or unexported fields }
CFAppManager ...
func (*CFAppManager) GetAppEnv ¶
func (c *CFAppManager) GetAppEnv(guid string) (cfclient.AppEnv, error)
GetAppEnv ...
func (*CFAppManager) GetAppInstanceAttributes ¶
func (c *CFAppManager) GetAppInstanceAttributes(appID string, instanceID int32) (attrs *attributes.Attributes)
GetAppInstanceAttributes ...
func (*CFAppManager) GetAppInstances ¶
func (c *CFAppManager) GetAppInstances(guid string) (map[string]cfclient.AppInstance, error)
GetAppInstances ...
func (*CFAppManager) UpdateClient ¶
func (c *CFAppManager) UpdateClient()
UpdateClient when the token expires we need a fresh client
Click to show internal directories.
Click to hide internal directories.