jobs

package
v0.11.0-alpha.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(
	logger log.Logger,
	grantService grantService,
	providerService providerService,
	notifier notifiers.Client,
	crypto crypto,
	validator *validator.Validate,
) *handler

Types

type Config added in v0.7.4

type Config map[string]interface{}

Config is a map of job-specific configuration

func (Config) Decode added in v0.7.4

func (c Config) Decode(v interface{}) error

type GrantDormancyCheckConfig added in v0.7.5

type GrantDormancyCheckConfig struct {
	DryRun         bool   `mapstructure:"dry_run"`
	Period         string `mapstructure:"period"`
	RetainGrantFor string `mapstructure:"retain_grant_for"`
}

type Job added in v0.7.4

type Job struct {
	Type   Type
	Config Config `mapstructure:"config"`
}

type RevokeGrantsByUserCriteriaConfig added in v0.7.4

type RevokeGrantsByUserCriteriaConfig struct {
	IAM                 domain.IAMConfig     `mapstructure:"iam"`
	UserCriteria        evaluator.Expression `mapstructure:"user_criteria"`
	ReassignOwnershipTo evaluator.Expression `mapstructure:"reassign_ownership_to"`
	DryRun              bool                 `mapstructure:"dry_run"`
}

type Type added in v0.7.4

type Type string
const (
	TypeFetchResources             Type = "fetch_resources"
	TypeExpiringGrantNotification  Type = "expiring_grant_notification"
	TypeRevokeExpiredGrants        Type = "revoke_expired_grants"
	TypeRevokeGrantsByUserCriteria Type = "revoke_grants_by_user_criteria"
	TypeGrantDormancyCheck         Type = "grant_dormancy_check"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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