cmd

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = ""
	Commit  = ""
)

Functions

func NewCommandAnalysis added in v1.3.0

func NewCommandAnalysis() *cobra.Command

func NewCommandAuditGen added in v0.9.0

func NewCommandAuditGen() *cobra.Command

func NewCommandGenerateAnalysisConfig added in v1.3.0

func NewCommandGenerateAnalysisConfig() *cobra.Command

func NewCommandGenerateClusterRole

func NewCommandGenerateClusterRole() *cobra.Command

func NewCommandGenerateShowPermissions added in v1.10.0

func NewCommandGenerateShowPermissions() *cobra.Command

func NewCommandLookup added in v0.5.0

func NewCommandLookup() *cobra.Command

func NewCommandPolicyRules added in v0.8.0

func NewCommandPolicyRules() *cobra.Command

func NewCommandVersion added in v0.5.0

func NewCommandVersion() *cobra.Command

func NewCommandVisualize added in v0.4.0

func NewCommandVisualize() *cobra.Command

func NewCommandWhoAmI added in v1.14.0

func NewCommandWhoAmI() *cobra.Command

func NewCommandWhoCan added in v1.1.0

func NewCommandWhoCan() *cobra.Command

Types

type AuditGenOpts added in v0.9.0

type AuditGenOpts struct {
	// AuditSources is a list of files, URLs or - for STDIN.
	// Format must be JSON event.v1alpha1.audit.k8s.io, event.v1beta1.audit.k8s.io,  event.v1.audit.k8s.io objects, one per line
	AuditSources []string

	UserRegexFilter   string
	UserFilterInverse bool

	NamespaceRegexFilter string

	// Namespace limits the audit events considered to the specified namespace
	Namespace string

	// JSON or YAML
	OutputFormat string

	// Directory to write generated roles to. Defaults to current directory.
	GeneratedPath string

	// Annotations to apply to generated object names.
	Annotations map[string]string

	// If the same operation is performed in multiple namespaces, expand the permission to allow it in any namespace
	ExpandMultipleNamespacesToClusterScoped bool
	// If the same operation is performed on resources with different names, expand the permission to allow it on any name
	ExpandMultipleNamesToUnnamed bool
}

func (*AuditGenOpts) Complete added in v0.9.0

func (a *AuditGenOpts) Complete() error

func (*AuditGenOpts) Run added in v0.9.0

func (a *AuditGenOpts) Run() error

func (*AuditGenOpts) Validate added in v0.9.0

func (a *AuditGenOpts) Validate() error

Jump to

Keyboard shortcuts

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