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

Function instanceV1HasSSL

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

Source from the content-addressed store, hash-verified

136};
137
138export const instanceV1HasSSL = (
139 instanceOrEngine: Instance | InstanceResource | Engine
140): boolean => {
141 const engine = engineOfInstanceV1(instanceOrEngine);
142 return [
143 Engine.CLICKHOUSE,
144 Engine.MYSQL,
145 Engine.TIDB,
146 Engine.POSTGRES,
147 Engine.COCKROACHDB,
148 Engine.REDIS,
149 Engine.ORACLE,
150 Engine.MARIADB,
151 Engine.OCEANBASE,
152 Engine.STARROCKS,
153 Engine.DORIS,
154 Engine.MONGODB,
155 Engine.ELASTICSEARCH,
156 Engine.MSSQL,
157 Engine.CASSANDRA,
158 Engine.TRINO,
159 ].includes(engine);
160};
161
162export const instanceV1HasSSH = (
163 instanceOrEngine: Instance | InstanceResource | Engine

Callers 1

useInstanceSpecsFunction · 0.90

Calls 1

engineOfInstanceV1Function · 0.85

Tested by

no test coverage detected