Documentation
¶
Index ¶
- type SitesController
- func (c *SitesController) CreateSite(ctx context.Context, name string) error
- func (c *SitesController) DeleteObject(_ context.Context, _, _ string) error
- func (c *SitesController) GetSite(ctx context.Context, name string) (bool, error)
- func (c *SitesController) PutObject(ctx context.Context, site, name string, content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SitesController ¶
type SitesController struct {
// contains filtered or unexported fields
}
SitesController is a controller for managing sites.
func NewSitesController ¶
func NewSitesController(storage ports.Sites) *SitesController
NewSitesController creates a new SitesController.
func (*SitesController) CreateSite ¶
func (c *SitesController) CreateSite(ctx context.Context, name string) error
CreateSite creates a new site with the given name.
func (*SitesController) DeleteObject ¶
func (c *SitesController) DeleteObject(_ context.Context, _, _ string) error
DeleteObject deletes the object with the given name from the S3 bucket with the given name.
Click to show internal directories.
Click to hide internal directories.