zrok/agent/model.go
2024-08-26 13:13:59 -04:00

37 lines
740 B
Go

package agent
import (
"github.com/openziti/zrok/agent/agentGrpc"
"github.com/openziti/zrok/sdk/golang/sdk"
"time"
)
type share struct {
token string
target string
basicAuth []string
frontendSelection []string
shareMode sdk.ShareMode
backendMode sdk.BackendMode
reserved bool
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
}