MCPcopy
hub / github.com/sourcegraph/checkup / Storage

Struct Storage

storage/s3/s3.go:24–35  ·  view source on GitHub ↗

Storage is a way to store checkup results in an S3 bucket.

Source from the content-addressed store, hash-verified

22
23// Storage is a way to store checkup results in an S3 bucket.
24type 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
38func New(config json.RawMessage) (Storage, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected