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

Function NewStateBackend

pkg/backends/state.go:30–34  ·  view source on GitHub ↗

NewStateBackend 创建 StateBackend 实例

()

Source from the content-addressed store, hash-verified

28
29// NewStateBackend 创建 StateBackend 实例
30func NewStateBackend() *StateBackend {
31 return &StateBackend{
32 files: make(map[string]*FileData),
33 }
34}
35
36// ListInfo 实现 BackendProtocol.ListInfo
37func (b *StateBackend) ListInfo(ctx context.Context, path string) ([]FileInfo, error) {

Calls

no outgoing calls