gwconfig

package
v10.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AccessToken                    string                 `json:"accessToken,omitempty"`
	CachesDir                      string                 `json:"cachesDir,omitempty"`
	Certificate                    string                 `json:"certificate,omitempty"`
	CheckForNewDeploymentEverySecs uint                   `json:"checkForNewDeploymentEverySecs,omitempty"`
	CleanUpTaskDirs                bool                   `json:"cleanUpTaskDirs"`
	ClientID                       string                 `json:"clientId,omitempty"`
	DeploymentID                   string                 `json:"deploymentId,omitempty"`
	DisableReboots                 bool                   `json:"disableReboots"`
	DownloadsDir                   string                 `json:"downloadsDir,omitempty"`
	IdleTimeoutSecs                uint                   `json:"idleTimeoutSecs,omitempty"`
	InstanceID                     string                 `json:"instanceId,omitempty"`
	InstanceType                   string                 `json:"instanceType,omitempty"`
	LiveLogCertificate             string                 `json:"livelogCertificate,omitempty"`
	LiveLogExecutable              string                 `json:"livelogExecutable,omitempty"`
	LiveLogGETPort                 uint16                 `json:"livelogGETPort,omitempty"`
	LiveLogKey                     string                 `json:"livelogKey,omitempty"`
	LiveLogPUTPort                 uint16                 `json:"livelogPUTPort,omitempty"`
	LiveLogSecret                  string                 `json:"livelogSecret,omitempty"`
	NumberOfTasksToRun             uint                   `json:"numberOfTasksToRun,omitempty"`
	SentryProject                  string                 `json:"sentryProject,omitempty"`
	PrivateIP                      net.IP                 `json:"privateIP,omitempty"`
	ProvisionerID                  string                 `json:"provisionerId,omitempty"`
	PublicIP                       net.IP                 `json:"publicIP,omitempty"`
	RefreshUrlsPrematurelySecs     uint                   `json:"refreshURLsPrematurelySecs,omitempty"`
	Region                         string                 `json:"region,omitempty"`
	RequiredDiskSpaceMegabytes     uint                   `json:"requiredDiskSpaceMegabytes,omitempty"`
	RunAfterUserCreation           string                 `json:"runAfterUserCreation,omitempty"`
	RunTasksAsCurrentUser          bool                   `json:"runTasksAsCurrentUser"`
	ShutdownMachineOnInternalError bool                   `json:"shutdownMachineOnInternalError"`
	ShutdownMachineOnIdle          bool                   `json:"shutdownMachineOnIdle"`
	SigningKeyLocation             string                 `json:"signingKeyLocation,omitempty"`
	Subdomain                      string                 `json:"subdomain,omitempty"`
	TasksDir                       string                 `json:"tasksDir,omitempty"`
	WorkerGroup                    string                 `json:"workerGroup,omitempty"`
	WorkerID                       string                 `json:"workerId,omitempty"`
	WorkerType                     string                 `json:"workerType,omitempty"`
	WorkerTypeMetadata             map[string]interface{} `json:"workerTypeMetadata,omitempty"`
}

Generic Worker config

func (*Config) MergeInJSON

func (c *Config) MergeInJSON(data []byte) error

func (*Config) Persist

func (c *Config) Persist(file string) error

writes config to json file

Jump to

Keyboard shortcuts

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