Documentation ¶
Index ¶
- Constants
- Variables
- func BuildCmdAnnotateKey(w io.Writer, handler AnnotateKeyHandler, rf *RootFlags) *cobra.Command
- func BuildCmdCheckSoftwareCompatibility(w io.Writer, handler CheckSoftwareCompatibilityHandler, rf *RootFlags) *cobra.Command
- func BuildCmdCheckTransaction(w io.Writer, handler CheckTransactionHandler, rf *RootFlags) *cobra.Command
- func BuildCmdCreateWallet(w io.Writer, handler CreateWalletHandler, rf *RootFlags) *cobra.Command
- func BuildCmdDeleteAPIToken(w io.Writer, preCheck APITokenPreCheck, handler DeleteAPITokenHandler, ...) *cobra.Command
- func BuildCmdDeleteNetwork(w io.Writer, handler RemoveNetworkHandler, rf *RootFlags) *cobra.Command
- func BuildCmdDeleteWallet(w io.Writer, handler RemoveWalletHandler, rf *RootFlags) *cobra.Command
- func BuildCmdDescribeAPIToken(w io.Writer, preCheck APITokenPreCheck, handler DescribeAPITokenHandler, ...) *cobra.Command
- func BuildCmdDescribeKey(w io.Writer, handler DescribeKeyHandler, rf *RootFlags) *cobra.Command
- func BuildCmdDescribeNetwork(w io.Writer, handler DescribeNetworkHandler, rf *RootFlags) *cobra.Command
- func BuildCmdDescribePermissions(w io.Writer, handler DescribePermissionsHandler, rf *RootFlags) *cobra.Command
- func BuildCmdDescribeServiceConfig(w io.Writer, handler DescribeServiceConfigHandler, rf *RootFlags) *cobra.Command
- func BuildCmdDescribeWallet(w io.Writer, handler DescribeWalletHandler, rf *RootFlags) *cobra.Command
- func BuildCmdDisclaimer(w io.Writer, handler DisclaimerHandler, rf *RootFlags) *cobra.Command
- func BuildCmdGenerateAPIToken(w io.Writer, preCheck APITokenPreCheck, handler GenerateAPITokenHandler, ...) *cobra.Command
- func BuildCmdGenerateKey(w io.Writer, handler GenerateKeyHandler, rf *RootFlags) *cobra.Command
- func BuildCmdGetSoftwareVersion(w io.Writer, handler GetSoftwareVersionHandler, rf *RootFlags) *cobra.Command
- func BuildCmdImportNetwork(w io.Writer, handler ImportNetworkFromSourceHandler, rf *RootFlags) *cobra.Command
- func BuildCmdImportWallet(w io.Writer, handler ImportWalletHandler, rf *RootFlags) *cobra.Command
- func BuildCmdInit(w io.Writer, handler InitHandler, rf *RootFlags) *cobra.Command
- func BuildCmdInitAPIToken(w io.Writer, handler APITokenInitHandler, rf *RootFlags) *cobra.Command
- func BuildCmdIsolateKey(w io.Writer, handler IsolateKeyHandler, rf *RootFlags) *cobra.Command
- func BuildCmdListAPITokens(w io.Writer, preCheck APITokenPreCheck, handler ListAPITokensHandler, ...) *cobra.Command
- func BuildCmdListEndpoints(w io.Writer, handler ListEndpointsHandler, rf *RootFlags) *cobra.Command
- func BuildCmdListKeys(w io.Writer, handler ListKeysHandler, rf *RootFlags) *cobra.Command
- func BuildCmdListNetworks(w io.Writer, handler ListNetworksHandler, rf *RootFlags) *cobra.Command
- func BuildCmdListPermissions(w io.Writer, handler ListPermissionsHandler, rf *RootFlags) *cobra.Command
- func BuildCmdListSessions(w io.Writer, handler ListSessionsHandler, rf *RootFlags) *cobra.Command
- func BuildCmdListWallets(w io.Writer, handler ListWalletsHandler, rf *RootFlags) *cobra.Command
- func BuildCmdLocateNetworks(w io.Writer, handler LocateNetworksHandler, rf *RootFlags) *cobra.Command
- func BuildCmdLocateServiceConfigs(w io.Writer, handler LocateServiceConfigsHandler, rf *RootFlags) *cobra.Command
- func BuildCmdLocateWallets(w io.Writer, handler LocateWalletsHandler, rf *RootFlags) *cobra.Command
- func BuildCmdPurgePermissions(w io.Writer, handler PurgePermissionsHandler, rf *RootFlags) *cobra.Command
- func BuildCmdRawTransactionSend(w io.Writer, handler SendRawTransactionHandler, rf *RootFlags) *cobra.Command
- func BuildCmdRenameNetwork(w io.Writer, handler RenameNetworkHandler, rf *RootFlags) *cobra.Command
- func BuildCmdRenameWallet(w io.Writer, handler RenameWalletHandler, rf *RootFlags) *cobra.Command
- func BuildCmdResetServiceConfig(w io.Writer, handler ResetServiceConfigHandler, rf *RootFlags) *cobra.Command
- func BuildCmdRevokePermissions(w io.Writer, handler RevokePermissionsHandler, rf *RootFlags) *cobra.Command
- func BuildCmdRoot(w io.Writer) *cobra.Command
- func BuildCmdRotateKey(w io.Writer, handler RotateKeyHandler, rf *RootFlags) *cobra.Command
- func BuildCmdRunService(w io.Writer, handler RunServiceHandler, rf *RootFlags) *cobra.Command
- func BuildCmdSendTransaction(w io.Writer, handler SendTransactionHandler, rf *RootFlags) *cobra.Command
- func BuildCmdSignMessage(w io.Writer, handler SignMessageHandler, rf *RootFlags) *cobra.Command
- func BuildCmdSignTransaction(w io.Writer, handler SignTransactionHandler, rf *RootFlags) *cobra.Command
- func BuildCmdTaintKey(w io.Writer, handler TaintKeyHandler, rf *RootFlags) *cobra.Command
- func BuildCmdUntaintKey(w io.Writer, handler UntaintKeyHandler, rf *RootFlags) *cobra.Command
- func BuildCmdUpdatePassphrase(w io.Writer, handler UpdatePassphraseHandler, rf *RootFlags) *cobra.Command
- func BuildCmdVerifyMessage(w io.Writer, handler VerifyMessageHandler, rf *RootFlags) *cobra.Command
- func Disclaimer(home string, f *DisclaimerFlags) error
- func Execute(w *Writer)
- func Init(home string, f *InitFlags) error
- func InitAPIToken(home string, f *InitAPITokenFlags) (bool, error)
- func ListEndpoints(w io.Writer, rf *RootFlags, f *ListEndpointsFlags) error
- func NewCmdAPIToken(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdAnnotateKey(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdCheckTransaction(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdCreateWallet(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdDeleteAPIToken(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdDeleteNetwork(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdDeleteWallet(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdDescribeAPIToken(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdDescribeKey(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdDescribeNetwork(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdDescribePermissions(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdDescribeServiceConfig(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdDescribeWallet(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdDisclaimer(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdGenerateAPIToken(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdGenerateKey(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdImportNetwork(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdImportWallet(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdInit(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdInitAPIToken(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdIsolateKey(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdKey(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdListAPITokens(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdListEndpoints(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdListKeys(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdListNetworks(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdListPermissions(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdListSessions(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdListWallets(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdLocateNetworks(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdLocateServiceConfig(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdLocateWallets(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdMessage(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdNetwork(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdPassphrase(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdPermissions(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdPurgePermissions(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdRawTransaction(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdRawTransactionSend(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdRenameNetwork(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdRenameWallet(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdResetServiceConfig(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdRevokePermissions(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdRoot(w io.Writer) *cobra.Command
- func NewCmdRotateKey(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdRunService(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdSendTransaction(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdService(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdServiceConfig(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdSession(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdShell(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdShellCompletion(w io.Writer) *cobra.Command
- func NewCmdSignMessage(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdSignTransaction(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdSoftware(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdSoftwareCompatibility(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdSoftwareVersion(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdTaintKey(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdTransaction(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdUntaintKey(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdUpdatePassphrase(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdVerifyMessage(w io.Writer, rf *RootFlags) *cobra.Command
- func PrintAPITokenInitResponse(w io.Writer, init bool)
- func PrintAnnotateKeyResponse(w io.Writer, f AnnotateKeyFlags, res api.AdminAnnotateKeyResult)
- func PrintCheckSoftwareIncompatibilityResponse(w io.Writer, resp *wversion.CheckSoftwareCompatibilityResponse)
- func PrintCheckTransactionResponse(w io.Writer, res api.AdminCheckTransactionResult, rf *RootFlags)
- func PrintCreateWalletResponse(w io.Writer, resp createWalletResult)
- func PrintDeleteNetworkResponse(w io.Writer, networkName string)
- func PrintDeleteWalletResponse(w io.Writer, walletName string)
- func PrintDescribeKeyResponse(w io.Writer, resp api.AdminDescribeKeyResult)
- func PrintDescribeNetworkResponse(w io.Writer, resp api.AdminNetwork)
- func PrintDescribeNetworkWithValueNotSet(str *printer.FormattedString, value string)
- func PrintDescribeNetworkWithValuesNotSet(str *printer.FormattedString, hosts []string)
- func PrintDescribePermissionsResult(w io.Writer, resp api.AdminDescribePermissionsResult)
- func PrintDescribeServiceConfigResponse(w io.Writer, cfg *service.Config)
- func PrintDescribeWalletResponse(w io.Writer, resp api.AdminDescribeWalletResult)
- func PrintGenerateKeyResponse(w io.Writer, req api.AdminGenerateKeyParams, resp api.AdminGenerateKeyResult)
- func PrintGetSoftwareVersionResponse(w io.Writer, resp *wversion.GetSoftwareVersionResponse)
- func PrintImportNetworkResponse(w io.Writer, resp adminImportNetworkResult)
- func PrintImportWalletResponse(w io.Writer, resp importWalletResult)
- func PrintInitResponse(w io.Writer)
- func PrintIsolateKeyResponse(w io.Writer, resp isolateKeyResult)
- func PrintListKeysResponse(w io.Writer, resp api.AdminListKeysResult)
- func PrintListNetworksResult(w io.Writer, resp api.AdminListNetworksResult)
- func PrintListPermissionsResponse(w io.Writer, resp api.AdminListPermissionsResult)
- func PrintListWalletsResult(w io.Writer, resp api.AdminListWalletsResult)
- func PrintLocateNetworksResponse(w io.Writer, resp *LocateNetworksResponse)
- func PrintLocateServiceConfigsResponse(w io.Writer, resp *LocateServiceConfigsResponse)
- func PrintLocateWalletsResponse(w io.Writer, resp *LocateWalletsResponse)
- func PrintPurgePermissionsResponse(w io.Writer, wallet string)
- func PrintRenameNetworkResponse(w io.Writer, f *RenameNetworkFlags)
- func PrintRenameWalletResponse(w io.Writer, f *RenameWalletFlags)
- func PrintResetServiceConfigResponse(w io.Writer, cfg *service.Config)
- func PrintRevokePermissionsResponse(w io.Writer, req api.AdminRevokePermissionsParams)
- func PrintRotateKeyResponse(w io.Writer, req api.AdminRotateKeyResult)
- func PrintSendTransactionResponse(w io.Writer, res api.AdminSendTransactionResult, rf *RootFlags)
- func PrintSignMessageResponse(w io.Writer, req api.AdminSignMessageResult)
- func PrintSignTransactionResponse(w io.Writer, req api.AdminSignTransactionResult, rf *RootFlags)
- func PrintTXSendResponse(w io.Writer, res api.AdminSendRawTransactionResult)
- func PrintTaintKeyResponse(w io.Writer)
- func PrintUntaintKeyResponse(w io.Writer)
- func PrintUpdatePassphraseResponse(w io.Writer)
- func PrintVerifyMessageResponse(w io.Writer, isValid bool)
- func RunService(w io.Writer, rf *RootFlags, f *RunServiceFlags) error
- type APITokenInitHandler
- type APITokenPreCheck
- type AnnotateKeyFlags
- type AnnotateKeyHandler
- type CheckSoftwareCompatibilityHandler
- type CheckTransactionFlags
- type CheckTransactionHandler
- type CreateWalletFlags
- type CreateWalletHandler
- type DeleteAPITokenFlags
- type DeleteAPITokenHandler
- type DeleteNetworkFlags
- type DeleteWalletFlags
- type DescribeAPITokenFlags
- type DescribeAPITokenHandler
- type DescribeKeyFlags
- type DescribeKeyHandler
- type DescribeNetworkFlags
- type DescribeNetworkHandler
- type DescribePermissionsFlags
- type DescribePermissionsHandler
- type DescribeServiceConfigHandler
- type DescribeWalletFlags
- type DescribeWalletHandler
- type DisclaimerFlags
- type DisclaimerHandler
- type Error
- type GenerateAPITokenFlags
- type GenerateAPITokenHandler
- type GenerateKeyFlags
- type GenerateKeyHandler
- type GetSoftwareVersionHandler
- type ImportNetworkFlags
- type ImportNetworkFromSourceHandler
- type ImportWalletFlags
- type ImportWalletHandler
- type InitAPITokenFlags
- type InitFlags
- type InitHandler
- type IsolateKeyFlags
- type IsolateKeyHandler
- type ListAPITokensFlags
- type ListAPITokensHandler
- type ListEndpointsFlags
- type ListEndpointsHandler
- type ListKeysFlags
- type ListKeysHandler
- type ListNetworksHandler
- type ListPermissionsFlags
- type ListPermissionsHandler
- type ListSessionsHandler
- type ListWalletsHandler
- type LocateNetworksHandler
- type LocateNetworksResponse
- type LocateServiceConfigsHandler
- type LocateServiceConfigsResponse
- type LocateWalletsHandler
- type LocateWalletsResponse
- type PurgePermissionsFlags
- type PurgePermissionsHandler
- type RemoveNetworkHandler
- type RemoveWalletHandler
- type RenameNetworkFlags
- type RenameNetworkHandler
- type RenameWalletFlags
- type RenameWalletHandler
- type ResetServiceConfigFlags
- type ResetServiceConfigHandler
- type RevokePermissionsFlags
- type RevokePermissionsHandler
- type RootFlags
- type RotateKeyFlags
- type RotateKeyHandler
- type RunServiceFlags
- type RunServiceHandler
- type SendRawTransactionFlags
- type SendRawTransactionHandler
- type SendTransactionFlags
- type SendTransactionHandler
- type ServicePreCheck
- type SignMessageFlags
- type SignMessageHandler
- type SignTransactionFlags
- type SignTransactionHandler
- type TaintKeyFlags
- type TaintKeyHandler
- type UntaintKeyFlags
- type UntaintKeyHandler
- type UpdatePassphraseFlags
- type UpdatePassphraseHandler
- type VerifyMessageFlags
- type VerifyMessageHandler
- type Writer
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 BuildCmdCheckSoftwareCompatibility ¶ added in v0.64.0
func BuildCmdCheckTransaction ¶ added in v0.69.0
func BuildCmdCreateWallet ¶
func BuildCmdDeleteAPIToken ¶ added in v0.63.0
func BuildCmdDeleteAPIToken(w io.Writer, preCheck APITokenPreCheck, handler DeleteAPITokenHandler, rf *RootFlags) *cobra.Command
func BuildCmdDeleteNetwork ¶
func BuildCmdDeleteWallet ¶
func BuildCmdDescribeAPIToken ¶ added in v0.63.0
func BuildCmdDescribeAPIToken(w io.Writer, preCheck APITokenPreCheck, handler DescribeAPITokenHandler, rf *RootFlags) *cobra.Command
func BuildCmdDescribeKey ¶
func BuildCmdDescribeNetwork ¶
func BuildCmdDescribeServiceConfig ¶ added in v0.69.0
func BuildCmdDescribeWallet ¶ added in v0.66.0
func BuildCmdDisclaimer ¶ added in v0.72.0
func BuildCmdGenerateAPIToken ¶ added in v0.63.0
func BuildCmdGenerateAPIToken(w io.Writer, preCheck APITokenPreCheck, handler GenerateAPITokenHandler, rf *RootFlags) *cobra.Command
func BuildCmdGenerateKey ¶
func BuildCmdGetSoftwareVersion ¶ added in v0.64.0
func BuildCmdImportNetwork ¶
func BuildCmdImportWallet ¶
func BuildCmdInit ¶
func BuildCmdInitAPIToken ¶ added in v0.63.0
func BuildCmdIsolateKey ¶
func BuildCmdListAPITokens ¶ added in v0.63.0
func BuildCmdListAPITokens(w io.Writer, preCheck APITokenPreCheck, handler ListAPITokensHandler, rf *RootFlags) *cobra.Command
func BuildCmdListEndpoints ¶
func BuildCmdListKeys ¶
func BuildCmdListNetworks ¶
func BuildCmdListPermissions ¶
func BuildCmdListSessions ¶ added in v0.72.0
func BuildCmdListWallets ¶
func BuildCmdLocateNetworks ¶
func BuildCmdLocateServiceConfigs ¶ added in v0.69.0
func BuildCmdLocateWallets ¶ added in v0.72.0
func BuildCmdRawTransactionSend ¶ added in v0.63.0
func BuildCmdRenameNetwork ¶ added in v0.69.0
func BuildCmdRenameWallet ¶ added in v0.60.0
func BuildCmdResetServiceConfig ¶ added in v0.69.0
func BuildCmdRotateKey ¶
func BuildCmdRunService ¶
func BuildCmdSendTransaction ¶ added in v0.63.0
func BuildCmdSignMessage ¶
func BuildCmdSignTransaction ¶ added in v0.63.0
func BuildCmdTaintKey ¶
func BuildCmdUntaintKey ¶
func BuildCmdUpdatePassphrase ¶ added in v0.60.0
func BuildCmdVerifyMessage ¶
func Disclaimer ¶ added in v0.72.0
func Disclaimer(home string, f *DisclaimerFlags) 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 NewCmdCheckTransaction ¶ added in v0.69.0
func NewCmdDeleteAPIToken ¶ added in v0.63.0
func NewCmdDescribeAPIToken ¶ added in v0.63.0
func NewCmdDescribeServiceConfig ¶ added in v0.69.0
func NewCmdDescribeWallet ¶ added in v0.66.0
func NewCmdDisclaimer ¶ added in v0.72.0
func NewCmdGenerateAPIToken ¶ added in v0.63.0
func NewCmdInitAPIToken ¶ added in v0.63.0
func NewCmdListAPITokens ¶ added in v0.63.0
func NewCmdListSessions ¶ added in v0.72.0
func NewCmdLocateServiceConfig ¶ added in v0.69.0
func NewCmdLocateWallets ¶ added in v0.72.0
func NewCmdPassphrase ¶ added in v0.60.0
func NewCmdPurgePermissions ¶
func NewCmdRawTransaction ¶ added in v0.63.0
func NewCmdRawTransactionSend ¶ added in v0.63.0
func NewCmdRenameNetwork ¶ added in v0.69.0
func NewCmdRenameWallet ¶ added in v0.60.0
func NewCmdResetServiceConfig ¶ added in v0.69.0
func NewCmdRevokePermissions ¶
func NewCmdSendTransaction ¶ added in v0.63.0
func NewCmdServiceConfig ¶ added in v0.69.0
func NewCmdShellCompletion ¶ added in v0.64.0
func NewCmdSignTransaction ¶ added in v0.63.0
func NewCmdSoftware ¶ added in v0.64.0
func NewCmdSoftwareCompatibility ¶ added in v0.64.0
func NewCmdSoftwareVersion ¶ added in v0.64.0
func NewCmdTransaction ¶ added in v0.63.0
func NewCmdUpdatePassphrase ¶ added in v0.60.0
func PrintAPITokenInitResponse ¶ added in v0.63.0
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 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 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 PrintInitResponse ¶
func PrintIsolateKeyResponse ¶
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 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 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 PrintUntaintKeyResponse ¶
func PrintUpdatePassphraseResponse ¶ added in v0.60.0
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 AnnotateKeyFlags ¶
type AnnotateKeyFlags struct { Wallet string PubKey string PassphraseFile string Clear bool RawMetadata []string }
func (*AnnotateKeyFlags) Validate ¶
func (f *AnnotateKeyFlags) Validate() (api.AdminAnnotateKeyParams, string, error)
type AnnotateKeyHandler ¶
type AnnotateKeyHandler func(api.AdminAnnotateKeyParams, string) (api.AdminAnnotateKeyResult, error)
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
func (f *CheckTransactionFlags) Validate() (api.AdminCheckTransactionParams, string, error)
type CheckTransactionHandler ¶ added in v0.69.0
type CheckTransactionHandler func(api.AdminCheckTransactionParams, string, *zap.Logger) (api.AdminCheckTransactionResult, error)
type CreateWalletFlags ¶
func (*CreateWalletFlags) Validate ¶
func (f *CreateWalletFlags) Validate() (api.AdminCreateWalletParams, error)
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 ¶
func (*DeleteNetworkFlags) Validate ¶
func (f *DeleteNetworkFlags) Validate() (api.AdminRemoveNetworkParams, error)
type DeleteWalletFlags ¶
func (*DeleteWalletFlags) Validate ¶
func (f *DeleteWalletFlags) Validate() (api.AdminRemoveWalletParams, error)
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 ¶
func (*DescribeKeyFlags) Validate ¶
func (f *DescribeKeyFlags) Validate() (api.AdminDescribeKeyParams, string, error)
type DescribeKeyHandler ¶
type DescribeKeyHandler func(api.AdminDescribeKeyParams, string) (api.AdminDescribeKeyResult, error)
type DescribeNetworkFlags ¶
type DescribeNetworkFlags struct {
Network string
}
func (*DescribeNetworkFlags) Validate ¶
func (f *DescribeNetworkFlags) Validate() (api.AdminDescribeNetworkParams, error)
type DescribeNetworkHandler ¶
type DescribeNetworkHandler func(api.AdminDescribeNetworkParams) (api.AdminNetwork, error)
type DescribePermissionsFlags ¶
func (*DescribePermissionsFlags) Validate ¶
func (f *DescribePermissionsFlags) Validate() (api.AdminDescribePermissionsParams, string, error)
type DescribePermissionsHandler ¶
type DescribePermissionsHandler func(api.AdminDescribePermissionsParams, string) (api.AdminDescribePermissionsResult, error)
type DescribeServiceConfigHandler ¶ added in v0.69.0
type DescribeWalletFlags ¶ added in v0.66.0
func (*DescribeWalletFlags) Validate ¶ added in v0.66.0
func (f *DescribeWalletFlags) Validate() (api.AdminDescribeWalletParams, string, error)
type DescribeWalletHandler ¶ added in v0.66.0
type DescribeWalletHandler func(api.AdminDescribeWalletParams, string) (api.AdminDescribeWalletResult, error)
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 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
func (f *GenerateAPITokenFlags) Validate() (connections.GenerateAPITokenParams, error)
type GenerateAPITokenHandler ¶ added in v0.63.0
type GenerateAPITokenHandler func(f GenerateAPITokenFlags, params connections.GenerateAPITokenParams) (connections.Token, error)
type GenerateKeyFlags ¶
func (*GenerateKeyFlags) Validate ¶
func (f *GenerateKeyFlags) Validate() (api.AdminGenerateKeyParams, string, error)
type GenerateKeyHandler ¶
type GenerateKeyHandler func(api.AdminGenerateKeyParams, string) (api.AdminGenerateKeyResult, error)
type GetSoftwareVersionHandler ¶ added in v0.64.0
type GetSoftwareVersionHandler func() *wversion.GetSoftwareVersionResponse
type ImportNetworkFlags ¶
func (*ImportNetworkFlags) Validate ¶
func (f *ImportNetworkFlags) Validate() (api.AdminImportNetworkParams, error)
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 ¶
func (f *ImportWalletFlags) Validate() (api.AdminImportWalletParams, error)
type ImportWalletHandler ¶
type ImportWalletHandler func(api.AdminImportWalletParams) (importWalletResult, error)
type InitAPITokenFlags ¶ added in v0.63.0
type InitHandler ¶
type IsolateKeyFlags ¶
type IsolateKeyFlags struct { Wallet string PubKey string PassphraseFile string IsolatedWalletPassphraseFile string }
func (*IsolateKeyFlags) Validate ¶
func (f *IsolateKeyFlags) Validate() (api.AdminIsolateKeyParams, string, error)
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 ¶
func (*ListKeysFlags) Validate ¶
func (f *ListKeysFlags) Validate() (api.AdminListKeysParams, string, error)
type ListKeysHandler ¶
type ListKeysHandler func(api.AdminListKeysParams, string) (api.AdminListKeysResult, error)
type ListNetworksHandler ¶
type ListNetworksHandler func() (api.AdminListNetworksResult, error)
type ListPermissionsFlags ¶
func (*ListPermissionsFlags) Validate ¶
func (f *ListPermissionsFlags) Validate() (api.AdminListPermissionsParams, string, error)
type ListPermissionsHandler ¶
type ListPermissionsHandler func(api.AdminListPermissionsParams, string) (api.AdminListPermissionsResult, error)
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 ¶
func (*PurgePermissionsFlags) Validate ¶
func (f *PurgePermissionsFlags) Validate() (api.AdminPurgePermissionsParams, string, error)
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
func (*RenameNetworkFlags) Validate ¶ added in v0.69.0
func (f *RenameNetworkFlags) Validate() (api.AdminRenameNetworkParams, error)
type RenameNetworkHandler ¶ added in v0.69.0
type RenameNetworkHandler func(api.AdminRenameNetworkParams) error
type RenameWalletFlags ¶ added in v0.60.0
func (*RenameWalletFlags) Validate ¶ added in v0.60.0
func (f *RenameWalletFlags) Validate() (api.AdminRenameWalletParams, error)
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 RevokePermissionsFlags ¶
type RevokePermissionsFlags struct { Wallet string Hostname string Force bool PassphraseFile string }
func (*RevokePermissionsFlags) Validate ¶
func (f *RevokePermissionsFlags) Validate() (api.AdminRevokePermissionsParams, string, error)
type RevokePermissionsHandler ¶
type RevokePermissionsHandler func(api.AdminRevokePermissionsParams, string) error
type RotateKeyFlags ¶
type RotateKeyFlags struct { Wallet string PassphraseFile string FromPublicKey string ToPublicKey string ChainID string SubmissionBlockHeight uint64 EnactmentBlockHeight uint64 }
func (*RotateKeyFlags) Validate ¶
func (f *RotateKeyFlags) Validate() (api.AdminRotateKeyParams, string, error)
type RotateKeyHandler ¶
type RotateKeyHandler func(api.AdminRotateKeyParams, string) (api.AdminRotateKeyResult, error)
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
func (f *SendRawTransactionFlags) Validate() (api.AdminSendRawTransactionParams, error)
type SendRawTransactionHandler ¶ added in v0.63.0
type SendRawTransactionHandler func(api.AdminSendRawTransactionParams, *zap.Logger) (api.AdminSendRawTransactionResult, error)
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
func (f *SendTransactionFlags) Validate() (api.AdminSendTransactionParams, string, error)
type SendTransactionHandler ¶ added in v0.63.0
type SendTransactionHandler func(api.AdminSendTransactionParams, string, *zap.Logger) (api.AdminSendTransactionResult, error)
type ServicePreCheck ¶ added in v0.63.0
type SignMessageFlags ¶
func (*SignMessageFlags) Validate ¶
func (f *SignMessageFlags) Validate() (api.AdminSignMessageParams, string, error)
type SignMessageHandler ¶
type SignMessageHandler func(api.AdminSignMessageParams, string) (api.AdminSignMessageResult, error)
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
func (f *SignTransactionFlags) Validate() (api.AdminSignTransactionParams, string, error)
type SignTransactionHandler ¶ added in v0.63.0
type SignTransactionHandler func(api.AdminSignTransactionParams, string, *zap.Logger) (api.AdminSignTransactionResult, error)
type TaintKeyFlags ¶
func (*TaintKeyFlags) Validate ¶
func (f *TaintKeyFlags) Validate() (api.AdminTaintKeyParams, string, error)
type TaintKeyHandler ¶
type TaintKeyHandler func(api.AdminTaintKeyParams, string) error
type UntaintKeyFlags ¶
func (*UntaintKeyFlags) Validate ¶
func (f *UntaintKeyFlags) Validate() (api.AdminUntaintKeyParams, string, error)
type UntaintKeyHandler ¶
type UntaintKeyHandler func(api.AdminUntaintKeyParams, string) error
type UpdatePassphraseFlags ¶ added in v0.60.0
func (*UpdatePassphraseFlags) Validate ¶ added in v0.60.0
func (f *UpdatePassphraseFlags) Validate() (api.AdminUpdatePassphraseParams, string, error)
type UpdatePassphraseHandler ¶ added in v0.60.0
type UpdatePassphraseHandler func(api.AdminUpdatePassphraseParams, string) error
type VerifyMessageFlags ¶
func (*VerifyMessageFlags) Validate ¶
func (f *VerifyMessageFlags) Validate() (api.AdminVerifyMessageParams, error)
type VerifyMessageHandler ¶
type VerifyMessageHandler func(api.AdminVerifyMessageParams) (api.AdminVerifyMessageResult, error)
Source Files ¶
- api_token.go
- api_token_delete.go
- api_token_describe.go
- api_token_generate.go
- api_token_init.go
- api_token_list.go
- cmd.go
- disclaimer.go
- init.go
- key.go
- key_annotate.go
- key_describe.go
- key_generate.go
- key_isolate.go
- key_list.go
- key_rotate.go
- key_taint.go
- key_untaint.go
- message.go
- message_sign.go
- message_verify.go
- network.go
- network_delete.go
- network_describe.go
- network_import.go
- network_list.go
- network_locate.go
- network_rename.go
- passphrase.go
- passphrase_update.go
- permissions.go
- permissions_describe.go
- permissions_list.go
- permissions_purge.go
- permissions_revoke.go
- raw_transaction.go
- raw_transaction_send.go
- root.go
- service.go
- service_config.go
- service_config_describe.go
- service_config_locate.go
- service_config_reset.go
- service_endpoints.go
- service_run.go
- session.go
- session_list.go
- shell.go
- shell_completion.go
- software.go
- software_compatibility.go
- software_version.go
- transaction.go
- transaction_check.go
- transaction_send.go
- transaction_sign.go
- wallet_create.go
- wallet_delete.go
- wallet_describe.go
- wallet_import.go
- wallet_list.go
- wallet_locate.go
- wallet_rename.go
Click to show internal directories.
Click to hide internal directories.