builder

package
v0.0.0-...-eb8cdb2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

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

type Remote struct {
	Hostname   *string
	Username   *string
	Password   *string
	BucketName *string
}

Remote represents a remote Windows server.

func (*Remote) Copy

func (r *Remote) Copy(inputPath string, copyTimeoutMin int) error

Copy workspace from Linux to Windows.

func (*Remote) Run

func (r *Remote) Run(command string, runTimeoutMin int) error

func (*Remote) RunDef

func (r *Remote) RunDef(command string) error

Run a command on the Windows remote.

func (*Remote) Wait

func (r *Remote) Wait() error

Wait for server to be available.

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.

Jump to

Keyboard shortcuts

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