cmd

package
v0.78.0-preview.4 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: AGPL-3.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const MaxConsentRequests = 100

Variables

View Source
var (
	ErrEnableAutomaticConsentFlagIsRequiredWithoutTTY = errors.New("--automatic-consent flag is required without TTY")
	ErrMsysUnsupported                                = errors.New("this command is not supported on msys, please use a standard windows terminal")
)
View Source
var (
	ErrForceFlagIsRequiredWithoutTTY = errors.New("--force is required without TTY")
)
View Source
var (
	ErrTokenStoreNotInitialized = errors.New("the token store is not initialized, call the `api-token init` command first")
)

Functions

func BuildCmdAnnotateKey

func BuildCmdAnnotateKey(w io.Writer, handler AnnotateKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdCheckSoftwareCompatibility added in v0.64.0

func BuildCmdCheckSoftwareCompatibility(w io.Writer, handler CheckSoftwareCompatibilityHandler, rf *RootFlags) *cobra.Command

func BuildCmdCheckTransaction added in v0.69.0

func BuildCmdCheckTransaction(w io.Writer, handler CheckTransactionHandler, rf *RootFlags) *cobra.Command

func BuildCmdCreateWallet

func BuildCmdCreateWallet(w io.Writer, handler CreateWalletHandler, rf *RootFlags) *cobra.Command

func BuildCmdDeleteAPIToken added in v0.63.0

func BuildCmdDeleteAPIToken(w io.Writer, preCheck APITokenPreCheck, handler DeleteAPITokenHandler, rf *RootFlags) *cobra.Command

func BuildCmdDeleteNetwork

func BuildCmdDeleteNetwork(w io.Writer, handler RemoveNetworkHandler, rf *RootFlags) *cobra.Command

func BuildCmdDeleteWallet

func BuildCmdDeleteWallet(w io.Writer, handler RemoveWalletHandler, rf *RootFlags) *cobra.Command

func BuildCmdDescribeAPIToken added in v0.63.0

func BuildCmdDescribeAPIToken(w io.Writer, preCheck APITokenPreCheck, handler DescribeAPITokenHandler, rf *RootFlags) *cobra.Command

func BuildCmdDescribeKey

func BuildCmdDescribeKey(w io.Writer, handler DescribeKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdDescribeNetwork

func BuildCmdDescribeNetwork(w io.Writer, handler DescribeNetworkHandler, rf *RootFlags) *cobra.Command

func BuildCmdDescribePermissions

func BuildCmdDescribePermissions(w io.Writer, handler DescribePermissionsHandler, rf *RootFlags) *cobra.Command

func BuildCmdDescribeServiceConfig added in v0.69.0

func BuildCmdDescribeServiceConfig(w io.Writer, handler DescribeServiceConfigHandler, rf *RootFlags) *cobra.Command

func BuildCmdDescribeWallet added in v0.66.0

func BuildCmdDescribeWallet(w io.Writer, handler DescribeWalletHandler, rf *RootFlags) *cobra.Command

func BuildCmdDisclaimer added in v0.72.0

func BuildCmdDisclaimer(w io.Writer, handler DisclaimerHandler, rf *RootFlags) *cobra.Command

func BuildCmdGenerateAPIToken added in v0.63.0

func BuildCmdGenerateAPIToken(w io.Writer, preCheck APITokenPreCheck, handler GenerateAPITokenHandler, rf *RootFlags) *cobra.Command

func BuildCmdGenerateKey

func BuildCmdGenerateKey(w io.Writer, handler GenerateKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdGetSoftwareVersion added in v0.64.0

func BuildCmdGetSoftwareVersion(w io.Writer, handler GetSoftwareVersionHandler, rf *RootFlags) *cobra.Command

func BuildCmdImportNetwork

func BuildCmdImportNetwork(w io.Writer, handler ImportNetworkFromSourceHandler, rf *RootFlags) *cobra.Command

func BuildCmdImportWallet

func BuildCmdImportWallet(w io.Writer, handler ImportWalletHandler, rf *RootFlags) *cobra.Command

func BuildCmdInit

func BuildCmdInit(w io.Writer, handler InitHandler, rf *RootFlags) *cobra.Command

func BuildCmdInitAPIToken added in v0.63.0

func BuildCmdInitAPIToken(w io.Writer, handler APITokenInitHandler, rf *RootFlags) *cobra.Command

func BuildCmdIsolateKey

func BuildCmdIsolateKey(w io.Writer, handler IsolateKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdListAPITokens added in v0.63.0

func BuildCmdListAPITokens(w io.Writer, preCheck APITokenPreCheck, handler ListAPITokensHandler, rf *RootFlags) *cobra.Command

func BuildCmdListEndpoints

func BuildCmdListEndpoints(w io.Writer, handler ListEndpointsHandler, rf *RootFlags) *cobra.Command

func BuildCmdListKeys

func BuildCmdListKeys(w io.Writer, handler ListKeysHandler, rf *RootFlags) *cobra.Command

func BuildCmdListNetworks

func BuildCmdListNetworks(w io.Writer, handler ListNetworksHandler, rf *RootFlags) *cobra.Command

func BuildCmdListPermissions

func BuildCmdListPermissions(w io.Writer, handler ListPermissionsHandler, rf *RootFlags) *cobra.Command

func BuildCmdListSessions added in v0.72.0

func BuildCmdListSessions(w io.Writer, handler ListSessionsHandler, rf *RootFlags) *cobra.Command

func BuildCmdListWallets

func BuildCmdListWallets(w io.Writer, handler ListWalletsHandler, rf *RootFlags) *cobra.Command

func BuildCmdLocateNetworks

func BuildCmdLocateNetworks(w io.Writer, handler LocateNetworksHandler, rf *RootFlags) *cobra.Command

func BuildCmdLocateServiceConfigs added in v0.69.0

func BuildCmdLocateServiceConfigs(w io.Writer, handler LocateServiceConfigsHandler, rf *RootFlags) *cobra.Command

func BuildCmdLocateWallets added in v0.72.0

func BuildCmdLocateWallets(w io.Writer, handler LocateWalletsHandler, rf *RootFlags) *cobra.Command

func BuildCmdPurgePermissions

func BuildCmdPurgePermissions(w io.Writer, handler PurgePermissionsHandler, rf *RootFlags) *cobra.Command

func BuildCmdRawTransactionSend added in v0.63.0

func BuildCmdRawTransactionSend(w io.Writer, handler SendRawTransactionHandler, rf *RootFlags) *cobra.Command

func BuildCmdRenameNetwork added in v0.69.0

func BuildCmdRenameNetwork(w io.Writer, handler RenameNetworkHandler, rf *RootFlags) *cobra.Command

func BuildCmdRenameWallet added in v0.60.0

func BuildCmdRenameWallet(w io.Writer, handler RenameWalletHandler, rf *RootFlags) *cobra.Command

func BuildCmdResetServiceConfig added in v0.69.0

func BuildCmdResetServiceConfig(w io.Writer, handler ResetServiceConfigHandler, rf *RootFlags) *cobra.Command

func BuildCmdRevokePermissions

func BuildCmdRevokePermissions(w io.Writer, handler RevokePermissionsHandler, rf *RootFlags) *cobra.Command

func BuildCmdRoot

func BuildCmdRoot(w io.Writer) *cobra.Command

func BuildCmdRotateKey

func BuildCmdRotateKey(w io.Writer, handler RotateKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdRunService

func BuildCmdRunService(w io.Writer, handler RunServiceHandler, rf *RootFlags) *cobra.Command

func BuildCmdSendTransaction added in v0.63.0

func BuildCmdSendTransaction(w io.Writer, handler SendTransactionHandler, rf *RootFlags) *cobra.Command

func BuildCmdSignMessage

func BuildCmdSignMessage(w io.Writer, handler SignMessageHandler, rf *RootFlags) *cobra.Command

func BuildCmdSignTransaction added in v0.63.0

func BuildCmdSignTransaction(w io.Writer, handler SignTransactionHandler, rf *RootFlags) *cobra.Command

func BuildCmdTaintKey

func BuildCmdTaintKey(w io.Writer, handler TaintKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdUntaintKey

func BuildCmdUntaintKey(w io.Writer, handler UntaintKeyHandler, rf *RootFlags) *cobra.Command

func BuildCmdUpdatePassphrase added in v0.60.0

func BuildCmdUpdatePassphrase(w io.Writer, handler UpdatePassphraseHandler, rf *RootFlags) *cobra.Command

func BuildCmdVerifyMessage

func BuildCmdVerifyMessage(w io.Writer, handler VerifyMessageHandler, rf *RootFlags) *cobra.Command

func Disclaimer added in v0.72.0

func Disclaimer(home string, f *DisclaimerFlags) error

func Execute

func Execute(w *Writer)

func Init

func Init(home string, f *InitFlags) error

func InitAPIToken added in v0.63.0

func InitAPIToken(home string, f *InitAPITokenFlags) (bool, error)

func ListEndpoints

func ListEndpoints(w io.Writer, rf *RootFlags, f *ListEndpointsFlags) error

func NewCmdAPIToken added in v0.63.0

func NewCmdAPIToken(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdAnnotateKey

func NewCmdAnnotateKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdCheckTransaction added in v0.69.0

func NewCmdCheckTransaction(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdCreateWallet

func NewCmdCreateWallet(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDeleteAPIToken added in v0.63.0

func NewCmdDeleteAPIToken(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDeleteNetwork

func NewCmdDeleteNetwork(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDeleteWallet

func NewCmdDeleteWallet(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDescribeAPIToken added in v0.63.0

func NewCmdDescribeAPIToken(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDescribeKey

func NewCmdDescribeKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDescribeNetwork

func NewCmdDescribeNetwork(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDescribePermissions

func NewCmdDescribePermissions(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDescribeServiceConfig added in v0.69.0

func NewCmdDescribeServiceConfig(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDescribeWallet added in v0.66.0

func NewCmdDescribeWallet(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdDisclaimer added in v0.72.0

func NewCmdDisclaimer(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdGenerateAPIToken added in v0.63.0

func NewCmdGenerateAPIToken(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdGenerateKey

func NewCmdGenerateKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdImportNetwork

func NewCmdImportNetwork(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdImportWallet

func NewCmdImportWallet(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdInit

func NewCmdInit(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdInitAPIToken added in v0.63.0

func NewCmdInitAPIToken(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdIsolateKey

func NewCmdIsolateKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdKey

func NewCmdKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdListAPITokens added in v0.63.0

func NewCmdListAPITokens(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdListEndpoints

func NewCmdListEndpoints(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdListKeys

func NewCmdListKeys(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdListNetworks

func NewCmdListNetworks(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdListPermissions

func NewCmdListPermissions(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdListSessions added in v0.72.0

func NewCmdListSessions(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdListWallets

func NewCmdListWallets(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdLocateNetworks

func NewCmdLocateNetworks(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdLocateServiceConfig added in v0.69.0

func NewCmdLocateServiceConfig(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdLocateWallets added in v0.72.0

func NewCmdLocateWallets(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdMessage

func NewCmdMessage(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdNetwork

func NewCmdNetwork(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdPassphrase added in v0.60.0

func NewCmdPassphrase(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdPermissions

func NewCmdPermissions(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdPurgePermissions

func NewCmdPurgePermissions(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdRawTransaction added in v0.63.0

func NewCmdRawTransaction(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdRawTransactionSend added in v0.63.0

func NewCmdRawTransactionSend(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdRenameNetwork added in v0.69.0

func NewCmdRenameNetwork(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdRenameWallet added in v0.60.0

func NewCmdRenameWallet(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdResetServiceConfig added in v0.69.0

func NewCmdResetServiceConfig(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdRevokePermissions

func NewCmdRevokePermissions(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdRoot

func NewCmdRoot(w io.Writer) *cobra.Command

func NewCmdRotateKey

func NewCmdRotateKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdRunService

func NewCmdRunService(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdSendTransaction added in v0.63.0

func NewCmdSendTransaction(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdService

func NewCmdService(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdServiceConfig added in v0.69.0

func NewCmdServiceConfig(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdSession added in v0.72.0

func NewCmdSession(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdShell added in v0.64.0

func NewCmdShell(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdShellCompletion added in v0.64.0

func NewCmdShellCompletion(w io.Writer) *cobra.Command

func NewCmdSignMessage

func NewCmdSignMessage(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdSignTransaction added in v0.63.0

func NewCmdSignTransaction(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdSoftware added in v0.64.0

func NewCmdSoftware(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdSoftwareCompatibility added in v0.64.0

func NewCmdSoftwareCompatibility(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdSoftwareVersion added in v0.64.0

func NewCmdSoftwareVersion(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdTaintKey

func NewCmdTaintKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdTransaction added in v0.63.0

func NewCmdTransaction(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdUntaintKey

func NewCmdUntaintKey(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdUpdatePassphrase added in v0.60.0

func NewCmdUpdatePassphrase(w io.Writer, rf *RootFlags) *cobra.Command

func NewCmdVerifyMessage

func NewCmdVerifyMessage(w io.Writer, rf *RootFlags) *cobra.Command

func PrintAPITokenInitResponse added in v0.63.0

func PrintAPITokenInitResponse(w io.Writer, init bool)

func PrintAnnotateKeyResponse

func PrintAnnotateKeyResponse(w io.Writer, f AnnotateKeyFlags, res api.AdminAnnotateKeyResult)

func PrintCheckSoftwareIncompatibilityResponse added in v0.64.0

func PrintCheckSoftwareIncompatibilityResponse(w io.Writer, resp *wversion.CheckSoftwareCompatibilityResponse)

func PrintCheckTransactionResponse added in v0.69.0

func PrintCheckTransactionResponse(w io.Writer, res api.AdminCheckTransactionResult, rf *RootFlags)

func PrintCreateWalletResponse

func PrintCreateWalletResponse(w io.Writer, resp createWalletResult)

func PrintDeleteNetworkResponse

func PrintDeleteNetworkResponse(w io.Writer, networkName string)

func PrintDeleteWalletResponse

func PrintDeleteWalletResponse(w io.Writer, walletName string)

func PrintDescribeKeyResponse

func PrintDescribeKeyResponse(w io.Writer, resp api.AdminDescribeKeyResult)

func PrintDescribeNetworkResponse

func PrintDescribeNetworkResponse(w io.Writer, resp api.AdminNetwork)

func PrintDescribeNetworkWithValueNotSet added in v0.68.0

func PrintDescribeNetworkWithValueNotSet(str *printer.FormattedString, value string)

func PrintDescribeNetworkWithValuesNotSet added in v0.68.0

func PrintDescribeNetworkWithValuesNotSet(str *printer.FormattedString, hosts []string)

func PrintDescribePermissionsResult added in v0.55.0

func PrintDescribePermissionsResult(w io.Writer, resp api.AdminDescribePermissionsResult)

func PrintDescribeServiceConfigResponse added in v0.69.0

func PrintDescribeServiceConfigResponse(w io.Writer, cfg *service.Config)

func PrintDescribeWalletResponse added in v0.65.0

func PrintDescribeWalletResponse(w io.Writer, resp api.AdminDescribeWalletResult)

func PrintGenerateKeyResponse

func PrintGenerateKeyResponse(w io.Writer, req api.AdminGenerateKeyParams, resp api.AdminGenerateKeyResult)

func PrintGetSoftwareVersionResponse added in v0.64.0

func PrintGetSoftwareVersionResponse(w io.Writer, resp *wversion.GetSoftwareVersionResponse)

func PrintImportNetworkResponse

func PrintImportNetworkResponse(w io.Writer, resp adminImportNetworkResult)

func PrintImportWalletResponse

func PrintImportWalletResponse(w io.Writer, resp importWalletResult)

func PrintInitResponse

func PrintInitResponse(w io.Writer)

func PrintIsolateKeyResponse

func PrintIsolateKeyResponse(w io.Writer, resp isolateKeyResult)

func PrintListKeysResponse

func PrintListKeysResponse(w io.Writer, resp api.AdminListKeysResult)

func PrintListNetworksResult added in v0.55.0

func PrintListNetworksResult(w io.Writer, resp api.AdminListNetworksResult)

func PrintListPermissionsResponse

func PrintListPermissionsResponse(w io.Writer, resp api.AdminListPermissionsResult)

func PrintListWalletsResult added in v0.55.0

func PrintListWalletsResult(w io.Writer, resp api.AdminListWalletsResult)

func PrintLocateNetworksResponse

func PrintLocateNetworksResponse(w io.Writer, resp *LocateNetworksResponse)

func PrintLocateServiceConfigsResponse added in v0.69.0

func PrintLocateServiceConfigsResponse(w io.Writer, resp *LocateServiceConfigsResponse)

func PrintLocateWalletsResponse added in v0.72.0

func PrintLocateWalletsResponse(w io.Writer, resp *LocateWalletsResponse)

func PrintPurgePermissionsResponse

func PrintPurgePermissionsResponse(w io.Writer, wallet string)

func PrintRenameNetworkResponse added in v0.69.0

func PrintRenameNetworkResponse(w io.Writer, f *RenameNetworkFlags)

func PrintRenameWalletResponse added in v0.60.0

func PrintRenameWalletResponse(w io.Writer, f *RenameWalletFlags)

func PrintResetServiceConfigResponse added in v0.69.0

func PrintResetServiceConfigResponse(w io.Writer, cfg *service.Config)

func PrintRevokePermissionsResponse

func PrintRevokePermissionsResponse(w io.Writer, req api.AdminRevokePermissionsParams)

func PrintRotateKeyResponse

func PrintRotateKeyResponse(w io.Writer, req api.AdminRotateKeyResult)

func PrintSendTransactionResponse added in v0.63.0

func PrintSendTransactionResponse(w io.Writer, res api.AdminSendTransactionResult, rf *RootFlags)

func PrintSignMessageResponse

func PrintSignMessageResponse(w io.Writer, req api.AdminSignMessageResult)

func PrintSignTransactionResponse added in v0.63.0

func PrintSignTransactionResponse(w io.Writer, req api.AdminSignTransactionResult, rf *RootFlags)

func PrintTXSendResponse added in v0.56.0

func PrintTXSendResponse(w io.Writer, res api.AdminSendRawTransactionResult)

func PrintTaintKeyResponse

func PrintTaintKeyResponse(w io.Writer)

func PrintUntaintKeyResponse

func PrintUntaintKeyResponse(w io.Writer)

func PrintUpdatePassphraseResponse added in v0.60.0

func PrintUpdatePassphraseResponse(w io.Writer)

func PrintVerifyMessageResponse

func PrintVerifyMessageResponse(w io.Writer, isValid bool)

func RunService

func RunService(w io.Writer, rf *RootFlags, f *RunServiceFlags) error

Types

type APITokenInitHandler added in v0.63.0

type APITokenInitHandler func(home string, f *InitAPITokenFlags) (bool, error)

type APITokenPreCheck added in v0.72.0

type APITokenPreCheck func(rf *RootFlags) error

type AnnotateKeyFlags

type AnnotateKeyFlags struct {
	Wallet         string
	PubKey         string
	PassphraseFile string
	Clear          bool
	RawMetadata    []string
}

func (*AnnotateKeyFlags) Validate

type CheckSoftwareCompatibilityHandler added in v0.64.0

type CheckSoftwareCompatibilityHandler func() (*wversion.CheckSoftwareCompatibilityResponse, error)

type CheckTransactionFlags added in v0.69.0

type CheckTransactionFlags struct {
	Network                string
	NodeAddress            string
	Wallet                 string
	PubKey                 string
	PassphraseFile         string
	Retries                uint64
	LogLevel               string
	RawTransaction         string
	NoVersionCheck         bool
	MaximumRequestDuration time.Duration
}

func (*CheckTransactionFlags) Validate added in v0.69.0

type CheckTransactionHandler added in v0.69.0

type CreateWalletFlags

type CreateWalletFlags struct {
	Wallet         string
	PassphraseFile string
}

func (*CreateWalletFlags) Validate

type CreateWalletHandler

type CreateWalletHandler func(api.AdminCreateWalletParams) (createWalletResult, error)

type DeleteAPITokenFlags added in v0.63.0

type DeleteAPITokenFlags struct {
	Token          string
	PassphraseFile string
	Force          bool
	// contains filtered or unexported fields
}

func (*DeleteAPITokenFlags) Validate added in v0.63.0

func (f *DeleteAPITokenFlags) Validate() error

type DeleteAPITokenHandler added in v0.63.0

type DeleteAPITokenHandler func(f DeleteAPITokenFlags) error

type DeleteNetworkFlags

type DeleteNetworkFlags struct {
	Network string
	Force   bool
}

func (*DeleteNetworkFlags) Validate

type DeleteWalletFlags

type DeleteWalletFlags struct {
	Wallet string
	Force  bool
}

func (*DeleteWalletFlags) Validate

type DescribeAPITokenFlags added in v0.63.0

type DescribeAPITokenFlags struct {
	PassphraseFile string
	Token          string
	// contains filtered or unexported fields
}

func (*DescribeAPITokenFlags) Validate added in v0.63.0

func (f *DescribeAPITokenFlags) Validate() error

type DescribeAPITokenHandler added in v0.63.0

type DescribeAPITokenHandler func(f DescribeAPITokenFlags) (connections.TokenDescription, error)

type DescribeKeyFlags

type DescribeKeyFlags struct {
	Wallet         string
	PassphraseFile string
	PublicKey      string
}

func (*DescribeKeyFlags) Validate

type DescribeNetworkFlags

type DescribeNetworkFlags struct {
	Network string
}

func (*DescribeNetworkFlags) Validate

type DescribeNetworkHandler

type DescribeNetworkHandler func(api.AdminDescribeNetworkParams) (api.AdminNetwork, error)

type DescribePermissionsFlags

type DescribePermissionsFlags struct {
	Wallet         string
	Hostname       string
	PassphraseFile string
}

func (*DescribePermissionsFlags) Validate

type DescribeServiceConfigHandler added in v0.69.0

type DescribeServiceConfigHandler func() (*service.Config, error)

type DescribeWalletFlags added in v0.66.0

type DescribeWalletFlags struct {
	Wallet         string
	PassphraseFile string
}

func (*DescribeWalletFlags) Validate added in v0.66.0

type DescribeWalletHandler added in v0.66.0

type DisclaimerFlags added in v0.72.0

type DisclaimerFlags struct{}

type DisclaimerHandler added in v0.72.0

type DisclaimerHandler func(home string, f *DisclaimerFlags) error

type Error

type Error struct {
	Err string `json:"error"`
}

type GenerateAPITokenFlags added in v0.63.0

type GenerateAPITokenFlags struct {
	Description          string
	PassphraseFile       string
	WalletName           string
	WalletPassphraseFile string
	ExpiresIn            time.Duration
	// contains filtered or unexported fields
}

func (*GenerateAPITokenFlags) Validate added in v0.63.0

type GenerateAPITokenHandler added in v0.63.0

type GenerateAPITokenHandler func(f GenerateAPITokenFlags, params connections.GenerateAPITokenParams) (connections.Token, error)

type GenerateKeyFlags

type GenerateKeyFlags struct {
	Wallet         string
	PassphraseFile string
	RawMetadata    []string
}

func (*GenerateKeyFlags) Validate

type GetSoftwareVersionHandler added in v0.64.0

type GetSoftwareVersionHandler func() *wversion.GetSoftwareVersionResponse

type ImportNetworkFlags

type ImportNetworkFlags struct {
	FilePath string
	URL      string
	Name     string
	Force    bool
}

func (*ImportNetworkFlags) Validate

type ImportNetworkFromSourceHandler

type ImportNetworkFromSourceHandler func(api.AdminImportNetworkParams) (adminImportNetworkResult, error)

type ImportWalletFlags

type ImportWalletFlags struct {
	Wallet             string
	PassphraseFile     string
	RecoveryPhraseFile string
	Version            uint32
}

func (*ImportWalletFlags) Validate

type ImportWalletHandler

type ImportWalletHandler func(api.AdminImportWalletParams) (importWalletResult, error)

type InitAPITokenFlags added in v0.63.0

type InitAPITokenFlags struct {
	PassphraseFile string
	Force          bool
}

type InitFlags

type InitFlags struct {
	Force                bool
	TokensPassphraseFile string
}

type InitHandler

type InitHandler func(home string, f *InitFlags) error

type IsolateKeyFlags

type IsolateKeyFlags struct {
	Wallet                       string
	PubKey                       string
	PassphraseFile               string
	IsolatedWalletPassphraseFile string
}

func (*IsolateKeyFlags) Validate

type IsolateKeyHandler

type IsolateKeyHandler func(api.AdminIsolateKeyParams, string) (isolateKeyResult, error)

type ListAPITokensFlags added in v0.63.0

type ListAPITokensFlags struct {
	PassphraseFile string
	// contains filtered or unexported fields
}

func (*ListAPITokensFlags) Validate added in v0.63.0

func (f *ListAPITokensFlags) Validate() error

type ListAPITokensHandler added in v0.63.0

type ListAPITokensHandler func(f ListAPITokensFlags) (connections.ListAPITokensResult, error)

type ListEndpointsFlags

type ListEndpointsFlags struct {
	Network string
}

func (*ListEndpointsFlags) Validate

func (f *ListEndpointsFlags) Validate() error

type ListEndpointsHandler

type ListEndpointsHandler func(io.Writer, *RootFlags, *ListEndpointsFlags) error

type ListKeysFlags

type ListKeysFlags struct {
	Wallet         string
	PassphraseFile string
}

func (*ListKeysFlags) Validate

func (f *ListKeysFlags) Validate() (api.AdminListKeysParams, string, error)

type ListNetworksHandler

type ListNetworksHandler func() (api.AdminListNetworksResult, error)

type ListPermissionsFlags

type ListPermissionsFlags struct {
	Wallet         string
	PassphraseFile string
}

func (*ListPermissionsFlags) Validate

type ListSessionsHandler added in v0.72.0

type ListSessionsHandler func() ([]connections.Session, error)

type ListWalletsHandler

type ListWalletsHandler func() (api.AdminListWalletsResult, error)

type LocateNetworksHandler

type LocateNetworksHandler func() (*LocateNetworksResponse, error)

type LocateNetworksResponse

type LocateNetworksResponse struct {
	Path string `json:"path"`
}

type LocateServiceConfigsHandler added in v0.69.0

type LocateServiceConfigsHandler func() (*LocateServiceConfigsResponse, error)

type LocateServiceConfigsResponse added in v0.69.0

type LocateServiceConfigsResponse struct {
	Path string `json:"path"`
}

type LocateWalletsHandler added in v0.72.0

type LocateWalletsHandler func() (*LocateWalletsResponse, error)

type LocateWalletsResponse added in v0.72.0

type LocateWalletsResponse struct {
	Path string `json:"path"`
}

type PurgePermissionsFlags

type PurgePermissionsFlags struct {
	Wallet         string
	PassphraseFile string
	Force          bool
}

func (*PurgePermissionsFlags) Validate

type PurgePermissionsHandler

type PurgePermissionsHandler func(api.AdminPurgePermissionsParams, string) error

type RemoveNetworkHandler added in v0.55.0

type RemoveNetworkHandler func(api.AdminRemoveNetworkParams) error

type RemoveWalletHandler added in v0.55.0

type RemoveWalletHandler func(api.AdminRemoveWalletParams) error

type RenameNetworkFlags added in v0.69.0

type RenameNetworkFlags struct {
	Network string
	NewName string
}

func (*RenameNetworkFlags) Validate added in v0.69.0

type RenameNetworkHandler added in v0.69.0

type RenameNetworkHandler func(api.AdminRenameNetworkParams) error

type RenameWalletFlags added in v0.60.0

type RenameWalletFlags struct {
	Wallet  string
	NewName string
}

func (*RenameWalletFlags) Validate added in v0.60.0

type RenameWalletHandler added in v0.60.0

type RenameWalletHandler func(api.AdminRenameWalletParams) error

type ResetServiceConfigFlags added in v0.69.0

type ResetServiceConfigFlags struct {
	Force bool
}

func (*ResetServiceConfigFlags) Validate added in v0.69.0

func (f *ResetServiceConfigFlags) Validate() error

type ResetServiceConfigHandler added in v0.69.0

type ResetServiceConfigHandler func() (*service.Config, error)

type RevokePermissionsFlags

type RevokePermissionsFlags struct {
	Wallet         string
	Hostname       string
	Force          bool
	PassphraseFile string
}

func (*RevokePermissionsFlags) Validate

type RevokePermissionsHandler

type RevokePermissionsHandler func(api.AdminRevokePermissionsParams, string) error

type RootFlags

type RootFlags struct {
	Output string
	Home   string
}

func (*RootFlags) Validate

func (f *RootFlags) Validate() error

type RotateKeyFlags

type RotateKeyFlags struct {
	Wallet                string
	PassphraseFile        string
	FromPublicKey         string
	ToPublicKey           string
	ChainID               string
	SubmissionBlockHeight uint64
	EnactmentBlockHeight  uint64
}

func (*RotateKeyFlags) Validate

type RunServiceFlags

type RunServiceFlags struct {
	Network                string
	EnableAutomaticConsent bool
	LoadTokens             bool
	TokensPassphraseFile   string
	NoVersionCheck         bool
	// contains filtered or unexported fields
}

func (*RunServiceFlags) Validate

func (f *RunServiceFlags) Validate(rf *RootFlags) error

type RunServiceHandler

type RunServiceHandler func(io.Writer, *RootFlags, *RunServiceFlags) error

type SendRawTransactionFlags added in v0.63.0

type SendRawTransactionFlags struct {
	Network                string
	NodeAddress            string
	Retries                uint64
	LogLevel               string
	RawTx                  string
	NoVersionCheck         bool
	MaximumRequestDuration time.Duration
}

func (*SendRawTransactionFlags) Validate added in v0.63.0

type SendRawTransactionHandler added in v0.63.0

type SendTransactionFlags added in v0.63.0

type SendTransactionFlags struct {
	Network                string
	NodeAddress            string
	Wallet                 string
	PubKey                 string
	PassphraseFile         string
	Retries                uint64
	LogLevel               string
	RawTransaction         string
	NoVersionCheck         bool
	MaximumRequestDuration time.Duration
}

func (*SendTransactionFlags) Validate added in v0.63.0

type SendTransactionHandler added in v0.63.0

type ServicePreCheck added in v0.63.0

type ServicePreCheck func(rf *RootFlags) error

type SignMessageFlags

type SignMessageFlags struct {
	Wallet         string
	PubKey         string
	Message        string
	PassphraseFile string
}

func (*SignMessageFlags) Validate

type SignTransactionFlags added in v0.63.0

type SignTransactionFlags struct {
	Wallet                 string
	PubKey                 string
	PassphraseFile         string
	RawTransaction         string
	TxBlockHeight          uint64
	ChainID                string
	TxBlockHash            string
	PowDifficulty          uint32
	PowHashFunction        string
	Network                string
	Retries                uint64
	MaximumRequestDuration time.Duration
}

func (*SignTransactionFlags) Validate added in v0.63.0

type SignTransactionHandler added in v0.63.0

type TaintKeyFlags

type TaintKeyFlags struct {
	Wallet         string
	PublicKey      string
	PassphraseFile string
}

func (*TaintKeyFlags) Validate

func (f *TaintKeyFlags) Validate() (api.AdminTaintKeyParams, string, error)

type TaintKeyHandler

type TaintKeyHandler func(api.AdminTaintKeyParams, string) error

type UntaintKeyFlags

type UntaintKeyFlags struct {
	Wallet         string
	PublicKey      string
	PassphraseFile string
}

func (*UntaintKeyFlags) Validate

type UntaintKeyHandler

type UntaintKeyHandler func(api.AdminUntaintKeyParams, string) error

type UpdatePassphraseFlags added in v0.60.0

type UpdatePassphraseFlags struct {
	Wallet            string
	PassphraseFile    string
	NewPassphraseFile string
}

func (*UpdatePassphraseFlags) Validate added in v0.60.0

type UpdatePassphraseHandler added in v0.60.0

type UpdatePassphraseHandler func(api.AdminUpdatePassphraseParams, string) error

type VerifyMessageFlags

type VerifyMessageFlags struct {
	Signature string
	Message   string
	PubKey    string
}

func (*VerifyMessageFlags) Validate

type Writer

type Writer struct {
	Out io.Writer
	Err io.Writer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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