Documentation ¶
Index ¶
- Variables
- func CreateErrMissingScope(scope scope.Scope) *apufferi.Error
- func GetPublicKey() *ecdsa.PublicKey
- func LoadConfig() error
- func LoadPublicKey() (*ecdsa.PublicKey, error)
- func SetDefaults()
- func SetPublicKey(key *ecdsa.PublicKey)
- type PufferdRunning
- type SFTPAuthorization
- type ServerData
- type ServerDataAdmin
- type ServerIdResponse
- type ServerLogs
- type ServerRunning
- type ServerStats
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 GetPublicKey ¶
func LoadConfig ¶
func LoadConfig() error
func LoadPublicKey ¶
func SetDefaults ¶
func SetDefaults()
func SetPublicKey ¶
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 ServerRunning ¶
type ServerRunning struct {
Running bool `json:"running"`
}
type ServerStats ¶
Click to show internal directories.
Click to hide internal directories.