sys

package
v0.0.0-...-4c78285 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMount

func CreateMount(c echo.Context) error

func GetMount

func GetMount(c echo.Context) error

func GetMountTune

func GetMountTune(c echo.Context) error

func GetSealStatus

func GetSealStatus(c echo.Context) error

func Get_mounts

func Get_mounts(c echo.Context) error

func InitStatus

func InitStatus(c echo.Context) error

func InitSysPost

func InitSysPost(c echo.Context) error

func PostMountTune

func PostMountTune(c echo.Context) error

func RekeyInitDelete

func RekeyInitDelete(c echo.Context) error

func RekeyInitGet

func RekeyInitGet(c echo.Context) error

func RekeyInitPost

func RekeyInitPost(c echo.Context) error

func RekeyUpdatePost

func RekeyUpdatePost(c echo.Context) error

func SealStatus

func SealStatus() bool

func StartSys

func StartSys()

func Unseal

func Unseal(c echo.Context) error

Types

type PostedMount

type PostedMount struct {
	Type        string             `json:"type" validate:"required"`
	Description string             `json:"description"`
	Config      shared.MountConfig `json:"config"`
	Options     PostedMountOptions `json:"options"`
}

type PostedMountOptions

type PostedMountOptions struct {
	MaxVersions        int    `json:"max_versions"`
	DeleteVersionAfter string `json:"delete_version_after"`
}

type RekeyData

type RekeyData struct {
	Started   bool      `json:"started"`
	Threshold int       `json:"threshold"`
	Shares    int       `json:"shares"`
	Progress  int       `json:"progress"`
	Required  int       `json:"required"`
	Nonce     uuid.UUID `json:"nonce"`
	Keys      []string
}

type ReturnMounts

type ReturnMounts struct {
	// Data  []shared.Mounts `json:"data" validate:"required"`
	Data  map[string]interface{} `json:"data" validate:"required"`
	Total int                    `json:"total" validate:"required"`
}

type UnsealData

type UnsealData struct {
	Threshold int
	Shares    int
	Keys      []string
}

type UnsealRequest

type UnsealRequest struct {
	Key   string    `json:"key" validate:"optional"`
	Reset bool      `json:"reset" validate:"optional"`
	Nonce uuid.UUID `json:"nonce" validate:"optional"`
}

type UnsealResponse

type UnsealResponse struct {
	Sealed    bool `json:"sealed"`
	Threshold int  `json:"threshold"`
	Number    int  `json:"number"`
	Progress  int  `json:"progress"`
}

Jump to

Keyboard shortcuts

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