pufferd

package module
v2.0.0-...-6548848 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

README

pufferd

The PufferPanel daemon

Travis Status - Travis Build Status

Linux Build Status - Linux Build Status

Windows Build Status - Windows Build Status

Documentation

API Documentation

Coming soon

Eventually we'll fill the readme in, but not now.

Repositories graciously hosted by packagecloud

packagecloud

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "nightly"
	Hash    = "unknown"
	Display string
)
View Source
var ErrCannotValidateToken = apufferi.CreateError("could not validate access token", "ErrCannotValidateToken")
View Source
var ErrContainerRunning = apufferi.CreateError("container already running", "ErrContainerRunning")
View Source
var ErrIllegalFileAccess = apufferi.CreateError("invalid file access", "ErrIllegalFileAccess")
View Source
var ErrImageDownloading = apufferi.CreateError("image downloading", "ErrImageDownloading")
View Source
var ErrInvalidUnixTime = apufferi.CreateError("time provided is not a valid UNIX time", "ErrInvalidUnixTime")
View Source
var ErrKeyNotECDSA = apufferi.CreateError("key is not ECDSA key", "ErrKeyNotECDSA")
View Source
var ErrKeyNotPEM = apufferi.CreateError("key is not in PEM format", "ErrKeyNotPEM")
View Source
var ErrMissingAccessToken = apufferi.CreateError("access token not provided", "ErrMissingAccessToken")
View Source
var ErrMissingFactory = apufferi.CreateError("missing factory", "ErrMissingFactory")
View Source
var ErrMissingScope = apufferi.CreateError("missing scope", "ErrMissingScope")
View Source
var ErrNotBearerToken = apufferi.CreateError("access token must be a Bearer token", "ErrNotBearerToken")
View Source
var ErrProcessRunning = apufferi.CreateError("process already running", "ErrProcessRunning")
View Source
var ErrServerAlreadyExists = apufferi.CreateError("server already exists", "ErrServerAlreadyExists")
View Source
var ErrServerDisabled = apufferi.CreateError("server is disabled", "ErrServerDisabled")
View Source
var ErrServerOffline = apufferi.CreateError("server offline", "ErrServerOffline")

Functions

func CreateErrMissingScope

func CreateErrMissingScope(scope scope.Scope) *apufferi.Error

func GetPublicKey

func GetPublicKey() *ecdsa.PublicKey

func LoadConfig

func LoadConfig() error

func LoadPublicKey

func LoadPublicKey() (*ecdsa.PublicKey, error)

func SetDefaults

func SetDefaults()

func SetPublicKey

func SetPublicKey(key *ecdsa.PublicKey)

Types

type PufferdRunning

type PufferdRunning struct {
	Message string `json:"message"`
}

type SFTPAuthorization

type SFTPAuthorization interface {
	Validate(username, password string) (perms *ssh.Permissions, err error)
}

type ServerData

type ServerData struct {
	Variables map[string]apufferi.Variable `json:"data"`
}

type ServerDataAdmin

type ServerDataAdmin struct {
	*apufferi.Server
}

type ServerIdResponse

type ServerIdResponse struct {
	Id string `json:"id"`
}

type ServerLogs

type ServerLogs struct {
	Epoch int64  `json:"epoch"`
	Logs  string `json:"logs"`
}

type ServerRunning

type ServerRunning struct {
	Running bool `json:"running"`
}

type ServerStats

type ServerStats struct {
	Cpu    float64 `json:"cpu"`
	Memory float64 `json:"memory"`
}

Jump to

Keyboard shortcuts

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