zrok/agent/model.go

37 lines
740 B
Go
Raw Normal View History

2024-08-22 17:02:33 +02:00
package agent
2024-08-21 20:48:02 +02:00
import (
"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 {
token string
target string
2024-08-21 20:48:02 +02:00
basicAuth []string
frontendSelection []string
shareMode sdk.ShareMode
2024-08-21 20:48:02 +02:00
backendMode sdk.BackendMode
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
}
type agentGrpcImpl struct {
agentGrpc.UnimplementedAgentServer
a *Agent
}