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 ¶
func NewCommandAuditGen ¶
func NewCommandLookup ¶
func NewCommandPolicyRules ¶
func NewCommandVersion ¶
func NewCommandVisualize ¶
func NewCommandWhoAmI ¶
func NewCommandWhoCan ¶
Types ¶
type AuditGenOpts ¶
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 ¶
func (a *AuditGenOpts) Complete() error
func (*AuditGenOpts) Run ¶
func (a *AuditGenOpts) Run() error
func (*AuditGenOpts) Validate ¶
func (a *AuditGenOpts) Validate() error
type MetadataFlag ¶
type MetadataFlag struct {
// contains filtered or unexported fields
}
func (*MetadataFlag) Set ¶
func (f *MetadataFlag) Set(v string) error
func (*MetadataFlag) String ¶
func (f *MetadataFlag) String() string
func (*MetadataFlag) Type ¶
func (f *MetadataFlag) Type() string
Click to show internal directories.
Click to hide internal directories.