Documentation ¶
Index ¶
- func DryRun(ctx context.Context, apiURL *url.URL, ...) (bool, *accessv1alpha1.BatchEnsureResponse, error)
- func IsTerminal(fd uintptr) bool
- func ShortDur(d time.Duration) string
- type Hook
- func (h Hook) NoAccess(ctx context.Context, input NoAccessInput) (retry bool, justActivated bool, err error)
- func (h Hook) NoEntitlementAccess(ctx context.Context, cfg *config.Context, input NoEntitlementAccessInput) (retry bool, result *accessv1alpha1.BatchEnsureResponse, justActivated bool, ...)
- func (h Hook) RetryAccess(ctx context.Context, input NoAccessInput) error
- func (h Hook) RetryNoEntitlementAccess(ctx context.Context, cfg *config.Context, input NoEntitlementAccessInput) (result *accessv1alpha1.BatchEnsureResponse, err error)
- type NoAccessInput
- type NoEntitlementAccessInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DryRun ¶
func DryRun(ctx context.Context, apiURL *url.URL, client accessv1alpha1connect.AccessServiceClient, req *accessv1alpha1.BatchEnsureRequest, jsonOutput bool, confirm bool) (bool, *accessv1alpha1.BatchEnsureResponse, error)
func IsTerminal ¶
Types ¶
type Hook ¶
type Hook struct{}
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
Click to show internal directories.
Click to hide internal directories.