generate

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommatrixExample = templates.Examples(`
			 # Generate the communication matrix in default format (csv):
			 oc commatrix generate  
			 
			 # Generate the communication matrix in nft format:
			 oc commatrix generate --format nft 
			 
			 # Generate the communication matrix in json format with debug logs:
			 oc commatrix generate --format json --debug
			 
			 # Generate communication matrix, host open ports matrix, and their difference in yaml format:
			 oc commatrix generate --host-open-ports --format yaml 
			 
			 # Generate the communication matrix in json format with custom entries:
			 oc commatrix generate --format json --customEntriesPath /path/to/customEntriesFile --customEntriesFormat json
			 
	`)
)

Functions

func Complete

func Complete(o *GenerateOptions) error

func NewCmd

func NewCmdCommatrixGenerate

func NewCmdCommatrixGenerate(cs *client.ClientSet, streams genericiooptions.IOStreams) *cobra.Command

NewCmdAddRoleToUser implements the OpenShift cli add-role-to-user command.

func Run

func Run(o *GenerateOptions) (err error)

func Validate

func Validate(o *GenerateOptions) error

Types

type GenerateOptions

type GenerateOptions struct {
	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

func NewCommatrixOptions

func NewCommatrixOptions(streams genericiooptions.IOStreams, cs *client.ClientSet) *GenerateOptions

Jump to

Keyboard shortcuts

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