Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyExists = errors.New("already exists") ErrNotFound = errors.New("not found") )
Functions ¶
func IsAlreadyExists ¶
func IsNotFound ¶
Types ¶
type AgentSources ¶
type AgentSources interface {
List() ([]models.AgentSource, error)
Get(id uuid.UUID) (*models.AgentSource, error)
Set(src *models.AgentSource) error
Delete(id uuid.UUID) error
}
AgentSources holds the named, reusable agent-binary deploy presets (see models.AgentSource) — a flat collection, not scoped to any one server.
type Auth ¶
type Auth interface {
Get() (*models.AuthCredentials, error)
Set(creds *models.AuthCredentials) error
}
Auth holds the single admin account used by the standalone web-server's login flow (see internal/api). Not a collection like Users/Servers — there's exactly one record.
type Interfaces ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
dump
Package dump reads/writes awg-admin's boltdb as a portable JSON snapshot of every bucket's raw key/value pairs — the format shared by the in-app backup (Service.Backup / the desktop "Backup" button / the standalone GET /backup) and the standalone awg-migrate CLI, so a backup taken from one can be restored with the other.
|
Package dump reads/writes awg-admin's boltdb as a portable JSON snapshot of every bucket's raw key/value pairs — the format shared by the in-app backup (Service.Backup / the desktop "Backup" button / the standalone GET /backup) and the standalone awg-migrate CLI, so a backup taken from one can be restored with the other. |
Click to show internal directories.
Click to hide internal directories.