lifecycle

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package lifecycle owns the five-command component dependency lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListItem

type ListItem struct {
	Name      string                `json:"name"`
	Component string                `json:"component,omitempty"`
	Git       string                `json:"git"`
	Ref       string                `json:"ref,omitempty"`
	Commit    string                `json:"commit,omitempty"`
	Bindings  []manifest.Binding    `json:"bindings"`
	Agent     *manifest.LockedAgent `json:"agent,omitempty"`
	Surface   string                `json:"surface,omitempty"`
	Problems  []string              `json:"problems,omitempty"`
}

type Result

type Result struct {
	Name    string `json:"name"`
	Commit  string `json:"commit,omitempty"`
	Changed bool   `json:"changed"`
	Warning string `json:"warning,omitempty"`
	Error   string `json:"error,omitempty"`
}

type Service

type Service struct {
	Root     string
	Runner   gitx.Runner
	Adapters []adapter.Adapter
}

func (Service) Add

func (s Service) Add(ctx context.Context, source, name, ref, modulePath string) (Result, error)

func (Service) Init

func (s Service) Init(id, description string) error

func (Service) List

func (s Service) List(name string) ([]ListItem, error)

func (Service) Pull

func (s Service) Pull(ctx context.Context, only string) ([]Result, error)

func (Service) Remove

func (s Service) Remove(ctx context.Context, name string) (Result, error)

Jump to

Keyboard shortcuts

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