export

package
v0.1.82 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 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 export is api's part of the export of a profile or an account, api.zip: its files by spec's part export/ — account.json in the export of the account, a file of each profile and the .proto files the records of protobuf are written by —, of whatever the database api keeps, with what the package of a module tells of an attempt while the image holds it. The evidence, the state and the observation go in as the JSON of their messages, with the fields' names as in their .proto files, which go in beside them.

Index

Constants

This section is empty.

Variables

Version is the version of the part export/ api writes, the string ExportProfile and ExportAccount name.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

Exporter writes the export of the packages of an image and the model.

func New

func New(set *packages.Set, m *model.Model) (*Exporter, error)

New is the exporter of the packages of set and the model m.

func (*Exporter) Account

func (x *Exporter) Account(ctx context.Context, tx pgx.Tx, accountID string) ([]byte, error)

Account is api.zip of the export of the account and every profile of it.

func (*Exporter) Profile

func (x *Exporter) Profile(ctx context.Context, tx pgx.Tx, accountID, profileID string) ([]byte, error)

Profile is api.zip of the export of the account's profile, read in the snapshot of tx, or store.ErrNoProfile.

Jump to

Keyboard shortcuts

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