sudo

package
v0.0.0-...-300d8f5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableSudo

func EnableSudo(c *gin.Context)

EnableSudo Function to be called in an authenticated route, returns a JWT token with sudo privileges

Types

type ValidationBag

type ValidationBag struct {
	Errors []ValidationEntry `json:"errors" structs:"errors"`
}

type ValidationEntry

type ValidationEntry struct {
	Message   string `json:"message" structs:"message"`
	Value     string `json:"value" structs:"value"`
	Parameter string `json:"parameter" structs:"parameter"`
}

type ValidationResponse

type ValidationResponse struct {
	Validation ValidationBag `json:"validation" structs:"validation"`
}

Jump to

Keyboard shortcuts

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