Documentation
¶
Index ¶
- Variables
- func GetArchive(ctx context.Context, f saturn.Finisher, c StorageClient, ...) error
- func PutArchive(ctx context.Context, f saturn.Finisher, c StorageClient, ...) error
- type CompileRequest
- type ExecuteRequest
- type FileSpecification
- type GCSClient
- type JavaScaffold
- func (s *JavaScaffold) CompileSucceeded() *Step
- func (s *JavaScaffold) DetermineScores() *Step
- func (s *JavaScaffold) DownloadBinaries() *Step
- func (s *JavaScaffold) DownloadSource() *Step
- func (s *JavaScaffold) Prepare() *Step
- func (s *JavaScaffold) RunMatch() *Step
- func (s *JavaScaffold) UploadBinary() *Step
- func (s *JavaScaffold) UploadReplay() *Step
- func (s *JavaScaffold) VerifySubmission() *Step
- type Python3Scaffold
- func (s *Python3Scaffold) CompileSucceeded() *Step
- func (s *Python3Scaffold) DetermineScores() *Step
- func (s *Python3Scaffold) DownloadBinaries() *Step
- func (s *Python3Scaffold) DownloadSource() *Step
- func (s *Python3Scaffold) Prepare() *Step
- func (s *Python3Scaffold) RunMatch() *Step
- func (s *Python3Scaffold) UploadReplay() *Step
- func (s *Python3Scaffold) VerifySubmission() *Step
- type Recipe
- type Scaffold
- type ScaffoldMultiplexer
- type Step
- type StepArguments
- type StorageClient
- type Submission
Constants ¶
This section is empty.
Variables ¶
View Source
var StateVersion = Step{ Name: "Hello world", Callable: func(ctx context.Context, arg *StepArguments) error { log.Ctx(ctx).Debug().Msg("Welcome to Saturn!") log.Ctx(ctx).Debug().Msgf("Node: %s", os.Getenv("HOSTNAME")) log.Ctx(ctx).Debug().Msgf("Revision: %s", os.Getenv("SATURN_REVISION")) return nil }, }
Functions ¶
func GetArchive ¶
func GetArchive( ctx context.Context, f saturn.Finisher, c StorageClient, spec FileSpecification, root string, ) error
func PutArchive ¶
func PutArchive( ctx context.Context, f saturn.Finisher, c StorageClient, spec FileSpecification, root string, public bool, ) error
Types ¶
type CompileRequest ¶
type CompileRequest struct {
Submission `mapstructure:"submission,squash"`
}
type ExecuteRequest ¶
type ExecuteRequest struct {
A Submission `mapstructure:"a"`
B Submission `mapstructure:"b"`
Maps []string `mapstructure:"maps"`
Replay FileSpecification `mapstructure:"replay"`
AlternateOrder bool `mapstructure:"alternate-order"`
}
type FileSpecification ¶
type GCSClient ¶
type GCSClient struct {
// contains filtered or unexported fields
}
func (*GCSClient) UploadFile ¶
type JavaScaffold ¶
type JavaScaffold struct {
Scaffold
// contains filtered or unexported fields
}
func NewJavaScaffold ¶
func (*JavaScaffold) CompileSucceeded ¶
func (s *JavaScaffold) CompileSucceeded() *Step
func (*JavaScaffold) DetermineScores ¶
func (s *JavaScaffold) DetermineScores() *Step
func (*JavaScaffold) DownloadBinaries ¶
func (s *JavaScaffold) DownloadBinaries() *Step
func (*JavaScaffold) DownloadSource ¶
func (s *JavaScaffold) DownloadSource() *Step
func (*JavaScaffold) Prepare ¶
func (s *JavaScaffold) Prepare() *Step
func (*JavaScaffold) RunMatch ¶
func (s *JavaScaffold) RunMatch() *Step
func (*JavaScaffold) UploadBinary ¶
func (s *JavaScaffold) UploadBinary() *Step
func (*JavaScaffold) UploadReplay ¶
func (s *JavaScaffold) UploadReplay() *Step
func (*JavaScaffold) VerifySubmission ¶
func (s *JavaScaffold) VerifySubmission() *Step
type Python3Scaffold ¶
type Python3Scaffold struct {
Scaffold
// contains filtered or unexported fields
}
func NewPython3Scaffold ¶
func (*Python3Scaffold) CompileSucceeded ¶
func (s *Python3Scaffold) CompileSucceeded() *Step
func (*Python3Scaffold) DetermineScores ¶
func (s *Python3Scaffold) DetermineScores() *Step
func (*Python3Scaffold) DownloadBinaries ¶
func (s *Python3Scaffold) DownloadBinaries() *Step
func (*Python3Scaffold) DownloadSource ¶
func (s *Python3Scaffold) DownloadSource() *Step
func (*Python3Scaffold) Prepare ¶
func (s *Python3Scaffold) Prepare() *Step
func (*Python3Scaffold) RunMatch ¶
func (s *Python3Scaffold) RunMatch() *Step
func (*Python3Scaffold) UploadReplay ¶
func (s *Python3Scaffold) UploadReplay() *Step
func (*Python3Scaffold) VerifySubmission ¶
func (s *Python3Scaffold) VerifySubmission() *Step
type Scaffold ¶
type Scaffold struct {
// contains filtered or unexported fields
}
func NewScaffold ¶
type ScaffoldMultiplexer ¶
type ScaffoldMultiplexer struct {
Root string
// contains filtered or unexported fields
}
func NewScaffoldMultiplexer ¶
func (*ScaffoldMultiplexer) Compile ¶
func (m *ScaffoldMultiplexer) Compile( ctx context.Context, f saturn.Finisher, payload saturn.TaskPayload, ) error
func (*ScaffoldMultiplexer) Execute ¶
func (m *ScaffoldMultiplexer) Execute( ctx context.Context, f saturn.Finisher, payload saturn.TaskPayload, ) error
type Step ¶
type Step struct {
Name string
Callable func(ctx context.Context, arg *StepArguments) error
}
type StepArguments ¶
type StepArguments struct {
Details interface{}
StorageClient
saturn.Finisher
}
type StorageClient ¶
type Submission ¶
type Submission struct {
Source FileSpecification `mapstructure:"source"`
Binary FileSpecification `mapstructure:"binary"`
TeamName string `mapstructure:"team-name"`
Package string `mapstructure:"package"`
}
Click to show internal directories.
Click to hide internal directories.