export

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportCommand

func ExportCommand(parent *cobra.Command, con *client.Client, data func(cmd *cobra.Command, args []string) any) *cobra.Command

ExportCommand returns an "export" subcommand to hook into a parent "object" command, to query/write to DB those objects.

func ImportCommand

func ImportCommand(parent *cobra.Command, con *client.Client, runE func(cmd *cobra.Command, arg string, data []byte) error) *cobra.Command

ImportCommand returns an "import" subcommand to hook into a parent "object" command, to query/write to DB those objects.

func ImportJSON

func ImportJSON[out protoreflect.ProtoMessage](data []byte, arg string) (list []out, err error)

ImportJSON takes a protobuf message struct and unmarshals data into either this type or a list.

func MarshalExport

func MarshalExport(cmd *cobra.Command, data any) (s []byte, err error)

MarshalExport accepts some arbitrary with the command in which this data was created, and marshals it given some command formatting flags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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