api

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFileAlreadyEncrypted = errors.New("file already encrypted")

ErrFileAlreadyEncrypted is returned when a file is already encrypted

Functions

This section is empty.

Types

type API

type API struct {
	Storage storage.Storage
	// contains filtered or unexported fields
}

func New

func New(c *config.Config) *API

func (*API) EncryptAllFilesHandler added in v0.8.0

func (a *API) EncryptAllFilesHandler(c echo.Context) error

func (*API) GetGitBundleHandler added in v0.6.0

func (a *API) GetGitBundleHandler(c echo.Context) error

func (*API) GetLogsHandler

func (a *API) GetLogsHandler(c echo.Context) error

func (*API) GetPlanHandler

func (a *API) GetPlanHandler(c echo.Context) error

func (*API) HeadGitBundleHandler added in v0.6.0

func (a *API) HeadGitBundleHandler(c echo.Context) error

func (*API) PutGitBundleHandler added in v0.6.0

func (a *API) PutGitBundleHandler(c echo.Context) error

func (*API) PutLogsHandler

func (a *API) PutLogsHandler(c echo.Context) error

func (*API) PutPlanHandler

func (a *API) PutPlanHandler(c echo.Context) error

type EncryptRequest added in v0.8.0

type EncryptRequest struct {
	EncryptionKey string `json:"encryptionKey"`
}

type EncryptResponse added in v0.8.0

type EncryptResponse struct {
	Message        string   `json:"message"`
	FilesEncrypted int      `json:"filesEncrypted"`
	Errors         []string `json:"errors,omitempty"`
}

type GetLogsResponse

type GetLogsResponse struct {
	Results []string `json:"results"`
}

Jump to

Keyboard shortcuts

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