Skip to content

Commit

Permalink
daemon model skeleton (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Aug 21, 2024
1 parent 09e2d2a commit 2d33c99
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
13 changes: 13 additions & 0 deletions daemon/daemon.go
Original file line number Diff line number Diff line change
@@ -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 changes: 27 additions & 0 deletions daemon/model.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 2d33c99

Please sign in to comment.