MCPcopy
hub / github.com/github/gh-ost / IsDetached

Method IsDetached

go/mysql/instance_key.go:90–92  ·  view source on GitHub ↗

IsDetached returns 'true' when this hostname is logically "detached"

()

Source from the content-addressed store, hash-verified

88
89// IsDetached returns 'true' when this hostname is logically "detached"
90func (ik *InstanceKey) IsDetached() bool {
91 return strings.HasPrefix(ik.Hostname, detachHint)
92}
93
94// IsValid uses simple heuristics to see whether this key represents an actual instance
95func (ik *InstanceKey) IsValid() bool {

Callers 3

IsValidMethod · 0.95
DetachedKeyMethod · 0.95
ReattachedKeyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected