ports

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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