sandboxruns

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SandboxRunsModel

type SandboxRunsModel struct {
	DB *domain.DB
	// contains filtered or unexported fields
}

CookieModel stores and retrives cookies for you

func (*SandboxRunsModel) AppsaceSums

func (m *SandboxRunsModel) AppsaceSums(ownerID domain.UserID, appspaceID domain.AppspaceID, from time.Time, to time.Time) (domain.SandboxRunData, error)

func (*SandboxRunsModel) Create

func (m *SandboxRunsModel) Create(run domain.SandboxRunIDs, start time.Time) (int, error)

func (*SandboxRunsModel) End

func (m *SandboxRunsModel) End(sandboxID int, end time.Time, data domain.SandboxRunData) error

func (*SandboxRunsModel) GetApp

func (m *SandboxRunsModel) GetApp(ownerID domain.UserID, appID domain.AppID) ([]domain.SandboxRun, error)

func (*SandboxRunsModel) GetAppspace

func (m *SandboxRunsModel) GetAppspace(ownerID domain.UserID, appspaceID domain.AppspaceID) ([]domain.SandboxRun, error)

TODO this is far too open-ended. Need a time range.

func (*SandboxRunsModel) PrepareStatements

func (m *SandboxRunsModel) PrepareStatements()

PrepareStatements for appspace model

func (*SandboxRunsModel) Update

func (m *SandboxRunsModel) Update(sandboxID int, data domain.SandboxRunData) error

Jump to

Keyboard shortcuts

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