Documentation
¶
Index ¶
- Constants
- type CFApiRequest
- type CFInfoResponse
- type CFMetadata
- type CFResource
- type CFResourceNotFound
- type CFResources
- type CFResourcesResponse
- type CloudController
- type Config
- type HTTPRequestError
- type Notifications
- type RetryHTTPClient
- type ServiceAlertsClient
- type SpaceNotificationRequest
- type UAATokenResponse
Constants ¶
View Source
const DummyKindID = "service-alerts"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CFApiRequest ¶
type CFInfoResponse ¶
type CFInfoResponse struct {
UAAUrl string `json:"token_endpoint"`
}
type CFMetadata ¶
type CFMetadata struct {
GUID string `json:"guid"`
}
type CFResource ¶
type CFResource struct {
Metadata CFMetadata `json:"metadata"`
}
type CFResourceNotFound ¶
type CFResourceNotFound struct {
// contains filtered or unexported fields
}
type CFResources ¶
type CFResources []CFResource
type CFResourcesResponse ¶
type CFResourcesResponse struct { TotalResults int `json:"total_results"` Resources CFResources `json:"resources"` }
type CloudController ¶
type Config ¶
type Config struct { CloudController CloudController `yaml:"cloud_controller"` Notifications Notifications `yaml:"notifications"` GlobalTimeoutSeconds int `yaml:"timeout_seconds"` SkipSSLValidation *bool `yaml:"skip_ssl_validation"` }
type HTTPRequestError ¶
type HTTPRequestError struct {
// contains filtered or unexported fields
}
func (HTTPRequestError) ErrorMessageForUser ¶
func (n HTTPRequestError) ErrorMessageForUser() string
type Notifications ¶
type RetryHTTPClient ¶
type RetryHTTPClient struct {
// contains filtered or unexported fields
}
func NewRetryHTTPClient ¶
func NewRetryHTTPClient(config Config, logger *log.Logger) *RetryHTTPClient
type ServiceAlertsClient ¶
type ServiceAlertsClient struct {
// contains filtered or unexported fields
}
func (*ServiceAlertsClient) SendServiceAlert ¶
func (c *ServiceAlertsClient) SendServiceAlert(product, subject, serviceInstanceID, content string) error
type UAATokenResponse ¶
type UAATokenResponse struct {
Token string `json:"access_token"`
}
Click to show internal directories.
Click to hide internal directories.