Documentation
¶
Index ¶
- Constants
- Variables
- type DigitalOceanClient
- type Server
- func (s *Server) Alias(sub, domain string) (err error)
- func (server *Server) Connect(stdin io.Reader, stdout, _ io.Writer, args ...string) (err error)
- func (server *Server) Copy(path, dst string) (stdout, stderr bytes.Buffer, _ error)
- func (server *Server) Destroy(ctx context.Context) (err error)
- func (s *Server) Dump(path string, data []byte) (stdout, stderr bytes.Buffer, err error)
- func (server *Server) Env(key, value string) error
- func (server *Server) Exec(args ...string) (stdout, stderr bytes.Buffer, err error)
- func (server *Server) GetID() string
- func (server *Server) GetIP() string
- func (server *Server) GetName() string
- func (server *Server) Launch(opts ...hosting.LaunchOption) (err error)
Constants ¶
View Source
const ( RSA_KEY_NAME = "SkyGuard Access Key" RSA_KEY_TYPE = "RSA PRIVATE KEY" ID_RSA = "id_rsa" ID_RSA_PUB = "id_rsa.pub" )
Variables ¶
View Source
var ApiKey = os.Getenv("DIGITAL_OCEAN_API_KEY")
Functions ¶
This section is empty.
Types ¶
type DigitalOceanClient ¶
func Connect ¶
func Connect(apiKey string) *DigitalOceanClient
func (*DigitalOceanClient) GetServer ¶
func (client *DigitalOceanClient) GetServer(id string) (*Server, error)
func (*DigitalOceanClient) Launch ¶
func (client *DigitalOceanClient) Launch(s *Server, opts ...hosting.LaunchOption) (*Server, error)
Click to show internal directories.
Click to hide internal directories.