controllers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeys

func CreateKeys(c *gin.Context)

CreateKeys is the controller to automatically generate keys providing keys have not already been generated

func Delete

func Delete(c *gin.Context)

Delete controller gets key from request and then performs a series of checks before deleting

func Export

func Export(c *gin.Context)

Export controller will trigger an export of the bucket to the server root directory

func Upload

func Upload(c *gin.Context)

Upload this allows the uploading of files to the bucket

Types

type DeleteRequest

type DeleteRequest struct {
	Key string `json:"key"`
}

DeleteRequest is the stucture which should be passed to the delete controller in the form of an json object

Jump to

Keyboard shortcuts

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