iamcleanup

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package iamcleanup provides the functionality to cleanup IAM memberships.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAMCleaner

type IAMCleaner struct {
	// contains filtered or unexported fields
}

func (*IAMCleaner) Do

func (c *IAMCleaner) Do(
	ctx context.Context,
	scope string,
	iamQuery string,
	evaluateCondition bool,
) error

Do finds all IAM matching the given scope and query and deletes them.

type IAMCleanupCommand

type IAMCleanupCommand struct {
	cli.BaseCommand

	flags.RetryFlags
	// contains filtered or unexported fields
}

IAMCleanupCommand is a subcommand for Guardian that enables cleaning up IAM.

func (*IAMCleanupCommand) Desc

func (c *IAMCleanupCommand) Desc() string

func (*IAMCleanupCommand) Flags

func (c *IAMCleanupCommand) Flags() *cli.FlagSet

func (*IAMCleanupCommand) Help

func (c *IAMCleanupCommand) Help() string

func (*IAMCleanupCommand) Run

func (c *IAMCleanupCommand) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL