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 BuildCmdCreateWallet(w io.Writer, handler CreateWalletHandler, rf *RootFlags) *cobra.Command
- func BuildCmdDeleteAPIToken(w io.Writer, preCheck APITokePreCheck, 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 APITokePreCheck, 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 BuildCmdDescribeWallet(w io.Writer, handler DescribeWalletHandler, rf *RootFlags) *cobra.Command
- func BuildCmdGenerateAPIToken(w io.Writer, preCheck APITokePreCheck, 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 APITokePreCheck, 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 BuildCmdListWallets(w io.Writer, handler ListWalletsHandler, rf *RootFlags) *cobra.Command
- func BuildCmdLocateNetworks(w io.Writer, handler LocateNetworksHandler, 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 BuildCmdRenameWallet(w io.Writer, handler RenameWalletHandler, 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 Execute(w *Writer)
- func Init(home string, f *InitFlags) error
- func InitAPIToken(home string, f *InitAPITokenFlags) 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 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 NewCmdDescribeWallet(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 NewCmdListWallets(w io.Writer, rf *RootFlags) *cobra.Command
- func NewCmdLocateNetworks(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 NewCmdRenameWallet(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 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)
- func PrintAnnotateKeyResponse(w io.Writer, f AnnotateKeyFlags, res api.AdminAnnotateKeyResult)
- func PrintCheckSoftwareIncompatibilityResponse(w io.Writer, resp *wversion.CheckSoftwareCompatibilityResponse)
- func PrintCreateWalletResponse(w io.Writer, resp api.AdminCreateWalletResult)
- 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.AdminDescribeNetworkResult)
- func PrintDescribePermissionsResult(w io.Writer, resp api.AdminDescribePermissionsResult)
- 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 api.AdminImportNetworkResult)
- func PrintImportWalletResponse(w io.Writer, resp api.AdminImportWalletResult)
- func PrintInitResponse(w io.Writer)
- func PrintIsolateKeyResponse(w io.Writer, resp api.AdminIsolateKeyResult)
- 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 PrintPurgePermissionsResponse(w io.Writer, wallet string)
- func PrintRenameWalletResponse(w io.Writer, f *RenameWalletFlags)
- 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 APITokePreCheck
- type APITokenInitHandler
- type AnnotateKeyFlags
- type AnnotateKeyHandler
- type CheckSoftwareCompatibilityHandler
- 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 DescribeWalletFlags
- type DescribeWalletHandler
- 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 ListWalletsHandler
- type LocateNetworksHandler
- type LocateNetworksResponse
- type PurgePermissionsFlags
- type PurgePermissionsHandler
- type RemoveNetworkHandler
- type RemoveWalletHandler
- type RenameWalletFlags
- type RenameWalletHandler
- 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 (
DefaultForwarderRetryCount = 5
)
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 BuildCmdCreateWallet ¶
func BuildCmdDeleteAPIToken ¶ added in v0.63.0
func BuildCmdDeleteAPIToken(w io.Writer, preCheck APITokePreCheck, handler DeleteAPITokenHandler, rf *RootFlags) *cobra.Command
func BuildCmdDeleteNetwork ¶
func BuildCmdDeleteWallet ¶
func BuildCmdDescribeAPIToken ¶ added in v0.63.0
func BuildCmdDescribeAPIToken(w io.Writer, preCheck APITokePreCheck, handler DescribeAPITokenHandler, rf *RootFlags) *cobra.Command
func BuildCmdDescribeKey ¶
func BuildCmdDescribeNetwork ¶
func BuildCmdDescribeWallet ¶ added in v0.66.0
func BuildCmdGenerateAPIToken ¶ added in v0.63.0
func BuildCmdGenerateAPIToken(w io.Writer, preCheck APITokePreCheck, 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 APITokePreCheck, handler ListAPITokensHandler, rf *RootFlags) *cobra.Command
func BuildCmdListEndpoints ¶
func BuildCmdListKeys ¶
func BuildCmdListNetworks ¶
func BuildCmdListPermissions ¶
func BuildCmdListWallets ¶
func BuildCmdLocateNetworks ¶
func BuildCmdRawTransactionSend ¶ added in v0.63.0
func BuildCmdRenameWallet ¶ added in v0.60.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 InitAPIToken ¶ added in v0.63.0
func InitAPIToken(home string, f *InitAPITokenFlags) error
func ListEndpoints ¶
func ListEndpoints(w io.Writer, rf *RootFlags, f *ListEndpointsFlags) error
func NewCmdAPIToken ¶ added in v0.63.0
func NewCmdDeleteAPIToken ¶ added in v0.63.0
func NewCmdDescribeAPIToken ¶ added in v0.63.0
func NewCmdDescribeWallet ¶ added in v0.66.0
func NewCmdGenerateAPIToken ¶ added in v0.63.0
func NewCmdInitAPIToken ¶ added in v0.63.0
func NewCmdListAPITokens ¶ added in v0.63.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 NewCmdRenameWallet ¶ added in v0.60.0
func NewCmdRevokePermissions ¶
func NewCmdSendTransaction ¶ added in v0.63.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 PrintCreateWalletResponse ¶
func PrintCreateWalletResponse(w io.Writer, resp api.AdminCreateWalletResult)
func PrintDescribeKeyResponse ¶
func PrintDescribeKeyResponse(w io.Writer, resp api.AdminDescribeKeyResult)
func PrintDescribeNetworkResponse ¶
func PrintDescribeNetworkResponse(w io.Writer, resp api.AdminDescribeNetworkResult)
func PrintDescribePermissionsResult ¶ added in v0.55.0
func PrintDescribePermissionsResult(w io.Writer, resp api.AdminDescribePermissionsResult)
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 api.AdminImportNetworkResult)
func PrintImportWalletResponse ¶
func PrintImportWalletResponse(w io.Writer, resp api.AdminImportWalletResult)
func PrintInitResponse ¶
func PrintIsolateKeyResponse ¶
func PrintIsolateKeyResponse(w io.Writer, resp api.AdminIsolateKeyResult)
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 PrintRenameWalletResponse ¶ added in v0.60.0
func PrintRenameWalletResponse(w io.Writer, f *RenameWalletFlags)
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 APITokePreCheck ¶ added in v0.63.0
type APITokenInitHandler ¶ added in v0.63.0
type APITokenInitHandler func(home string, f *InitAPITokenFlags) error
type AnnotateKeyFlags ¶
type AnnotateKeyFlags struct { Wallet string PubKey string PassphraseFile string Clear bool RawMetadata []string }
func (*AnnotateKeyFlags) Validate ¶
func (f *AnnotateKeyFlags) Validate() (api.AdminAnnotateKeyParams, error)
type AnnotateKeyHandler ¶
type AnnotateKeyHandler func(api.AdminAnnotateKeyParams) (api.AdminAnnotateKeyResult, error)
type CheckSoftwareCompatibilityHandler ¶ added in v0.64.0
type CheckSoftwareCompatibilityHandler func() (*wversion.CheckSoftwareCompatibilityResponse, error)
type CreateWalletFlags ¶
func (*CreateWalletFlags) Validate ¶
func (f *CreateWalletFlags) Validate() (api.AdminCreateWalletParams, error)
type CreateWalletHandler ¶
type CreateWalletHandler func(api.AdminCreateWalletParams) (api.AdminCreateWalletResult, 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, error)
type DescribeKeyHandler ¶
type DescribeKeyHandler func(api.AdminDescribeKeyParams) (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.AdminDescribeNetworkResult, error)
type DescribePermissionsFlags ¶
func (*DescribePermissionsFlags) Validate ¶
func (f *DescribePermissionsFlags) Validate() (api.AdminDescribePermissionsParams, error)
type DescribePermissionsHandler ¶
type DescribePermissionsHandler func(api.AdminDescribePermissionsParams) (api.AdminDescribePermissionsResult, error)
type DescribeWalletFlags ¶ added in v0.66.0
func (*DescribeWalletFlags) Validate ¶ added in v0.66.0
func (f *DescribeWalletFlags) Validate() (api.AdminDescribeWalletParams, error)
type DescribeWalletHandler ¶ added in v0.66.0
type DescribeWalletHandler func(params api.AdminDescribeWalletParams) (api.AdminDescribeWalletResult, 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, error)
type GenerateKeyHandler ¶
type GenerateKeyHandler func(params api.AdminGenerateKeyParams) (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) (api.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) (api.AdminImportWalletResult, 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, error)
type IsolateKeyHandler ¶
type IsolateKeyHandler func(api.AdminIsolateKeyParams) (api.AdminIsolateKeyResult, 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, error)
type ListKeysHandler ¶
type ListKeysHandler func(api.AdminListKeysParams) (api.AdminListKeysResult, error)
type ListNetworksHandler ¶
type ListNetworksHandler func() (api.AdminListNetworksResult, error)
type ListPermissionsFlags ¶
func (*ListPermissionsFlags) Validate ¶
func (f *ListPermissionsFlags) Validate() (api.AdminListPermissionsParams, error)
type ListPermissionsHandler ¶
type ListPermissionsHandler func(api.AdminListPermissionsParams) (api.AdminListPermissionsResult, 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 PurgePermissionsFlags ¶
func (*PurgePermissionsFlags) Validate ¶
func (f *PurgePermissionsFlags) Validate() (api.AdminPurgePermissionsParams, error)
type PurgePermissionsHandler ¶
type PurgePermissionsHandler func(api.AdminPurgePermissionsParams) 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 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 RevokePermissionsFlags ¶
type RevokePermissionsFlags struct { Wallet string Hostname string Force bool PassphraseFile string }
func (*RevokePermissionsFlags) Validate ¶
func (f *RevokePermissionsFlags) Validate() (api.AdminRevokePermissionsParams, error)
type RevokePermissionsHandler ¶
type RevokePermissionsHandler func(api.AdminRevokePermissionsParams) 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, error)
type RotateKeyHandler ¶
type RotateKeyHandler func(api.AdminRotateKeyParams) (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 }
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 }
func (*SendTransactionFlags) Validate ¶ added in v0.63.0
func (f *SendTransactionFlags) Validate() (api.AdminSendTransactionParams, error)
type SendTransactionHandler ¶ added in v0.63.0
type SendTransactionHandler func(api.AdminSendTransactionParams, *zap.Logger) (api.AdminSendTransactionResult, error)
type ServicePreCheck ¶ added in v0.63.0
type SignMessageFlags ¶
func (*SignMessageFlags) Validate ¶
func (f *SignMessageFlags) Validate() (api.AdminSignMessageParams, error)
type SignMessageHandler ¶
type SignMessageHandler func(api.AdminSignMessageParams) (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 }
func (*SignTransactionFlags) Validate ¶ added in v0.63.0
func (f *SignTransactionFlags) Validate() (api.AdminSignTransactionParams, error)
type SignTransactionHandler ¶ added in v0.63.0
type SignTransactionHandler func(api.AdminSignTransactionParams, *zap.Logger) (api.AdminSignTransactionResult, error)
type TaintKeyFlags ¶
func (*TaintKeyFlags) Validate ¶
func (f *TaintKeyFlags) Validate() (api.AdminTaintKeyParams, error)
type TaintKeyHandler ¶
type TaintKeyHandler func(api.AdminTaintKeyParams) error
type UntaintKeyFlags ¶
func (*UntaintKeyFlags) Validate ¶
func (f *UntaintKeyFlags) Validate() (api.AdminUntaintKeyParams, error)
type UntaintKeyHandler ¶
type UntaintKeyHandler func(api.AdminUntaintKeyParams) error
type UpdatePassphraseFlags ¶ added in v0.60.0
func (*UpdatePassphraseFlags) Validate ¶ added in v0.60.0
func (f *UpdatePassphraseFlags) Validate() (api.AdminUpdatePassphraseParams, error)
type UpdatePassphraseHandler ¶ added in v0.60.0
type UpdatePassphraseHandler func(api.AdminUpdatePassphraseParams) 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
- 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
- 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_endpoints.go
- service_run.go
- shell.go
- shell_completion.go
- software.go
- software_compatibility.go
- software_version.go
- transaction.go
- transaction_send.go
- transaction_sign.go
- wallet_create.go
- wallet_delete.go
- wallet_describe.go
- wallet_import.go
- wallet_list.go
- wallet_rename.go
Click to show internal directories.
Click to hide internal directories.