Documentation ¶
Index ¶
- func CleanupDOmain(domain string) string
- type Ops
- func (db *Ops) APIKeys() (ls []*v1.APIKey, err error)
- func (db *Ops) CreateAPIKey(name string, key string) error
- func (db *Ops) CreateSite(domain string, public bool) (err error)
- func (db *Ops) DeleteAPIKey(name string) error
- func (db *Ops) DeleteDomain(domain string) (err error)
- func (db *Ops) DeleteSharedLink(site *v1.Site, slug string) error
- func (db *Ops) Domains(f func(*v1.Site))
- func (db *Ops) EditSharedLink(site *v1.Site, slug, name string) error
- func (db *Ops) FindOrCreateCreateSharedLink(domain string, name, password string) (share *v1.Share)
- func (db *Ops) Save(u *v1.Site) error
- func (db *Ops) SeenFirstStats(domain string) (ok bool)
- func (db *Ops) SetupDomains(names []string)
- 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) 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) *Ops
func (*Ops) DeleteAPIKey ¶
func (*Ops) DeleteDomain ¶
func (*Ops) FindOrCreateCreateSharedLink ¶
func (*Ops) SeenFirstStats ¶
func (*Ops) SetupDomains ¶
func (*Ops) ValidAPIKkey ¶
func (*Ops) ValidateSiteDomain ¶
Click to show internal directories.
Click to hide internal directories.