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

Method Equal

coderd/database/modelmethods.go:949–953  ·  view source on GitHub ↗
(w2 WorkspaceIdentity)

Source from the content-addressed store, hash-verified

947}
948
949func (w WorkspaceIdentity) Equal(w2 WorkspaceIdentity) bool {
950 return w.ID == w2.ID && w.OwnerID == w2.OwnerID && w.OrganizationID == w2.OrganizationID &&
951 w.TemplateID == w2.TemplateID && w.Name == w2.Name && w.OwnerUsername == w2.OwnerUsername &&
952 w.TemplateName == w2.TemplateName && w.AutostartSchedule == w2.AutostartSchedule
953}
954
955func WorkspaceIdentityFromWorkspace(w Workspace) WorkspaceIdentity {
956 return WorkspaceIdentity{

Callers 1

ReportConnectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected