skillpackages

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotInstalled = errors.New("skill Package is not installed")

Functions

This section is empty.

Types

type Installation

type Installation struct {
	ID                string    `json:"id" validate:"required"`
	BotID             string    `json:"bot_id" validate:"required"`
	WorkspaceTargetID string    `json:"workspace_target_id" validate:"required"`
	RegistryID        string    `json:"registry_id" validate:"required"`
	PackageID         string    `json:"package_id" validate:"required"`
	Revision          string    `json:"revision" validate:"required"`
	InstalledAt       time.Time `json:"installed_at" validate:"required"`
	UpdatedAt         time.Time `json:"updated_at" validate:"required"`
}

type Requirement

type Requirement struct {
	RegistryID string
	PackageID  string
	Revision   string
}

type Service

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

func NewService

func NewService(queries Store) *Service

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, botID, installationID string) (Installation, error)

func (*Service) Get

func (s *Service) Get(ctx context.Context, botID, workspaceTargetID, registryID, packageID string) (Installation, error)

func (*Service) GetByID

func (s *Service) GetByID(ctx context.Context, botID, installationID string) (Installation, error)

func (*Service) List

func (s *Service) List(ctx context.Context, botID string) ([]Installation, error)

func (*Service) ListForTarget

func (s *Service) ListForTarget(ctx context.Context, botID, workspaceTargetID string) ([]Installation, error)

func (*Service) Record

func (s *Service) Record(ctx context.Context, botID, workspaceTargetID string, requirement Requirement) (Installation, error)

Jump to

Keyboard shortcuts

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