daemon model skeleton (#463)

This commit is contained in:
Michael Quigley 2024-08-21 14:48:02 -04:00
parent 09e2d2a140
commit 2d33c99902
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 40 additions and 0 deletions

13
daemon/daemon.go Normal file
View File

@ -0,0 +1,13 @@
package daemon
type Daemon struct {
shares map[string]*share
accesses map[string]*access
}
func NewDaemon() *Daemon {
return &Daemon{
shares: make(map[string]*share),
accesses: make(map[string]*access),
}
}

27
daemon/model.go Normal file
View File

@ -0,0 +1,27 @@
package daemon
import (
"github.com/openziti/zrok/sdk/golang/sdk"
"time"
)
type share struct {
token string
basicAuth []string
frontendSelection []string
backendMode sdk.BackendMode
insecure bool
oauthProvider string
oauthEmailAddressPatterns []string
oauthCheckInterval time.Duration
closed bool
accessGrants []string
}
type access struct {
token string
bindAddress string
responseHeaders []string
}