Documentation ¶
Index ¶
- Constants
- func WithVault(p *Proxy)
- type Agent
- func (a *Agent) FollowRedirect(m *btesting.Matcher) error
- func (a *Agent) Get(m *btesting.Matcher, u string) bool
- func (a *Agent) ParseLastResponseBody(in interface{}) error
- func (a *Agent) Post(m *btesting.Matcher, u, body string) bool
- func (a *Agent) SaveCookie()
- func (a *Agent) Tunnel(m *btesting.Matcher) *Tunnel
- type Agents
- type AuthResponse
- type Connector
- type Framework
- type IdentityProvider
- type Proxy
- func (p *Proxy) Backend(b *configv2.Backend)
- func (p *Proxy) Cleanup() error
- func (p *Proxy) ClearConf() bool
- func (p *Proxy) Connector(name string, m *btesting.MockServer)
- func (p *Proxy) DashboardBackend() *configv2.Backend
- func (p *Proxy) Host(name string) string
- func (p *Proxy) MockServer() *btesting.MockServer
- func (p *Proxy) MockTCPServer() *btesting.MockTCPServer
- func (p *Proxy) ProxyAddr() string
- func (p *Proxy) RPCPermission(v *configv2.RPCPermission)
- func (p *Proxy) Reload() error
- func (p *Proxy) Role(r *configv2.Role)
- func (p *Proxy) URL(subdomain string, pathAnd ...string) string
- func (p *Proxy) User(u *database.User)
- type ProxyCond
- type Tunnel
- func (t *Tunnel) CSR(m *btesting.Matcher) string
- func (t *Tunnel) GetFirstCertificate(m *btesting.Matcher, rpcClient *rpcclient.ClientWithUserToken) []byte
- func (t *Tunnel) Init() bool
- func (t *Tunnel) LoadCert(c []byte) bool
- func (t *Tunnel) OpenURL(m *btesting.Matcher) bool
- func (t *Tunnel) OpeningURL() string
- func (t *Tunnel) Proxy(m *btesting.Matcher, host, resolver string, body io.Reader) bool
- func (t *Tunnel) Stop()
- func (t *Tunnel) WaitGettingToken(timeout time.Duration) bool
Constants ¶
View Source
const (
RootUserId = "root@e2e.f110.dev"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) FollowRedirect ¶ added in v0.10.0
func (*Agent) ParseLastResponseBody ¶ added in v0.10.0
func (*Agent) SaveCookie ¶ added in v0.10.0
func (a *Agent) SaveCookie()
type Agents ¶
type Agents struct {
// contains filtered or unexported fields
}
func NewAgents ¶
func NewAgents( domain string, ca *x509.Certificate, sessionStore *session.SecureCookieStore, rpcPort int, signPrivateKey *ecdsa.PrivateKey, ) *Agents
func (*Agents) Authorized ¶
Authorized returns the agent for authorized user. This agent uses the cookie secret.
func (*Agents) DecodeCookieValue ¶ added in v0.10.0
func (*Agents) RPCClient ¶ added in v0.12.0
func (a *Agents) RPCClient(id string) *rpcclient.ClientWithUserToken
func (*Agents) Unauthorized ¶
type AuthResponse ¶ added in v0.10.0
type Connector ¶ added in v0.11.0
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶ added in v0.11.0
func NewConnector(name string, m *btesting.MockServer, proxyCACert *x509.Certificate) (*Connector, error)
type IdentityProvider ¶
type IdentityProvider struct { *http.Server Issuer string PrivateKey *rsa.PrivateKey // contains filtered or unexported fields }
func NewIdentityProvider ¶
func NewIdentityProvider() (*IdentityProvider, error)
type Proxy ¶
type Proxy struct { Domain string DomainHost string CA *x509.Certificate // contains filtered or unexported fields }
func (*Proxy) Connector ¶ added in v0.11.0
func (p *Proxy) Connector(name string, m *btesting.MockServer)
func (*Proxy) DashboardBackend ¶ added in v0.11.0
func (*Proxy) MockServer ¶ added in v0.11.0
func (p *Proxy) MockServer() *btesting.MockServer
func (*Proxy) MockTCPServer ¶ added in v0.12.0
func (p *Proxy) MockTCPServer() *btesting.MockTCPServer
func (*Proxy) RPCPermission ¶ added in v0.11.0
func (p *Proxy) RPCPermission(v *configv2.RPCPermission)
type Tunnel ¶ added in v0.12.0
func (*Tunnel) GetFirstCertificate ¶ added in v0.12.0
func (*Tunnel) OpeningURL ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.