controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 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 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.

func (*SitesController) GetSite

func (c *SitesController) GetSite(ctx context.Context, name string) (bool, error)

GetSite returns the site with the given name.

func (*SitesController) PutObject

func (c *SitesController) PutObject(ctx context.Context, site, name string, content []byte) error

PutObject uploads a file to the S3 bucket with the given name.

Jump to

Keyboard shortcuts

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