2024-08-22 17:02:33 +02:00
|
|
|
package agent
|
2024-08-21 20:48:02 +02:00
|
|
|
|
|
|
|
import (
|
2024-08-26 19:13:59 +02:00
|
|
|
"github.com/openziti/zrok/agent/agentGrpc"
|
2024-08-21 20:48:02 +02:00
|
|
|
"github.com/openziti/zrok/sdk/golang/sdk"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type share struct {
|
2024-08-26 19:13:59 +02:00
|
|
|
token string
|
|
|
|
target string
|
2024-08-21 20:48:02 +02:00
|
|
|
|
|
|
|
basicAuth []string
|
|
|
|
frontendSelection []string
|
2024-08-26 19:13:59 +02:00
|
|
|
shareMode sdk.ShareMode
|
2024-08-21 20:48:02 +02:00
|
|
|
backendMode sdk.BackendMode
|
2024-08-26 19:13:59 +02:00
|
|
|
reserved bool
|
2024-08-21 20:48:02 +02:00
|
|
|
insecure bool
|
|
|
|
oauthProvider string
|
|
|
|
oauthEmailAddressPatterns []string
|
|
|
|
oauthCheckInterval time.Duration
|
|
|
|
closed bool
|
|
|
|
accessGrants []string
|
|
|
|
}
|
|
|
|
|
|
|
|
type access struct {
|
|
|
|
token string
|
|
|
|
|
|
|
|
bindAddress string
|
|
|
|
responseHeaders []string
|
|
|
|
}
|
2024-08-26 19:13:59 +02:00
|
|
|
|
|
|
|
type agentGrpcImpl struct {
|
|
|
|
agentGrpc.UnimplementedAgentServer
|
|
|
|
a *Agent
|
|
|
|
}
|