client

package
v0.1.18-rc13 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 8 Imported by: 0

README

internal/client

Shared control-plane API client adapters used by UI and command packages.

  • lists.go owns migration and run list transport for CLI and TUI consumers.
  • jobs.go owns paginated job-list transport and filters for CLI and TUI consumers.
  • tui/ contains TUI-only aggregate adapters.

Documentation

Overview

Package client owns shared control-plane API commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListJobsCommand

type ListJobsCommand struct {
	Client  *http.Client
	BaseURL *url.URL
	Limit   int32
	Offset  int32
	RunID   *domaintypes.RunID
	NodeID  *domaintypes.NodeID
	Status  *domaintypes.JobStatus
}

func (ListJobsCommand) Run

type ListMigsCommand

type ListMigsCommand struct {
	Client        *http.Client
	BaseURL       *url.URL
	Limit         int32
	Offset        int32
	NameSubstring *string
	Archived      *bool
	RepoURL       *string
}

ListMigsCommand lists migration projects with optional filters.

func (ListMigsCommand) Run

Run executes GET /v1/migs.

type ListNodeDiagnosticsCommand

type ListNodeDiagnosticsCommand struct {
	Client  *http.Client
	BaseURL *url.URL
	NodeID  domaintypes.NodeID
}

func (ListNodeDiagnosticsCommand) Run

type ListNodesCommand

type ListNodesCommand struct {
	Client  *http.Client
	BaseURL *url.URL
}

func (ListNodesCommand) Run

type ListRunsCommand

type ListRunsCommand struct {
	Client    *http.Client
	BaseURL   *url.URL
	Limit     int32
	Offset    int32
	RepoURL   string
	CreatedBy string
	All       bool
}

ListRunsCommand lists runs with optional filters.

func (ListRunsCommand) Run

Run executes GET /v1/runs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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