MCPcopy Create free account
hub / github.com/cloudbase/garm / Instance

Struct Instance

params/params.go:290–380  ·  view source on GitHub ↗

swagger:model Instance

Source from the content-addressed store, hash-verified

288
289// swagger:model Instance
290type Instance struct {
291 // ID is the database ID of this instance.
292 ID string `json:"id,omitempty"`
293
294 // PeoviderID is the unique ID the provider associated
295 // with the compute instance. We use this to identify the
296 // instance in the provider.
297 ProviderID string `json:"provider_id,omitempty"`
298
299 // ProviderName is the name of the IaaS where the instance was
300 // created.
301 ProviderName string `json:"provider_name"`
302
303 // AgentID is the github runner agent ID.
304 AgentID int64 `json:"agent_id,omitempty"`
305
306 // Name is the name associated with an instance. Depending on
307 // the provider, this may or may not be useful in the context of
308 // the provider, but we can use it internally to identify the
309 // instance.
310 Name string `json:"name,omitempty"`
311
312 // OSType is the operating system type. For now, only Linux and
313 // Windows are supported.
314 OSType commonParams.OSType `json:"os_type,omitempty"`
315
316 // OSName is the name of the OS. Eg: ubuntu, centos, etc.
317 OSName string `json:"os_name,omitempty"`
318
319 // OSVersion is the version of the operating system.
320 OSVersion string `json:"os_version,omitempty"`
321
322 // OSArch is the operating system architecture.
323 OSArch commonParams.OSArch `json:"os_arch,omitempty"`
324
325 // Addresses is a list of IP addresses the provider reports
326 // for this instance.
327 Addresses []commonParams.Address `json:"addresses,omitempty"`
328
329 // Status is the status of the instance inside the provider (eg: running, stopped, etc)
330 Status commonParams.InstanceStatus `json:"status,omitempty"`
331
332 // RunnerStatus is the github runner status as it appears on GitHub.
333 RunnerStatus RunnerStatus `json:"runner_status,omitempty"`
334
335 // PoolID is the ID of the garm pool to which a runner belongs.
336 PoolID string `json:"pool_id,omitempty"`
337
338 // ScaleSetID is the ID of the scale set to which a runner belongs.
339 ScaleSetID uint `json:"scale_set_id,omitempty"`
340
341 // ProviderFault holds any error messages captured from the IaaS provider that is
342 // responsible for managing the lifecycle of the runner.
343 ProviderFault []byte `json:"provider_fault,omitempty"`
344
345 // StatusMessages is a list of status messages sent back by the runner as it sets itself
346 // up.
347 StatusMessages []StatusMessage `json:"status_messages,omitempty"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected