api

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 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"`
	Mirrorz     []MirrorzRepo `json:"mirrorz"`
	Disable     bool          `json:"disable"`
}

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"`
}

type MirrorzRepo added in v0.7.0

type MirrorzRepo struct {
	Name  string `json:"name"`
	Cache bool   `json:"cache,omitempty"`
}

Jump to

Keyboard shortcuts

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