Storage is a way to store checkup results in an S3 bucket.
| 22 | |
| 23 | // Storage is a way to store checkup results in an S3 bucket. |
| 24 | type Storage struct { |
| 25 | AccessKeyID string `json:"access_key_id"` |
| 26 | SecretAccessKey string `json:"secret_access_key"` |
| 27 | Region string `json:"region,omitempty"` |
| 28 | Bucket string `json:"bucket"` |
| 29 | |
| 30 | // Check files older than CheckExpiry will be |
| 31 | // deleted on calls to Maintain(). If this is |
| 32 | // the zero value, no old check files will be |
| 33 | // deleted. |
| 34 | CheckExpiry time.Duration `json:"check_expiry,omitempty"` |
| 35 | } |
| 36 | |
| 37 | // New creates a new Storage instance based on json config |
| 38 | func New(config json.RawMessage) (Storage, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected