MCPcopy Index your code
hub / github.com/coder/coder / Equals

Method Equals

codersdk/workspaceagents.go:469–481  ·  view source on GitHub ↗
(other WorkspaceAgentDevcontainer)

Source from the content-addressed store, hash-verified

467}
468
469func (d WorkspaceAgentDevcontainer) Equals(other WorkspaceAgentDevcontainer) bool {
470 return d.ID == other.ID &&
471 d.Name == other.Name &&
472 d.WorkspaceFolder == other.WorkspaceFolder &&
473 d.SubagentID == other.SubagentID &&
474 d.Status == other.Status &&
475 d.Dirty == other.Dirty &&
476 (d.Container == nil && other.Container == nil ||
477 (d.Container != nil && other.Container != nil && d.Container.ID == other.Container.ID)) &&
478 (d.Agent == nil && other.Agent == nil ||
479 (d.Agent != nil && other.Agent != nil && *d.Agent == *other.Agent)) &&
480 d.Error == other.Error
481}
482
483// IsTerraformDefined returns true if this devcontainer has resources defined
484// in Terraform.

Callers 3

updateContainersMethod · 0.80

Calls

no outgoing calls

Tested by 1