Documentation
¶
Index ¶
- Variables
- func Complete(o *GenerateOptions) error
- func NewCmd(cs *client.ClientSet, streams genericiooptions.IOStreams) *cobra.Command
- func NewCmdCommatrixGenerate(cs *client.ClientSet, streams genericiooptions.IOStreams) *cobra.Command
- func Run(o *GenerateOptions) (err error)
- func Validate(o *GenerateOptions) error
- type GenerateOptions
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 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
Click to show internal directories.
Click to hide internal directories.