emulator

package
v1.0.0-beta01 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const SnapshotEndpoint = "http://localhost:8080/emulator/snapshots"

Variables

View Source
var SnapshotCmd = &command.Command{
	Cmd: &cobra.Command{
		Use:     "snapshot <create|load|list> [snapshotName]",
		Short:   "Create/Load/List emulator snapshots",
		Example: "flow emulator snapshot create testSnapshot",
		Args:    cobra.RangeArgs(1, 2),
	},
	Flags: &snapshotFlag,
	Run:   snapshot,
}

Functions

func Exitf added in v0.24.0

func Exitf(code int, msg string, args ...interface{})

Types

type SnapShotResult added in v0.48.0

type SnapShotResult struct {
	Name    string `json:"context"`
	BlockID string `json:"blockId"`
	Height  uint64 `json:"height"`
	Result  string `json:"result,omitempty"`
}

func (*SnapShotResult) JSON added in v0.48.0

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

func (*SnapShotResult) Oneliner added in v0.48.0

func (r *SnapShotResult) Oneliner() string

func (*SnapShotResult) String added in v0.48.0

func (r *SnapShotResult) String() string

type SnapshotCommand added in v0.48.0

type SnapshotCommand string
const (
	SnapshotCommandList   SnapshotCommand = "list"
	SnapshotCommandCreate SnapshotCommand = "create"
	SnapshotCommandLoad   SnapshotCommand = "load"
)

type SnapshotFlag added in v0.48.0

type SnapshotFlag struct{}

type SnapshotList added in v0.48.0

type SnapshotList struct {
	Snapshots []string
}

func (*SnapshotList) JSON added in v0.48.0

func (s *SnapshotList) JSON() interface{}

func (*SnapshotList) Oneliner added in v0.48.0

func (s *SnapshotList) Oneliner() string

func (*SnapshotList) String added in v0.48.0

func (s *SnapshotList) String() string

Jump to

Keyboard shortcuts

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