-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #404 from flanksource/moshloop
postgres + javascript
- Loading branch information
Showing
61 changed files
with
3,309 additions
and
1,319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//go:build !fast | ||
|
||
package checks | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
//go:build fast | ||
|
||
package checks | ||
|
||
import ( | ||
"errors" | ||
|
||
"github.com/flanksource/canary-checker/api/context" | ||
"github.com/flanksource/canary-checker/api/external" | ||
"github.com/flanksource/canary-checker/pkg" | ||
) | ||
|
||
type S3Checker struct{} | ||
type EC2Checker struct{} | ||
type CloudWatchChecker struct{} | ||
type AwsConfigChecker struct{} | ||
|
||
func (c *AwsConfigChecker) Type() string { | ||
return "awsconfig" | ||
} | ||
|
||
func (c *AwsConfigChecker) Run(ctx *context.Context) []*pkg.CheckResult { | ||
return pkg.SetupError(ctx.Canary, errors.New("AWS not included in binary")) | ||
} | ||
|
||
func (c *EC2Checker) Run(ctx *context.Context) []*pkg.CheckResult { | ||
return pkg.SetupError(ctx.Canary, errors.New("AWS not included in binary")) | ||
} | ||
|
||
func (c *CloudWatchChecker) Run(ctx *context.Context) []*pkg.CheckResult { | ||
return pkg.SetupError(ctx.Canary, errors.New("AWS not included in binary")) | ||
} | ||
|
||
func (c *S3Checker) Run(ctx *context.Context) []*pkg.CheckResult { | ||
return pkg.SetupError(ctx.Canary, errors.New("AWS not included in binary")) | ||
} | ||
|
||
func (c *AwsConfigChecker) Check(ctx *context.Context, extConfig external.Check) *pkg.CheckResult { | ||
return pkg.Fail(extConfig, ctx.Canary).Failf("AWS not included in binary") | ||
} | ||
|
||
func (c *CloudWatchChecker) Type() string { | ||
return "cloudwatch" | ||
} | ||
|
||
func (c *CloudWatchChecker) Check(ctx *context.Context, extConfig external.Check) *pkg.CheckResult { | ||
return pkg.Fail(extConfig, ctx.Canary).Failf("AWS not included in binary") | ||
} | ||
|
||
// Type: returns checker type | ||
func (c *EC2Checker) Type() string { | ||
return "ec2" | ||
} | ||
|
||
func (c *EC2Checker) Check(ctx *context.Context, extConfig external.Check) *pkg.CheckResult { | ||
return pkg.Fail(extConfig, ctx.Canary).Failf("AWS not included in binary") | ||
} | ||
|
||
func (c *S3Checker) Type() string { | ||
return "s3" | ||
} | ||
|
||
func (c *S3Checker) Check(ctx *context.Context, extConfig external.Check) *pkg.CheckResult { | ||
return pkg.Fail(extConfig, ctx.Canary).Failf("AWS not included in binary") | ||
} | ||
|
||
func CheckS3Bucket(ctx *context.Context, extConfig external.Check) *pkg.CheckResult { | ||
return pkg.Fail(extConfig, ctx.Canary).Failf("AWS not included in binary") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.