Documentation ¶
Index ¶
- Constants
- func AddOrUpdatePackageIndex(ctx context.Context, doer, owner *user_model.User, packageID int64) error
- func BuildPackageIndex(ctx context.Context, p *packages_model.Package) (*bytes.Buffer, error)
- func BuildPackagePath(name string) string
- func InitializeIndexRepository(ctx context.Context, doer, owner *user_model.User) error
- func RebuildIndex(ctx context.Context, doer, owner *user_model.User) error
- type Config
- type IndexVersionEntry
Constants ¶
View Source
const ( IndexRepositoryName = "_cargo-index" ConfigFileName = "config.json" )
Variables ¶
This section is empty.
Functions ¶
func AddOrUpdatePackageIndex ¶
func BuildPackageIndex ¶
func BuildPackagePath ¶
func InitializeIndexRepository ¶
func InitializeIndexRepository(ctx context.Context, doer, owner *user_model.User) error
func RebuildIndex ¶
func RebuildIndex(ctx context.Context, doer, owner *user_model.User) error
Types ¶
type Config ¶
func BuildConfig ¶
func BuildConfig(owner *user_model.User) *Config
type IndexVersionEntry ¶
type IndexVersionEntry struct { Name string `json:"name"` Version string `json:"vers"` Dependencies []*cargo_module.Dependency `json:"deps"` FileChecksum string `json:"cksum"` Features map[string][]string `json:"features"` Yanked bool `json:"yanked"` Links string `json:"links,omitempty"` }
Click to show internal directories.
Click to hide internal directories.