accessrequesthook

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTerminal

func IsTerminal(fd uintptr) bool

func ShortDur

func ShortDur(d time.Duration) string

Types

type Hook

type Hook struct{}

func (Hook) NoAccess

func (h Hook) NoAccess(ctx context.Context, input NoAccessInput) (retry bool, justActivated bool, err error)

func (Hook) NoEntitlementAccess added in v0.31.0

func (h Hook) NoEntitlementAccess(ctx context.Context, cfg *config.Context, input NoEntitlementAccessInput) (retry bool, result *accessv1alpha1.BatchEnsureResponse, justActivated bool, err error)

func (Hook) RetryAccess added in v0.28.0

func (h Hook) RetryAccess(ctx context.Context, input NoAccessInput) error

func (Hook) RetryNoEntitlementAccess added in v0.31.0

func (h Hook) RetryNoEntitlementAccess(ctx context.Context, cfg *config.Context, input NoEntitlementAccessInput) (result *accessv1alpha1.BatchEnsureResponse, err error)

type NoAccessInput added in v0.27.0

type NoAccessInput struct {
	Profile   *cfaws.Profile
	Reason    string
	Duration  *durationpb.Duration
	Confirm   bool
	Wait      bool
	StartTime time.Time
}

type NoEntitlementAccessInput added in v0.31.0

type NoEntitlementAccessInput struct {
	Target    string
	Role      string
	Reason    string
	Duration  *durationpb.Duration
	Confirm   bool
	Wait      bool
	StartTime time.Time
}

Jump to

Keyboard shortcuts

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