Documentation
¶
Index ¶
Constants ¶
View Source
const ( TrustedFoldersConfigKey = "TRUSTED_FOLDERS" DisableTrustFlag = "disable-trust" )
Variables ¶
View Source
var SnykTrustPage string
Functions ¶
This section is empty.
Types ¶
type FolderTrust ¶
type FolderTrust struct {
// contains filtered or unexported fields
}
func NewFolderTrust ¶
func NewFolderTrust(logger *zerolog.Logger, config configuration.Configuration) *FolderTrust
func (*FolderTrust) AddTrustedFolder ¶
func (t *FolderTrust) AddTrustedFolder(folder string)
func (*FolderTrust) HandleTrust ¶
func (t *FolderTrust) HandleTrust(ctx context.Context, folderPath string, logger zerolog.Logger) (*mcp.CallToolResult, error)
func (*FolderTrust) IsFolderTrusted ¶
func (t *FolderTrust) IsFolderTrusted(folder string) bool
func (*FolderTrust) TrustedFolders ¶
func (t *FolderTrust) TrustedFolders() []string
Click to show internal directories.
Click to hide internal directories.