usecase

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddInput

type AddInput struct {
	Source          string
	Targets         []string
	Scope           string
	AutoUpdate      *bool
	AdoptNewTargets string
	AllowPrerelease *bool
	DryRun          bool
}

type NamedDryRunInput

type NamedDryRunInput struct {
	Name   string
	Target string
	DryRun bool
}

type Service

type Service struct {
	SourceResolver       ports.SourceResolver
	ManifestLoader       ports.ManifestLoader
	StateStore           ports.StateStore
	WorkspaceLock        ports.WorkspaceLockStore
	LockManager          ports.LockManager
	Journal              ports.OperationJournal
	Evidence             ports.EvidenceRegistry
	Adapters             map[domain.TargetID]ports.TargetAdapter
	CurrentWorkspaceRoot string
	Now                  func() time.Time
}

func (Service) Add

func (s Service) Add(ctx context.Context, in AddInput) (domain.Report, error)

func (Service) Disable

func (s Service) Disable(ctx context.Context, in NamedDryRunInput) (domain.Report, error)

func (Service) Doctor

func (s Service) Doctor(ctx context.Context) (domain.Report, error)

func (Service) Enable

func (s Service) Enable(ctx context.Context, in NamedDryRunInput) (domain.Report, error)

func (Service) List

func (s Service) List(ctx context.Context) (domain.Report, error)

func (Service) Remove

func (s Service) Remove(ctx context.Context, in NamedDryRunInput) (domain.Report, error)

func (Service) Repair

func (s Service) Repair(ctx context.Context, in NamedDryRunInput) (domain.Report, error)

func (Service) Sync

func (s Service) Sync(ctx context.Context, dryRun bool) (domain.Report, error)

func (Service) Update

func (s Service) Update(ctx context.Context, in NamedDryRunInput) (domain.Report, error)

func (Service) UpdateAll

func (s Service) UpdateAll(ctx context.Context, dryRun bool) (domain.Report, error)

Source Files

Jump to

Keyboard shortcuts

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