v1compat

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArchiveFromGit

func CreateArchiveFromGit(
	archivePath string,
	repositoryPath string,
	inputHash string,
) (int64, error)

CreateArchiveFromGit creates an archive that can be sent to a Runner as an Input from a git repository.

func GetRepositoryPath added in v1.1.1

func GetRepositoryPath(
	root string,
	problemName string,
) string

GetRepositoryPath returns the path of a problem repository.

func NewInputFactory added in v1.1.0

func NewInputFactory(
	problemName string,
	config *common.Config,
) common.InputFactory

NewInputFactory returns a new InputFactory.

Types

type ProblemInformation added in v1.1.0

type ProblemInformation struct {
	InputHash string
	Settings  *common.ProblemSettings
}

A ProblemInformation represents information from the problem.

func GetProblemInformation added in v1.1.0

func GetProblemInformation(repositoryPath string) (*ProblemInformation, error)

GetProblemInformation returns the ProblemInformation obtained from the git repository located at the provided repository path.

Jump to

Keyboard shortcuts

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