Documentation ¶
Overview ¶
Package commands contains all of the cli commands
Package commands contains all of the cli commands ¶
Package commands contains all of the cli commands ¶
Package commands contains all of the cli commands ¶
Package commands contains all of the cli commands ¶
Package commands contains all of the cli commands ¶
Package commands contains all of the cli commands
Index ¶
- func AddSubCommands(cmdName, version, commit string, rootCmd *cobra.Command) *cobra.Command
- func Deploy() *cobra.Command
- func GetConfig() *cobra.Command
- func GetMeshConfig(meshClient *mesh.Client) (*mesh.MeshConfig, error)
- func GetServices() *cobra.Command
- func Help() *cobra.Command
- func Inject() *cobra.Command
- func NewStatusCmd() *cobra.Command
- func NewVersionCmd(cmdName, version, commit string) *cobra.Command
- func ReadYes(msg string) error
- func Remove() *cobra.Command
- func Root(cmdName string) *cobra.Command
- func Setup(cmdName, version, commit string) *cobra.Command
- func Support(version string) *cobra.Command
- func TabWriterWithOpts() *tabwriter.Writer
- func Top() *cobra.Command
- func Upgrade(version string) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSubCommands ¶
AddSubCommands adds all subcommands to the root command.
func GetMeshConfig ¶
func GetMeshConfig(meshClient *mesh.Client) (*mesh.MeshConfig, error)
GetMeshConfig attempts to get the mesh config from mesh-api.
func GetServices ¶
GetServices prints the service list fetched from the Control Plane.
func Help ¶
Help defines the output of nginx-meshctl help and nginx-meshctl [command] help. Overrides the default help command in order to keep consistent naming. The Run function is taken straight from the default help command in cobra: https://github.com/spf13/cobra/blob/b04b5bfc50cbb6c036d2115ed55ea1bccdaf82a9/command.go#L1015
func NewStatusCmd ¶
NewStatusCmd creates a status command to connect to the mesh-api.
func NewVersionCmd ¶
NewVersionCmd create a new cobra to handle version.
func Support ¶
Support builds a support package containing information about the mesh. Building this package is best-effort. Many errors will be logged but not cause a crash because we want to continue on and attempt to get as much information as possible.
func TabWriterWithOpts ¶
TabWriterWithOpts returns a tabwriter. * This call, with these numbers were found across the codebase * and so were centralized here so that modifications to text attributes * could be made from one place.
Types ¶
This section is empty.