Documentation
¶
Index ¶
- Variables
- func NewCommandAnalysis() *cobra.Command
- func NewCommandAuditGen() *cobra.Command
- func NewCommandGenerateAnalysisConfig() *cobra.Command
- func NewCommandGenerateClusterRole() *cobra.Command
- func NewCommandGenerateShowPermissions() *cobra.Command
- func NewCommandLookup() *cobra.Command
- func NewCommandPolicyRules() *cobra.Command
- func NewCommandVersion() *cobra.Command
- func NewCommandVisualize() *cobra.Command
- func NewCommandWhoAmI() *cobra.Command
- func NewCommandWhoCan() *cobra.Command
- type AuditGenOpts
- type MetadataFlag
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "" Commit = "" )
Functions ¶
func NewCommandAnalysis ¶ added in v1.3.0
func NewCommandAuditGen ¶ added in v0.9.0
func NewCommandGenerateAnalysisConfig ¶ added in v1.3.0
func NewCommandGenerateShowPermissions ¶ added in v1.10.0
func NewCommandLookup ¶ added in v0.5.0
func NewCommandPolicyRules ¶ added in v0.8.0
func NewCommandVersion ¶ added in v0.5.0
func NewCommandVisualize ¶ added in v0.4.0
func NewCommandWhoAmI ¶ added in v1.14.0
func NewCommandWhoCan ¶ added in v1.1.0
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
type MetadataFlag ¶ added in v1.18.0
type MetadataFlag struct {
// contains filtered or unexported fields
}
func (*MetadataFlag) Set ¶ added in v1.18.0
func (f *MetadataFlag) Set(v string) error
func (*MetadataFlag) String ¶ added in v1.18.0
func (f *MetadataFlag) String() string
func (*MetadataFlag) Type ¶ added in v1.18.0
func (f *MetadataFlag) Type() string
Click to show internal directories.
Click to hide internal directories.