MCPcopy Create free account
hub / github.com/astercloud/aster / SetSecurityLevel

Method SetSecurityLevel

pkg/sandbox/local.go:879–884  ·  view source on GitHub ↗

SetSecurityLevel 设置安全级别

(level SecurityLevel)

Source from the content-addressed store, hash-verified

877
878// SetSecurityLevel 设置安全级别
879func (ls *LocalSandbox) SetSecurityLevel(level SecurityLevel) {
880 ls.securityLevel = level
881 sandboxLogger.Info(context.Background(), "Security level changed", map[string]any{
882 "level": level,
883 })
884}
885
886// GetSecurityLevel 获取安全级别
887func (ls *LocalSandbox) GetSecurityLevel() SecurityLevel {

Callers 1

Calls 1

InfoMethod · 0.65

Tested by 1