Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetectIamDriftCommand ¶
type DetectIamDriftCommand struct { cli.BaseCommand flags.GitHubFlags driftflags.DriftIssueFlags // contains filtered or unexported fields }
DetectIamDriftCommand is a subcommand for Guardian that enables detecting IAM drift.
func (*DetectIamDriftCommand) Desc ¶
func (c *DetectIamDriftCommand) Desc() string
func (*DetectIamDriftCommand) Flags ¶
func (c *DetectIamDriftCommand) Flags() *cli.FlagSet
func (*DetectIamDriftCommand) Help ¶
func (c *DetectIamDriftCommand) Help() string
type GitHubDriftIssueService ¶
type GitHubDriftIssueService struct {
// contains filtered or unexported fields
}
func NewGitHubDriftIssueService ¶
func NewGitHubDriftIssueService(gh *github.GitHubClient, owner, repo, issueTitle, issueBody string) *GitHubDriftIssueService
func (*GitHubDriftIssueService) CloseIssues ¶
func (s *GitHubDriftIssueService) CloseIssues(ctx context.Context, labels []string) error
func (*GitHubDriftIssueService) CreateOrUpdateIssue ¶
type IAMDriftDetector ¶
type IAMDriftDetector struct {
// contains filtered or unexported fields
}
func NewIAMDriftDetector ¶
func (*IAMDriftDetector) DetectDrift ¶
func (d *IAMDriftDetector) DetectDrift( ctx context.Context, bucketQuery string, driftignoreFile string, ) (*IAMDrift, error)
DetectDrift compares the actual GCP IAM against the IAM in your Terraform state files.
func (*IAMDriftDetector) URI ¶
func (d *IAMDriftDetector) URI(i *assetinventory.AssetIAM) string
URI returns a canonical string identifier for the IAM entity. This is used for diffing and as output to the user.
Directories ¶
Path | Synopsis |
---|---|
Package statefiles provide the drift detection on Terraform statefile functionality for Guardian.
|
Package statefiles provide the drift detection on Terraform statefile functionality for Guardian. |
Click to show internal directories.
Click to hide internal directories.