transfer

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package transfer moves the deployments of a gateway into a new cloud (SNRGY-5066): the subcommand export-gateway reads them on the gateway, PUT /networks/{id}/import takes them in the cloud.

Index

Constants

View Source
const DefaultSqlitePath = "/root/data/automation-engine.db"

DefaultSqlitePath is the database of the process module on a gateway.

Variables

This section is empty.

Functions

func Export

func Export(ctx context.Context, path string, version string, now time.Time) (result model.GatewayExport, err error)

Export reads the deployments of the gateway database at path in one transaction.

func Main

func Main(args []string, stdout io.Writer, stderr io.Writer) int

Main runs the subcommand export-gateway: it writes the export of the database as JSON to stdout and returns the exit code, 0 on success. The database is only read, never migrated, so that it runs in a throwaway container beside the module with the volume mounted read-only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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