Documentation ¶
Index ¶
- func CleanupDOmain(domain string) string
- func CreateAdmin(db *pebble.DB, name string, password string) error
- type Ops
- func (db *Ops) APIKeys() (ls []*v1.APIKey, err error)
- func (db *Ops) Admin() (name string)
- func (db *Ops) CreateAPIKey(name string, key string) error
- func (db *Ops) CreateSite(domain string, public bool)
- func (db *Ops) DeleteAPIKey(name string) error
- func (db *Ops) DeleteDomain(domain string)
- func (db *Ops) DeleteSharedLink(site *v1.Site, slug string)
- func (db *Ops) Domains(f func(*v1.Site))
- func (db *Ops) EditSharedLink(site *v1.Site, slug, name string)
- func (db *Ops) FindOrCreateCreateSharedLink(domain string, name, password string) (share *v1.Share)
- func (db *Ops) HasSite(domain string) (ok bool)
- func (db *Ops) Save(u *v1.Site)
- func (db *Ops) SeenFirstStats(domain string) (ok bool)
- func (db *Ops) Site(domain string) (u *v1.Site)
- func (db *Ops) ValidAPIKkey(key string) bool
- func (db *Ops) ValidateSiteDomain(domain string) (good, bad string)
- func (db *Ops) VerifyPassword(password string) (match bool)
- func (db *Ops) Web() (secret *age.X25519Identity, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupDOmain ¶
Types ¶
type Ops ¶
type Ops struct {
// contains filtered or unexported fields
}
func New ¶
func New(db *pebble.DB, tr translation.Translator, sites ...string) *Ops
func (*Ops) CreateSite ¶
func (*Ops) DeleteAPIKey ¶
func (*Ops) DeleteDomain ¶
func (*Ops) FindOrCreateCreateSharedLink ¶
func (*Ops) SeenFirstStats ¶
func (*Ops) ValidAPIKkey ¶
func (*Ops) ValidateSiteDomain ¶
func (*Ops) VerifyPassword ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.