Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OutputWriter ¶
type OutputWriter interface { Standard() Compact() ToFile() error }
type PermissionsOutputWriter ¶
type PermissionsOutputWriter struct { // Roles is the array of role permissions to write to the user Roles *rbacv1.Role // ClusterRoles is the array of cluster role permissions to write to the user ClusterRoles *rbacv1.ClusterRole // Role is the file location for the role to be written to Role string // ClusterRole is the file location for the cluster role to be written to ClusterRole string // contains filtered or unexported fields }
func (*PermissionsOutputWriter) Compact ¶
func (w *PermissionsOutputWriter) Compact()
Compact will write the permission advisor data as the compact view to STDOUT file
func (*PermissionsOutputWriter) Load ¶
func (w *PermissionsOutputWriter) Load()
Load will load data needed for later processing in the commands
func (*PermissionsOutputWriter) Standard ¶
func (w *PermissionsOutputWriter) Standard()
Standard will write the permission advisor data as the standard view to STDOUT file
func (*PermissionsOutputWriter) ToFile ¶
func (w *PermissionsOutputWriter) ToFile() error
ToFile will write the permission advisor data role and cluster role to the specified files in the structure On error returns the file writing error returned from the OS package
Click to show internal directories.
Click to hide internal directories.