packager

package
v0.0.0-...-58c3220 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packager

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

func NewPackager

func NewPackager(
	packagingClient pack_api_client.Client,
	connClient conn_api_client.Client,
	config config.PackagerConfig,
) *Packager

func (*Packager) SaveResult

func (p *Packager) SaveResult() error

This function saves a packaging result. To do this, it performs the following steps:

  1. It extracts the packaging entity from repository storage, for example, from the API server.
  2. It reads the packaging result file from workspace.
  3. Finally, it saves the packaging results.

func (*Packager) SetupPackager

func (p *Packager) SetupPackager() (err error)

This function prepares a packaging environment. To do this, it performs the following steps:

  1. It extracts the packaging entity from repository storage, for example, from the API server.
  2. It downloads a trained artifact from object storage.
  3. Finally, it saves the packaging entity to allow a packager to use it.

Jump to

Keyboard shortcuts

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