-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09e2d2a
commit 2d33c99
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |