Documentation ¶
Index ¶
- Variables
- func ConvertToTar(files []TarFileBasicInfo) (*bytes.Buffer, error)
- func DockerHostConfigBinds(source, target string) string
- func Exists(path string) bool
- func JudgeCaseDir(tid uint32, version string) (string, error)
- func JudgeFilePath(tid uint32, version, caseId, caseType string) (string, error)
- func JudgeGenerateOutputDirWithMkdir(baseDir string) (string, error)
- func ReadFileBytes(absPath string) ([]byte, error)
- func SubmissionBaseDir() (string, error)
- func SubmissionGenerateDirWithMkdir(sid uint32) (string, error)
- func TouchFile(path string) error
- func TouchFileWithMagic(path string) error
- type TarFileBasicInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MagicBytes = []byte{'\x7F', 'E', 'L', 'F'}
)
Functions ¶
func ConvertToTar ¶
func ConvertToTar(files []TarFileBasicInfo) (*bytes.Buffer, error)
func DockerHostConfigBinds ¶
func JudgeFilePath ¶
func ReadFileBytes ¶
func SubmissionBaseDir ¶
func TouchFileWithMagic ¶
Types ¶
type TarFileBasicInfo ¶
func AllFilesInDirToTarArchiveInfo ¶
func AllFilesInDirToTarArchiveInfo(filePath, absPath string) ([]TarFileBasicInfo, error)
func TarToFile ¶
func TarToFile(reader io.ReadCloser) ([]TarFileBasicInfo, error)
func TestCasesToTarArchiveInfo ¶
func TestCasesToTarArchiveInfo(testCases []*JudgerModels.TestCaseType, absPath string) ([]TarFileBasicInfo, error)
Click to show internal directories.
Click to hide internal directories.