Documentation
¶
Index ¶
- func AddHostToKnownHosts(ip string, knownHostsPath string) error
- func GenerateVPSResourceView(appCfg *config.AppConfig, resMap VPSResourceMap) (string, error)
- type SSHClient
- type ServerOption
- type ServerStruct
- func (s *ServerStruct) BasicCaddySetup(ctx context.Context, serverName string, stream io.Writer) error
- func (s *ServerStruct) CloseSSHConnection() error
- func (s *ServerStruct) DownloadFile(ctx context.Context, serverName, remotePath, localPath string) error
- func (s *ServerStruct) ExecuteCommand(ctx context.Context, serverName, command string, stream io.Writer) (string, error)
- func (s *ServerStruct) GetDeploymentServer() (string, error)
- func (s *ServerStruct) GetServerStatus(serverName string, stream io.Writer) (string, error)
- func (s *ServerStruct) ListServers() []string
- func (s *ServerStruct) PingServer(serverName string) error
- func (s *ServerStruct) Reconnect(serverName string) error
- func (s *ServerStruct) UploadFile(ctx context.Context, serverName, localPath, remotePath string) error
- type VPSResourceMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHostToKnownHosts ¶
func GenerateVPSResourceView ¶
func GenerateVPSResourceView(appCfg *config.AppConfig, resMap VPSResourceMap) (string, error)
GenerateVPSResourceView creates a premium HTML report of the provisioned resources
Types ¶
type ServerOption ¶
type ServerOption func(*ServerStruct) error
func WithConfig ¶
func WithConfig() ServerOption
func WithDaemon ¶
func WithDaemon() ServerOption
func WithSSH ¶
func WithSSH() ServerOption
type ServerStruct ¶
type ServerStruct struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...ServerOption) (*ServerStruct, error)
func (*ServerStruct) BasicCaddySetup ¶
func (*ServerStruct) CloseSSHConnection ¶
func (s *ServerStruct) CloseSSHConnection() error
func (*ServerStruct) DownloadFile ¶
func (s *ServerStruct) DownloadFile(ctx context.Context, serverName, remotePath, localPath string) error
func (*ServerStruct) ExecuteCommand ¶
func (*ServerStruct) GetDeploymentServer ¶
func (s *ServerStruct) GetDeploymentServer() (string, error)
func (*ServerStruct) GetServerStatus ¶
func (*ServerStruct) ListServers ¶
func (s *ServerStruct) ListServers() []string
func (*ServerStruct) PingServer ¶
func (s *ServerStruct) PingServer(serverName string) error
func (*ServerStruct) Reconnect ¶
func (s *ServerStruct) Reconnect(serverName string) error
func (*ServerStruct) UploadFile ¶
func (s *ServerStruct) UploadFile(ctx context.Context, serverName, localPath, remotePath string) error
Click to show internal directories.
Click to hide internal directories.