snapshot

package
v0.43.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:              "snapshot",
	Short:            "Utilities to download the latest finalized protocol state snapshot",
	TraverseChildren: true,
}
View Source
var SaveCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "save",
		Short:   "Get the latest finalized protocol snapshot",
		Example: "flow snapshot save /tmp/snapshot.json",
		Args:    cobra.ExactArgs(1),
	},
	Flags: &struct{}{},
	Run:   save,
}

Functions

This section is empty.

Types

type SaveResult

type SaveResult struct {
	OutputPath string
}

SaveResult represents the result of the snapshot save command.

func (*SaveResult) JSON

func (r *SaveResult) JSON() interface{}

func (*SaveResult) Oneliner

func (r *SaveResult) Oneliner() string

func (*SaveResult) String

func (r *SaveResult) String() string

Jump to

Keyboard shortcuts

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