api

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelRepoName   = "org.ustcmirror.name"
	LabelStorageDir = "org.ustcmirror.storage-dir"
	LabelImages     = "org.ustcmirror.images"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRepoMetaResponse added in v0.4.0

type GetRepoMetaResponse struct {
	Name        string `json:"name"`
	Upstream    string `json:"upstream"`
	Syncing     bool   `json:"syncing"`
	Size        int64  `json:"size"`
	ExitCode    int    `json:"exitCode"`
	LastSuccess int64  `json:"lastSuccess"`
	UpdatedAt   int64  `json:"updatedAt"`
	PrevRun     int64  `json:"prevRun"`
	NextRun     int64  `json:"nextRun"`
}

type ListRepoMetasResponse added in v0.4.0

type ListRepoMetasResponse = []GetRepoMetaResponse

type ListReposResponse added in v0.4.0

type ListReposResponse = []ListReposResponseItem

type ListReposResponseItem added in v0.4.0

type ListReposResponseItem struct {
	Name       string `json:"name"`
	Cron       string `json:"cron"`
	Image      string `json:"image"`
	StorageDir string `json:"storageDir"`
}

Jump to

Keyboard shortcuts

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