server

package
v0.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NameAvailable

func NameAvailable(name string, e2 *ec2.Client) (available bool, err error)

Types

type Server

type Server struct {
	Name               string
	Scope              string
	Id                 string
	PublicDNS          string
	VolumeId           string `json:"volume_id"`
	NetworkInterfaceId string `json:"network_interface_id"`
	ImageId            string `json:"image_id"`
	// contains filtered or unexported fields
}

func GetServer

func GetServer(name, scope string, key key.Key, group security.Group, e2 *ec2.Client) (s Server, err error)

func NewServer

func NewServer(name, scope string, key key.Key, group security.Group, e2 *ec2.Client) (s Server, err error)

func (*Server) Create

func (s *Server) Create() (id string, err error)

func (*Server) Delete

func (s *Server) Delete() (err error)

func (*Server) GetPublicDNS

func (s *Server) GetPublicDNS() (publicDNS string, err error)

func (*Server) GetVolumeId

func (s *Server) GetVolumeId() (volumeId string, err error)

func (Server) WaitUntilNetworkAvailable

func (s Server) WaitUntilNetworkAvailable() (err error)

func (Server) WaitUntilRunning

func (s Server) WaitUntilRunning() (err error)

func (Server) WaitUntilTerminated

func (s Server) WaitUntilTerminated() (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL