Documentation
¶
Index ¶
- type ClientConfig
- func (c *ClientConfig) CaCrt() content.Func
- func (c *ClientConfig) ClientCertifcate() *x509.Certificate
- func (c *ClientConfig) ClientCrt() content.Func
- func (c *ClientConfig) ClientKey() content.Func
- func (c *ClientConfig) ConfigContent() content.HasContent
- func (c *ClientConfig) LocalPathCaCrt() file.HasPath
- func (c *ClientConfig) LocalPathClientCrt() file.HasPath
- func (c *ClientConfig) LocalPathClientKey() file.HasPath
- func (c *ClientConfig) LocalPathConfig() file.HasPath
- func (c *ClientConfig) LocalPathTaKey() file.HasPath
- func (c *ClientConfig) TAKey() content.Func
- func (c ClientConfig) Validate(ctx context.Context) error
- type ClientIP
- type ClientIPs
- type ClientName
- type Device
- type IRoute
- type IRoutes
- type LocalClient
- type RemoteClient
- type Route
- type Routes
- type Server
- type ServerAddress
- type ServerConfig
- func (s *ServerConfig) CACertifcate() *x509.Certificate
- func (s *ServerConfig) CAPrivateKey() content.Func
- func (s *ServerConfig) CaCrt() content.Func
- func (s *ServerConfig) DHPem() content.Func
- func (s *ServerConfig) LocalPathCAPrivateKey() file.HasPath
- func (s *ServerConfig) LocalPathCaCrt() file.HasPath
- func (s *ServerConfig) LocalPathDhPem() file.HasPath
- func (s *ServerConfig) LocalPathServerCrt() file.HasPath
- func (s *ServerConfig) LocalPathServerKey() file.HasPath
- func (s *ServerConfig) LocalPathTaKey() file.HasPath
- func (s *ServerConfig) OpenvpnDefaultConf() content.Func
- func (s *ServerConfig) ServerCertifcate() *x509.Certificate
- func (s *ServerConfig) ServerConfigContent() content.Func
- func (s *ServerConfig) ServerCrt() content.Func
- func (s *ServerConfig) ServerKey() content.Func
- func (s *ServerConfig) TAKey() content.Func
- func (s ServerConfig) Validate(ctx context.Context) error
- type ServerName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct {
ClientName ClientName
ServerConfig ServerConfig
ServerAddress ServerAddress
Routes Routes
Device Device
}
func (*ClientConfig) CaCrt ¶
func (c *ClientConfig) CaCrt() content.Func
func (*ClientConfig) ClientCertifcate ¶
func (c *ClientConfig) ClientCertifcate() *x509.Certificate
func (*ClientConfig) ClientCrt ¶
func (c *ClientConfig) ClientCrt() content.Func
func (*ClientConfig) ClientKey ¶
func (c *ClientConfig) ClientKey() content.Func
func (*ClientConfig) ConfigContent ¶
func (c *ClientConfig) ConfigContent() content.HasContent
func (*ClientConfig) LocalPathCaCrt ¶
func (c *ClientConfig) LocalPathCaCrt() file.HasPath
func (*ClientConfig) LocalPathClientCrt ¶
func (c *ClientConfig) LocalPathClientCrt() file.HasPath
func (*ClientConfig) LocalPathClientKey ¶
func (c *ClientConfig) LocalPathClientKey() file.HasPath
func (*ClientConfig) LocalPathConfig ¶
func (c *ClientConfig) LocalPathConfig() file.HasPath
func (*ClientConfig) LocalPathTaKey ¶
func (c *ClientConfig) LocalPathTaKey() file.HasPath
func (*ClientConfig) TAKey ¶
func (c *ClientConfig) TAKey() content.Func
type ClientIP ¶
type ClientIP struct {
Name ClientName
IP network.IP
}
type ClientName ¶
type ClientName string
func (ClientName) String ¶
func (c ClientName) String() string
type IRoute ¶
type IRoute struct {
Name ClientName
IPNet network.IPNet
}
type LocalClient ¶
type LocalClient struct {
ClientName ClientName
ServerName ServerName
ServerAddress ServerAddress
Routes Routes
ServerPort network.Port
Device Device
}
func (*LocalClient) Children ¶
func (l *LocalClient) Children(ctx context.Context) (world.Configurations, error)
type RemoteClient ¶
type RemoteClient struct {
SSH *ssh.SSH
ClientName ClientName
ServerName ServerName
ServerAddress ServerAddress
ServerPort network.Port
Routes Routes
Device Device
}
func (*RemoteClient) Children ¶
func (r *RemoteClient) Children(ctx context.Context) (world.Configurations, error)
type Server ¶
type Server struct {
SSH *ssh.SSH
ServerName ServerName
ServerPort network.Port
ServerIPNet network.IPNet
Routes Routes
IRoutes IRoutes
ClientIPs ClientIPs
Device Device
}
type ServerAddress ¶
type ServerAddress string
func (ServerAddress) String ¶
func (s ServerAddress) String() string
type ServerConfig ¶
type ServerConfig struct {
ServerName ServerName
ServerIPNet network.IPNet
ServerPort network.Port
Routes Routes
Device Device
}
func (*ServerConfig) CACertifcate ¶
func (s *ServerConfig) CACertifcate() *x509.Certificate
func (*ServerConfig) CAPrivateKey ¶
func (s *ServerConfig) CAPrivateKey() content.Func
func (*ServerConfig) CaCrt ¶
func (s *ServerConfig) CaCrt() content.Func
func (*ServerConfig) DHPem ¶
func (s *ServerConfig) DHPem() content.Func
func (*ServerConfig) LocalPathCAPrivateKey ¶
func (s *ServerConfig) LocalPathCAPrivateKey() file.HasPath
func (*ServerConfig) LocalPathCaCrt ¶
func (s *ServerConfig) LocalPathCaCrt() file.HasPath
func (*ServerConfig) LocalPathDhPem ¶
func (s *ServerConfig) LocalPathDhPem() file.HasPath
func (*ServerConfig) LocalPathServerCrt ¶
func (s *ServerConfig) LocalPathServerCrt() file.HasPath
func (*ServerConfig) LocalPathServerKey ¶
func (s *ServerConfig) LocalPathServerKey() file.HasPath
func (*ServerConfig) LocalPathTaKey ¶
func (s *ServerConfig) LocalPathTaKey() file.HasPath
func (*ServerConfig) OpenvpnDefaultConf ¶
func (s *ServerConfig) OpenvpnDefaultConf() content.Func
func (*ServerConfig) ServerCertifcate ¶
func (s *ServerConfig) ServerCertifcate() *x509.Certificate
func (*ServerConfig) ServerConfigContent ¶
func (s *ServerConfig) ServerConfigContent() content.Func
func (*ServerConfig) ServerCrt ¶
func (s *ServerConfig) ServerCrt() content.Func
func (*ServerConfig) ServerKey ¶
func (s *ServerConfig) ServerKey() content.Func
func (*ServerConfig) TAKey ¶
func (s *ServerConfig) TAKey() content.Func
type ServerName ¶
type ServerName string
func (ServerName) String ¶
func (s ServerName) String() string
Click to show internal directories.
Click to hide internal directories.