cli

package
v0.9.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStateValue = errors.New("query: invalid state value")
)

Functions

func AddDeploymentFilterFlags

func AddDeploymentFilterFlags(flags *pflag.FlagSet)

AddDeploymentFilterFlags add flags to filter for deployment list

func AddDeploymentIDFlags

func AddDeploymentIDFlags(flags *pflag.FlagSet)

AddDeploymentIDFlags add flags for deployment

func AddGroupIDFlags

func AddGroupIDFlags(flags *pflag.FlagSet)

AddGroupIDFlags add flags for Group

func DepFiltersFromFlags

func DepFiltersFromFlags(flags *pflag.FlagSet) (types.DeploymentFilters, error)

DepFiltersFromFlags returns DeploymentFilters with given flags and error if occurred

func DeploymentIDFromFlags

func DeploymentIDFromFlags(flags *pflag.FlagSet, defaultOwner string) (types.DeploymentID, error)

DeploymentIDFromFlags returns DeploymentID with given flags, owner and error if occurred

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the query commands for the deployment module

func GetTxCmd

func GetTxCmd(key string) *cobra.Command

GetTxCmd returns the transaction commands for this module

func GroupIDFromFlags

func GroupIDFromFlags(flags *pflag.FlagSet) (types.GroupID, error)

GroupIDFromFlags returns GroupID with given flags and error if occurred

func MarkReqDeploymentIDFlags

func MarkReqDeploymentIDFlags(cmd *cobra.Command)

MarkReqDeploymentIDFlags marks flags required for deployment

func MarkReqGroupIDFlags

func MarkReqGroupIDFlags(cmd *cobra.Command)

MarkReqGroupIDFlags marks flags required for group

func QueryDeploymentExec added in v0.9.1

func QueryDeploymentExec(clientCtx client.Context, id types.DeploymentID, extraArgs ...string) (sdktest.BufferWriter, error)

QueryDeploymentExec is used for testing deployment query

func QueryDeploymentsExec added in v0.9.1

func QueryDeploymentsExec(clientCtx client.Context, extraArgs ...string) (sdktest.BufferWriter, error)

QueryDeploymentsExec is used for testing deployments query

func QueryGroupExec added in v0.9.1

func QueryGroupExec(clientCtx client.Context, id types.GroupID, extraArgs ...string) (sdktest.BufferWriter, error)

QueryGroupExec is used for testing group query

func TxCloseDeploymentExec added in v0.9.1

func TxCloseDeploymentExec(clientCtx client.Context, from fmt.Stringer, extraArgs ...string) (sdktest.BufferWriter, error)

TxCloseDeploymentExec is used for testing close deployment tx requires --dseq, --fees

func TxCloseGroupExec added in v0.9.1

func TxCloseGroupExec(clientCtx client.Context, groupID types.GroupID, from fmt.Stringer, extraArgs ...string) (sdktest.BufferWriter, error)

TxCloseGroupExec is used for testing close group tx

func TxCreateDeploymentExec added in v0.9.1

func TxCreateDeploymentExec(clientCtx client.Context, from fmt.Stringer, filePath string, extraArgs ...string) (sdktest.BufferWriter, error)

TxCreateDeploymentExec is used for testing create deployment tx

func TxUpdateDeploymentExec added in v0.9.1

func TxUpdateDeploymentExec(clientCtx client.Context, from fmt.Stringer, filePath string, extraArgs ...string) (sdktest.BufferWriter, error)

TxUpdateDeploymentExec is used for testing update deployment tx

Types

This section is empty.

Jump to

Keyboard shortcuts

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