policycontext

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrefixedCommandUsage

func GetPrefixedCommandUsage(ctx context.Context, commandName string) string

func IsACMEPolicyLevel

func IsACMEPolicyLevel(ctx context.Context) bool

IsACMEPolicyLevel returns if the context.Context has ACME account policy level.

func IsAllow

func IsAllow(ctx context.Context) bool

IsAllow returns if the context.Context has allow set.

func IsAuthorityPolicyLevel

func IsAuthorityPolicyLevel(ctx context.Context) bool

IsAuthorityPolicyLevel returns if the context.Context has authority policy level.

func IsDeny

func IsDeny(ctx context.Context) bool

IsDeny returns if context.Context has deny set.

func IsProvisionerPolicyLevel

func IsProvisionerPolicyLevel(ctx context.Context) bool

IsProvisionerPolicyLevel returns if the context.Context has provisioner policy level.

func IsSSHHostPolicy

func IsSSHHostPolicy(ctx context.Context) bool

IsSSHHostPolicy returns if the context.Context has SSH host policy set.

func IsSSHUserPolicy

func IsSSHUserPolicy(ctx context.Context) bool

IsSSHUserPolicy returns if context.Context has SSH user policy set.

func IsX509Policy

func IsX509Policy(ctx context.Context) bool

IsX509Policy returns if the context.Context has X.509 policy set.

func WithACMEPolicyLevel

func WithACMEPolicyLevel(ctx context.Context) context.Context

WithACMEPolicyLevel returns a new context.Context with parent ctx and ACME account policy level set.

func WithAllow

func WithAllow(ctx context.Context) context.Context

WithAllow returns a context.Context with allow policy set.

func WithAuthorityPolicyLevel

func WithAuthorityPolicyLevel(ctx context.Context) context.Context

WithAuthorityPolicyLevel returns a new context.Context with parent ctx and authority policy level set.

func WithDeny

func WithDeny(ctx context.Context) context.Context

WithDeny returns a context.Context with deny set.

func WithProvisionerPolicyLevel

func WithProvisionerPolicyLevel(ctx context.Context) context.Context

WithProvisionerPolicyLevel returns a new context.Context with parent ctx and provisioner policy level set.

func WithSSHHostPolicy

func WithSSHHostPolicy(ctx context.Context) context.Context

WithSSHHostPolicy returns a context.Context with SSH host policy set.

func WithSSHUserPolicy

func WithSSHUserPolicy(ctx context.Context) context.Context

WithSSHUserPolicy returns a context.Context with SSH user policy set.

func WithX509Policy

func WithX509Policy(ctx context.Context) context.Context

WithX509Policy returns a new context.Context with parent ctx and X509 policy set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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