Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Files ¶ added in v0.3.0
type Files interface {
// UploadFile uploads a file to the given path.
UploadFile(ctx context.Context, site *models.Site, file *models.File) error
}
Files is an interface for managing files.
type Repo ¶
type Repo interface {
// Sites is an interface for managing sites.
Sites
}
Repo is an interface for managing repositories.
type Sites ¶
type Sites interface {
// CreateSite creates a new site with the given name.
CreateSite(ctx context.Context, site *models.Site) error
// GetSiteByName returns the site with the given name.
GetSiteByName(ctx context.Context, site *models.Site) (models.Site, error)
// GetSiteById returns the site with the given id.
GetSiteById(ctx context.Context, site *models.Site) (models.Site, error)
// UpdateSite updates the site with the given name.
UpdateSite(ctx context.Context, site *models.Site) error
// DeleteSite deletes the site with the given name.
DeleteSite(ctx context.Context, site *models.Site) error
}
Sites is an interface for managing sites.
Click to show internal directories.
Click to hide internal directories.