Documentation ¶
Index ¶
- Variables
- type Client
- type Config
- type FileInfo
- type Info
- type Problem
- type ProblemFiles
- func (p ProblemFiles) CheckerPath() string
- func (p ProblemFiles) InFilePath(testCase string) string
- func (p ProblemFiles) IncludeFilePaths() ([]string, error)
- func (p ProblemFiles) InfoTomlPath() string
- func (p ProblemFiles) OutFilePath(testCase string) string
- func (p ProblemFiles) PublicFilePath(key string) string
- func (p ProblemFiles) SolutionPath() string
- func (p ProblemFiles) VerifierPath() string
- type TestCaseDownloader
- type UploadTarget
Constants ¶
This section is empty.
Variables ¶
View Source
var DEFAULT_CONFIG = Config{ Host: "localhost:9000", ID: "minio", Secret: "miniopass", Bucket: "testcase", PublicBucket: "testcase-public", // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string ID string Secret string Bucket string PublicBucket string // contains filtered or unexported fields }
func GetConfigFromEnv ¶
func GetConfigFromEnv() Config
type Info ¶
func (Info) TestCaseNames ¶
type ProblemFiles ¶
func (ProblemFiles) CheckerPath ¶
func (p ProblemFiles) CheckerPath() string
func (ProblemFiles) InFilePath ¶
func (p ProblemFiles) InFilePath(testCase string) string
func (ProblemFiles) IncludeFilePaths ¶
func (p ProblemFiles) IncludeFilePaths() ([]string, error)
func (ProblemFiles) InfoTomlPath ¶
func (p ProblemFiles) InfoTomlPath() string
func (ProblemFiles) OutFilePath ¶
func (p ProblemFiles) OutFilePath(testCase string) string
func (ProblemFiles) PublicFilePath ¶
func (p ProblemFiles) PublicFilePath(key string) string
func (ProblemFiles) SolutionPath ¶
func (p ProblemFiles) SolutionPath() string
func (ProblemFiles) VerifierPath ¶
func (p ProblemFiles) VerifierPath() string
type TestCaseDownloader ¶
type TestCaseDownloader struct {
// contains filtered or unexported fields
}
func NewTestCaseDownloader ¶
func NewTestCaseDownloader(client Client) (TestCaseDownloader, error)
func (TestCaseDownloader) Close ¶
func (t TestCaseDownloader) Close() error
func (TestCaseDownloader) Fetch ¶
func (t TestCaseDownloader) Fetch(problem Problem) (ProblemFiles, error)
type UploadTarget ¶
func NewUploadTarget ¶
func NewUploadTarget(base, root string) (UploadTarget, error)
func (UploadTarget) BuildTestCaseTarGz ¶
func (p UploadTarget) BuildTestCaseTarGz() (string, error)
func (UploadTarget) UploadPublicFiles ¶
func (p UploadTarget) UploadPublicFiles(client Client) error
func (UploadTarget) UploadTestcases ¶
func (p UploadTarget) UploadTestcases(client Client) error
Click to show internal directories.
Click to hide internal directories.