projectresource

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 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 ProjectResource

type ProjectResource struct {
	// contains filtered or unexported fields
}

ProjectResource implements the Resource interface for scaffolding new Go CLI projects. It is a degenerate resource: only Create is meaningful. List returns an empty slice and Get returns an error.

func New

func New(fs dal.FileSystem, exec dal.Executor) *ProjectResource

New creates a ProjectResource with the given filesystem and executor.

func (*ProjectResource) Create

func (p *ProjectResource) Create(ctx *agentops.AppContext, slug string, opts map[string]string) (*resource.Record, error)

Create scaffolds a new Go CLI project directory. slug is the project name. opts can contain "module", "mode", and "base_dir".

func (*ProjectResource) Get

Get returns an error. Individual project lookup is not supported.

func (*ProjectResource) List

List returns an empty slice. Projects are not tracked after creation.

func (*ProjectResource) Schema

Schema returns the resource schema for projects.

Jump to

Keyboard shortcuts

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