Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AWSRegion is required even though the IAM API is global. AWSRegion string = "eu-central-1" // Description describes which functionality this health check implements. Description = "Ensure AWS API availability." // Name is the identifier of the health check. This can be used for emitting // metrics. Name = "aws" // SuccessMessage is the message returned in case the health check did not // fail. SuccessMessage = "all good" // Timeout is the time being waited until timing out health check, which // renders its result unsuccessful. Timeout = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
type Config struct { Logger micrologger.Logger AwsConfig awsutil.Config }
Config represents the configuration used to create a healthz service.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the healthz service interface.
func (*Service) GetHealthz ¶
GetHealthz implements the health check for AWS. It does this by calling the IAM API to get the current user. This checks that we can connect to the API and the credentials are correct.
Click to show internal directories.
Click to hide internal directories.