utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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