snapshot

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(h Actions) *cobra.Command

Command builds the "snapshot" parent command with all subcommands.

Types

type Actions

type Actions interface {
	Save(cmd *cobra.Command, args []string) error
	List(cmd *cobra.Command, args []string) error
	Inspect(cmd *cobra.Command, args []string) error
	RM(cmd *cobra.Command, args []string) error
	Export(cmd *cobra.Command, args []string) error
	Import(cmd *cobra.Command, args []string) error
}

Actions defines snapshot management operations.

type Handler

type Handler struct {
	cmdcore.BaseHandler
}

Handler implements Actions.

func (Handler) Export added in v0.2.6

func (h Handler) Export(cmd *cobra.Command, args []string) (err error)

func (Handler) Import added in v0.2.6

func (h Handler) Import(cmd *cobra.Command, args []string) error

func (Handler) Inspect

func (h Handler) Inspect(cmd *cobra.Command, args []string) error

func (Handler) List

func (h Handler) List(cmd *cobra.Command, _ []string) error

func (Handler) RM

func (h Handler) RM(cmd *cobra.Command, args []string) error

func (Handler) Save

func (h Handler) Save(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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