Documentation ¶
Index ¶
- type AuthTokenFetcher
- type CFApplication
- type CFClient
- func (cfc *CFClient) GetApplication(guid string) (*CFApplication, error)
- func (cfc *CFClient) GetApplications() ([]CFApplication, error)
- func (cfc *CFClient) GetDopplerEndpoint() string
- func (cfc *CFClient) GetV2OrgQuotas() ([]CFOrgQuota, error)
- func (cfc *CFClient) GetV2Orgs() ([]cfclient.Org, error)
- func (cfc *CFClient) GetV3Orgs() ([]cfclient.V3Organization, error)
- type CFOrgQuota
- type CFSidecar
- type DCAClient
- func (c *DCAClient) GetApplication(appGUID string) (*CFApplication, error)
- func (c *DCAClient) GetApplications() ([]CFApplication, error)
- func (c *DCAClient) GetV2OrgQuotas() ([]CFOrgQuota, error)
- func (c *DCAClient) GetV3Orgs() ([]cfclient.V3Organization, error)
- func (c *DCAClient) GetVersion() (Version, error)
- func (c *DCAClient) V2OrgsFromV3Orgs() ([]cfclient.Org, error)
- func (c *DCAClient) Version() Version
- type Data
- type LoggregatorClient
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTokenFetcher ¶
type AuthTokenFetcher interface {
FetchAuthToken() string
}
AuthTokenFetcher is an interface for fetching an auth token from uaa
type CFApplication ¶
type CFApplication struct { GUID string Name string SpaceGUID string SpaceName string OrgName string OrgGUID string Instances int Buildpacks []string DiskQuota int TotalDiskQuota int Memory int TotalMemory int Labels map[string]string Annotations map[string]string Sidecars []CFSidecar }
CFApplication represents a Cloud Controller Application.
type CFClient ¶
func (*CFClient) GetApplication ¶
func (cfc *CFClient) GetApplication(guid string) (*CFApplication, error)
func (*CFClient) GetApplications ¶
func (cfc *CFClient) GetApplications() ([]CFApplication, error)
func (*CFClient) GetDopplerEndpoint ¶
func (*CFClient) GetV2OrgQuotas ¶
func (cfc *CFClient) GetV2OrgQuotas() ([]CFOrgQuota, error)
type CFOrgQuota ¶
type DCAClient ¶
type DCAClient struct { ClusterAgentVersion Version // Version of the cluster-agent we're connected to // contains filtered or unexported fields }
DCAClient is required to query the API of Datadog cluster agent
func NewDCAClient ¶
func (*DCAClient) GetApplication ¶
func (c *DCAClient) GetApplication(appGUID string) (*CFApplication, error)
GetApplication fetches a CF Application with the given appGUID from the Cluster Agent.
func (*DCAClient) GetApplications ¶
func (c *DCAClient) GetApplications() ([]CFApplication, error)
GetApplications fetches the list of CF Applications from the Cluster Agent.
func (*DCAClient) GetV2OrgQuotas ¶
func (c *DCAClient) GetV2OrgQuotas() ([]CFOrgQuota, error)
GetV2OrgQuotas fetches CF Organization Quotas from the Cluster Agent.
func (*DCAClient) GetVersion ¶
GetVersion fetches the version of the Cluster Agent.
func (*DCAClient) V2OrgsFromV3Orgs ¶
V2OrgsFromV3Orgs
type LoggregatorClient ¶
type LoggregatorClient struct { RLPGatewayClient *loggregator.RLPGatewayClient // contains filtered or unexported fields }
func NewLoggregatorClient ¶
func NewLoggregatorClient(cfg *config.Config, lgr *gosteno.Logger, authTokenFetcher AuthTokenFetcher) (*LoggregatorClient, error)
func (*LoggregatorClient) EnvelopeStream ¶
func (l *LoggregatorClient) EnvelopeStream() loggregator.EnvelopeStream
func (*LoggregatorClient) Stop ¶
func (l *LoggregatorClient) Stop()
Click to show internal directories.
Click to hide internal directories.