Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenGenericRenameCmd ¶
func GenGenericRenameCmd(kind string, rename RenameFunc, printRes PrintResFunc) *subcommands.Command
GenGenericRenameCmd creates a simple rename command for shivas. It takes a name of the resource to rename, renameFunc to call the rpc and printRes to print the result of the operation.
Types ¶
type PrintResFunc ¶
PrintResFunc template to be used to call the print results API.
type RenameFunc ¶
RenameFunc template to be used to call the rename API RPC.
Click to show internal directories.
Click to hide internal directories.