Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuilderServer ¶
type BuilderServer struct { ImageUrl *string VPC *string Subnet *string Region *string Zone *string Labels *string MachineType *string Preemptible *bool DiskSizeGb *int64 DiskType *string ServiceAccount *string Tags *string UseInternalNet *bool CreateExternalIP *bool }
func (*BuilderServer) GetLabelsMap ¶
func (bs *BuilderServer) GetLabelsMap() map[string]string
func (*BuilderServer) GetServiceAccountEmail ¶
func (bs *BuilderServer) GetServiceAccountEmail(projectID string) string
func (*BuilderServer) GetTags ¶
func (bs *BuilderServer) GetTags() []string
type Remote ¶
Remote represents a remote Windows server.
type Server ¶
type Server struct { Remote // contains filtered or unexported fields }
Server encapsulates a GCE Instance.
func NewServer ¶
func NewServer(ctx context.Context, bs *BuilderServer) *Server
NewServer creates a new Windows server on GCE.
func (*Server) DeleteInstance ¶
func (s *Server) DeleteInstance(bs *BuilderServer) error
DeleteInstance stops a Windows VM on GCE.
type WindowsPasswordConfig ¶
type WindowsPasswordConfig struct { UserName string `json:"userName"` Modulus string `json:"modulus"` Exponent string `json:"exponent"` Email string `json:"email"` ExpireOn time.Time `json:"expireOn"` // contains filtered or unexported fields }
WindowsPasswordConfig stores metadata to be sent to GCE.
type WindowsPasswordResponse ¶
type WindowsPasswordResponse struct { UserName string `json:"userName"` PasswordFound bool `json:"passwordFound"` EncryptedPassword string `json:"encryptedPassword"` Modulus string `json:"modulus"` Exponent string `json:"exponent"` ErrorMessage string `json:"errorMessage"` }
WindowsPasswordResponse stores data received from GCE.
Click to show internal directories.
Click to hide internal directories.