list

package
v0.0.0-...-e8b1e36 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatJSON = iota
	FormatTable
	FormatQuiet
)

Variables

This section is empty.

Functions

func Experiments

func Experiments(repo repository.Repository, format Format, all bool, filters *param.Filters, sorter *param.Sorter) error

Types

type Format

type Format int

type ListExperiment

type ListExperiment struct {
	ID               string              `json:"id"`
	Created          time.Time           `json:"created"`
	Params           param.ValueMap      `json:"params"`
	Command          string              `json:"command"`
	NumCheckpoints   int                 `json:"num_checkpoints"`
	LatestCheckpoint *project.Checkpoint `json:"latest_checkpoint"`
	BestCheckpoint   *project.Checkpoint `json:"best_checkpoint"`
	User             string              `json:"user"`
	Host             string              `json:"host"`
	Running          bool                `json:"running"`

	// exclude config from json output
	Config *config.Config `json:"-"`
}

func (*ListExperiment) GetValue

func (exp *ListExperiment) GetValue(name string) param.Value

We should add some validation and better error messages, see https://github.com/replicate/keepsake/issues/340

Jump to

Keyboard shortcuts

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