MCPcopy Create free account
hub / github.com/bytebase/bytebase / instanceV1HasSSH

Function instanceV1HasSSH

frontend/src/utils/v1/instance.ts:162–174  ·  view source on GitHub ↗
(
  instanceOrEngine: Instance | InstanceResource | Engine
)

Source from the content-addressed store, hash-verified

160};
161
162export const instanceV1HasSSH = (
163 instanceOrEngine: Instance | InstanceResource | Engine
164): boolean => {
165 const engine = engineOfInstanceV1(instanceOrEngine);
166 return [
167 Engine.MYSQL,
168 Engine.TIDB,
169 Engine.MARIADB,
170 Engine.OCEANBASE,
171 Engine.POSTGRES,
172 Engine.REDIS,
173 ].includes(engine);
174};
175
176export const instanceV1HasExtraParameters = (
177 instanceOrEngine: Instance | InstanceResource | Engine

Callers 1

useInstanceSpecsFunction · 0.90

Calls 1

engineOfInstanceV1Function · 0.85

Tested by

no test coverage detected