file

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileRelatedTools

func GetFileRelatedTools(workspace string) ([]tool.Tool, error)

func NewCreateFile

func NewCreateFile(opts ...Option) (tool.Tool, error)

func NewCreateFolder

func NewCreateFolder(opts ...Option) (tool.Tool, error)

func NewDeleteFile

func NewDeleteFile(opts ...Option) (tool.Tool, error)

func NewDeleteFolder

func NewDeleteFolder(opts ...Option) (tool.Tool, error)

func NewListFolder

func NewListFolder(opts ...Option) (tool.Tool, error)

func NewModifyFile

func NewModifyFile(opts ...Option) (tool.Tool, error)

func NewReadFile

func NewReadFile(opts ...Option) (tool.Tool, error)

func NewRenameFile

func NewRenameFile(opts ...Option) (tool.Tool, error)

func NewRenameFolder

func NewRenameFolder(opts ...Option) (tool.Tool, error)

Types

type CreateFile

type CreateFile struct {
	Workspace string
}

func (*CreateFile) Call

func (t *CreateFile) Call(_ context.Context, input string) (string, error)

func (*CreateFile) Description

func (t *CreateFile) Description() string

func (*CreateFile) Name

func (t *CreateFile) Name() string

func (*CreateFile) Schema

func (t *CreateFile) Schema() *tool.PropertiesSchema

func (*CreateFile) Strict

func (t *CreateFile) Strict() bool

type CreateFolder

type CreateFolder struct {
	Workspace string
}

func (*CreateFolder) Call

func (t *CreateFolder) Call(_ context.Context, input string) (string, error)

func (*CreateFolder) Description

func (t *CreateFolder) Description() string

func (*CreateFolder) Name

func (t *CreateFolder) Name() string

func (*CreateFolder) Schema

func (t *CreateFolder) Schema() *tool.PropertiesSchema

func (*CreateFolder) Strict

func (t *CreateFolder) Strict() bool

type DeleteFile

type DeleteFile struct {
	Workspace string
}

func (*DeleteFile) Call

func (t *DeleteFile) Call(_ context.Context, input string) (string, error)

func (*DeleteFile) Description

func (t *DeleteFile) Description() string

func (*DeleteFile) Name

func (t *DeleteFile) Name() string

func (*DeleteFile) Schema

func (t *DeleteFile) Schema() *tool.PropertiesSchema

func (*DeleteFile) Strict

func (t *DeleteFile) Strict() bool

type DeleteFolder

type DeleteFolder struct {
	Workspace string
}

func (*DeleteFolder) Call

func (t *DeleteFolder) Call(_ context.Context, input string) (string, error)

func (*DeleteFolder) Description

func (t *DeleteFolder) Description() string

func (*DeleteFolder) Name

func (t *DeleteFolder) Name() string

func (*DeleteFolder) Schema

func (t *DeleteFolder) Schema() *tool.PropertiesSchema

func (*DeleteFolder) Strict

func (t *DeleteFolder) Strict() bool

type Factory

type Factory func(...Option) (tool.Tool, error)

type ListFolder

type ListFolder struct {
	Workspace string
}

func (*ListFolder) Call

func (t *ListFolder) Call(_ context.Context, input string) (string, error)

func (*ListFolder) Description

func (t *ListFolder) Description() string

func (*ListFolder) Name

func (t *ListFolder) Name() string

func (*ListFolder) Schema

func (t *ListFolder) Schema() *tool.PropertiesSchema

func (*ListFolder) Strict

func (t *ListFolder) Strict() bool

type ModifyFile

type ModifyFile struct {
	Workspace string
}

func (*ModifyFile) Call

func (t *ModifyFile) Call(_ context.Context, input string) (string, error)

func (*ModifyFile) Description

func (t *ModifyFile) Description() string

func (*ModifyFile) Name

func (t *ModifyFile) Name() string

func (*ModifyFile) Schema

func (t *ModifyFile) Schema() *tool.PropertiesSchema

func (*ModifyFile) Strict

func (t *ModifyFile) Strict() bool

type Option

type Option func(*Options)

func WithWorkspace

func WithWorkspace(workspace string) Option

type Options

type Options struct {
	Workspace string
}

type ReadFile

type ReadFile struct {
	Workspace string
}

func (*ReadFile) Call

func (t *ReadFile) Call(_ context.Context, input string) (string, error)

func (*ReadFile) Description

func (t *ReadFile) Description() string

func (*ReadFile) Name

func (t *ReadFile) Name() string

func (*ReadFile) Schema

func (t *ReadFile) Schema() *tool.PropertiesSchema

func (*ReadFile) Strict

func (t *ReadFile) Strict() bool

type RenameFile

type RenameFile struct {
	Workspace string
}

func (*RenameFile) Call

func (t *RenameFile) Call(_ context.Context, input string) (string, error)

func (*RenameFile) Description

func (t *RenameFile) Description() string

func (*RenameFile) Name

func (t *RenameFile) Name() string

func (*RenameFile) Schema

func (t *RenameFile) Schema() *tool.PropertiesSchema

func (*RenameFile) Strict

func (t *RenameFile) Strict() bool

type RenameFolder

type RenameFolder struct {
	Workspace string
}

func (*RenameFolder) Call

func (t *RenameFolder) Call(_ context.Context, input string) (string, error)

func (*RenameFolder) Description

func (t *RenameFolder) Description() string

func (*RenameFolder) Name

func (t *RenameFolder) Name() string

func (*RenameFolder) Schema

func (t *RenameFolder) Schema() *tool.PropertiesSchema

func (*RenameFolder) Strict

func (t *RenameFolder) Strict() bool

Jump to

Keyboard shortcuts

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