disk_storage

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskStorage

type DiskStorage struct {
	Path string
}

func NewDiskStorage

func NewDiskStorage(path string) *DiskStorage

func (*DiskStorage) CommitSkill

func (s *DiskStorage) CommitSkill(agentName string, skillFolder string) (string, error)

CommitSkill moves a skill from temp to the permanent skills directory

func (*DiskStorage) CreateAgentDataDirectory

func (s *DiskStorage) CreateAgentDataDirectory(config *agent_config.AgentConfig) error

func (*DiskStorage) DeleteSavedSkill

func (s *DiskStorage) DeleteSavedSkill(agentName string, skillFolder string) error

DeleteSavedSkill removes a committed skill from the agent's skills directory

func (*DiskStorage) DeleteTempSkill

func (s *DiskStorage) DeleteTempSkill(agentName string, skillFolder string) error

DeleteTempSkill removes a skill from the agent's temp directory

func (*DiskStorage) UploadSkillToTemp

func (s *DiskStorage) UploadSkillToTemp(agentName string, zipData []byte, zipFileName string) (*agent_config.TempSkillUploadResponse, error)

UploadSkillToTemp extracts a skill zip file to the agent's temp directory

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL