filesystem

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package filesystem lets the UI browse the server's directories — the browser sandbox cannot reveal absolute paths, but this process runs on the same machine the workflows do.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct{}

func NewAPI

func NewAPI() *API

func (*API) Browse

func (api *API) Browse(ctx context.Context, requester interface{}, request *BrowseRequest) (*BrowseResponse, error)

type BrowseRequest

type BrowseRequest struct {
	// Path to list; empty means the user's home directory.
	Path string `json:"path,omitempty"`
}

func (*BrowseRequest) Validate

func (r *BrowseRequest) Validate() error

type BrowseResponse

type BrowseResponse struct {
	Path        string           `json:"path"`
	Parent      string           `json:"parent,omitempty"`
	Directories []DirectoryEntry `json:"directories"`
}

type DirectoryEntry

type DirectoryEntry struct {
	Name string `json:"name"`
	Path string `json:"path"`
	// HasGit reports a .git entry — the UI badges repositories.
	HasGit bool `json:"has_git"`
}

Jump to

Keyboard shortcuts

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