Help us shape the future of Go! Take the 2026 Go Developer Survey

snapshot

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 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