visualize

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRBACGraph

func CreateRBACGraph(opts *Opts) error

func GenerateOutput

func GenerateOutput(filename string, format string, g *dot.Graph, legend *dot.Graph, opts *Opts) error

func GraphLegend

func GraphLegend() *dot.Graph

Types

type HtmlReport

type HtmlReport struct {
	Graph  *dot.Graph
	Legend *dot.Graph
	// contains filtered or unexported fields
}

func (*HtmlReport) Generate

func (r *HtmlReport) Generate() (out string, err error)

type Opts

type Opts struct {
	//Input source - cluster or input file/stdin
	ClusterContext string
	Infile         string

	//Show Actuall use by Pods
	ShowPodsOnly bool

	Outfile    string
	Outformat  string
	ShowRules  bool
	ShowLegend bool
	ShowPSP    bool

	IncludedNamespaces string
	ExcludedNamespaces string

	IncludeSubjectsRegex string
}

func (*Opts) Validate added in v0.5.0

func (o *Opts) Validate() error

type Permissions

type Permissions struct {
	rbac.Permissions

	ServiceAccountsUsed sets.String
	Pods                map[string]map[string]v1.Pod //map[namespace]map[name]Pod
}

type RbacViz

type RbacViz struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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