rename

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

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

type PrintResFunc func(proto.Message)

PrintResFunc template to be used to call the print results API.

type RenameFunc

type RenameFunc func(context.Context, ufsAPI.FleetClient, string, string) (interface{}, error)

RenameFunc template to be used to call the rename API RPC.

Jump to

Keyboard shortcuts

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