checkpoint

package
v0.1.114 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package checkpoint implements the `polycli heimdall checkpoint` umbrella command (alias `cp`) and its subcommands: params, count, latest, get, buffer, last-no-ack, next, list, signatures, overview.

Per HEIMDALLCAST_REQUIREMENTS.md §3.2.1 these endpoints live under a single umbrella rather than at the top level of the heimdall tree. The umbrella also accepts a bare integer (`checkpoint 38871`) as a shorthand for `checkpoint get 38871`.

Index

Constants

This section is empty.

Variables

View Source
var CheckpointCmd = &cobra.Command{
	Use:     "checkpoint [ID]",
	Aliases: []string{"cp"},
	Short:   "Query checkpoint module endpoints.",
	Long:    usage,
	Args:    cobra.MaximumNArgs(1),

	RunE: func(cmd *cobra.Command, args []string) error {
		if len(args) == 0 {
			return cmd.Help()
		}
		if _, err := strconv.ParseUint(args[0], 10, 64); err != nil {
			return &client.UsageError{Msg: fmt.Sprintf("unknown checkpoint subcommand or id %q", args[0])}
		}
		return runGet(cmd, args[0])
	},
}

CheckpointCmd is the umbrella `checkpoint` command. Subcommands are attached by Register.

Functions

func Register

func Register(parent *cobra.Command, f *config.Flags)

Register attaches the checkpoint umbrella command and all of its subcommands to parent, wiring in the shared flag struct.

Every checkpoint subcommand is read-only, so we apply render.EnableWatchTree once here.

Types

This section is empty.

Jump to

Keyboard shortcuts

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