Documentation
¶
Index ¶
- Variables
- func DefaultPath() string
- type Config
- type HybridStore
- func (h *HybridStore) Close() error
- func (h *HybridStore) DeleteRun(id string) error
- func (h *HybridStore) DownloadRun(id string) error
- func (h *HybridStore) GetOutput(runID string) ([]byte, error)
- func (h *HybridStore) GetRun(id string) (*run.Run, error)
- func (h *HybridStore) IsLocal(id string) bool
- func (h *HybridStore) ListRuns(opts ListOptions) ([]*run.Run, error)
- func (h *HybridStore) ListRunsLocal(opts ListOptions) ([]*run.Run, error)
- func (h *HybridStore) ListS3RunIDs() (map[string]bool, error)
- func (h *HybridStore) ListS3Runs(opts ListOptions) ([]*run.Run, error)
- func (h *HybridStore) OutputPath(runID string) string
- func (h *HybridStore) SaveOutput(runID string, output []byte) error
- func (h *HybridStore) SaveRun(r *run.Run) error
- func (h *HybridStore) Sync() (*SyncResult, error)
- func (h *HybridStore) UploadRun(id string) error
- type ListOptions
- type LocalStore
- func (s *LocalStore) Close() error
- func (s *LocalStore) DeleteRun(id string) error
- func (s *LocalStore) GetOutput(runID string) ([]byte, error)
- func (s *LocalStore) GetRun(id string) (*run.Run, error)
- func (s *LocalStore) HasRun(id string) bool
- func (s *LocalStore) ListRuns(opts ListOptions) ([]*run.Run, error)
- func (s *LocalStore) ListRunsLocal(opts ListOptions) ([]*run.Run, error)
- func (s *LocalStore) OutputPath(runID string) string
- func (s *LocalStore) SaveOutput(runID string, output []byte) error
- func (s *LocalStore) SaveRun(r *run.Run) error
- func (s *LocalStore) Sync() (*SyncResult, error)
- type S3Store
- func (s *S3Store) Close() error
- func (s *S3Store) DeleteRun(id string) error
- func (s *S3Store) GetOutput(runID string) ([]byte, error)
- func (s *S3Store) GetRun(id string) (*run.Run, error)
- func (s *S3Store) ListRunIDs() (map[string]bool, error)
- func (s *S3Store) ListRuns(opts ListOptions) ([]*run.Run, error)
- func (s *S3Store) OutputPath(runID string) string
- func (s *S3Store) SaveOutput(runID string, output []byte) error
- func (s *S3Store) SaveRun(r *run.Run) error
- type Store
- type SyncResult
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DefaultPath ¶
func DefaultPath() string
Types ¶
type HybridStore ¶
type HybridStore struct {
// contains filtered or unexported fields
}
func NewHybridStore ¶
func NewHybridStore(local *LocalStore, s3 *S3Store) *HybridStore
func (*HybridStore) Close ¶
func (h *HybridStore) Close() error
func (*HybridStore) DeleteRun ¶
func (h *HybridStore) DeleteRun(id string) error
func (*HybridStore) DownloadRun ¶
func (h *HybridStore) DownloadRun(id string) error
func (*HybridStore) IsLocal ¶
func (h *HybridStore) IsLocal(id string) bool
func (*HybridStore) ListRuns ¶
func (h *HybridStore) ListRuns(opts ListOptions) ([]*run.Run, error)
func (*HybridStore) ListRunsLocal ¶
func (h *HybridStore) ListRunsLocal(opts ListOptions) ([]*run.Run, error)
func (*HybridStore) ListS3RunIDs ¶
func (h *HybridStore) ListS3RunIDs() (map[string]bool, error)
func (*HybridStore) ListS3Runs ¶
func (h *HybridStore) ListS3Runs(opts ListOptions) ([]*run.Run, error)
func (*HybridStore) OutputPath ¶
func (h *HybridStore) OutputPath(runID string) string
func (*HybridStore) SaveOutput ¶
func (h *HybridStore) SaveOutput(runID string, output []byte) error
func (*HybridStore) Sync ¶
func (h *HybridStore) Sync() (*SyncResult, error)
func (*HybridStore) UploadRun ¶
func (h *HybridStore) UploadRun(id string) error
type ListOptions ¶
type LocalStore ¶
type LocalStore struct {
// contains filtered or unexported fields
}
func New ¶
func New(localPath string) (*LocalStore, error)
func NewLocalStore ¶
func NewLocalStore(baseDir string) (*LocalStore, error)
func (*LocalStore) Close ¶
func (s *LocalStore) Close() error
func (*LocalStore) DeleteRun ¶
func (s *LocalStore) DeleteRun(id string) error
func (*LocalStore) HasRun ¶
func (s *LocalStore) HasRun(id string) bool
func (*LocalStore) ListRuns ¶
func (s *LocalStore) ListRuns(opts ListOptions) ([]*run.Run, error)
func (*LocalStore) ListRunsLocal ¶
func (s *LocalStore) ListRunsLocal(opts ListOptions) ([]*run.Run, error)
func (*LocalStore) OutputPath ¶
func (s *LocalStore) OutputPath(runID string) string
func (*LocalStore) SaveOutput ¶
func (s *LocalStore) SaveOutput(runID string, output []byte) error
func (*LocalStore) Sync ¶
func (s *LocalStore) Sync() (*SyncResult, error)
type S3Store ¶
type S3Store struct {
// contains filtered or unexported fields
}
func NewS3Store ¶
func NewS3StoreWithProfile ¶
func (*S3Store) OutputPath ¶
type Store ¶
type Store interface {
SaveRun(r *run.Run) error
GetRun(id string) (*run.Run, error)
ListRuns(opts ListOptions) ([]*run.Run, error)
ListRunsLocal(opts ListOptions) ([]*run.Run, error)
SaveOutput(runID string, output []byte) error
GetOutput(runID string) ([]byte, error)
OutputPath(runID string) string
DeleteRun(id string) error
Sync() (*SyncResult, error)
Close() error
}
func NewFromConfig ¶
func NewFromEnv ¶
type SyncResult ¶
Click to show internal directories.
Click to hide internal directories.