MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / entryptionKey4Workspace

Function entryptionKey4Workspace

cli/cmd/common/workspace.go:443–450  ·  view source on GitHub ↗
(workspaceInfo workspace.WorkspaceInfo)

Source from the content-addressed store, hash-verified

441}
442
443func entryptionKey4Workspace(workspaceInfo workspace.WorkspaceInfo) {
444 if workspaceInfo.Remote.Password != "" {
445 common.SmartIDELog.AddEntryptionKey(workspaceInfo.Remote.Password)
446 }
447 if workspaceInfo.K8sInfo.KubeConfigContent != "" {
448 common.SmartIDELog.AddEntryptionKeyWithReservePart(workspaceInfo.K8sInfo.KubeConfigContent)
449 }
450}
451
452// 从命令行中加载 git 相关信息
453func loadGitInfo4Workspace(workspaceInfo *workspace.WorkspaceInfo, cmd *cobra.Command, args []string) error {

Callers

nothing calls this directly

Calls 2

AddEntryptionKeyMethod · 0.80

Tested by

no test coverage detected