ui

package
v0.19.783 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintBuildLogs

func PrintBuildLogs(logs []models.ServiceBuildLog)

func PrintDeployLogs

func PrintDeployLogs(log []models.ServiceDeployLog)

func PrintError

func PrintError(err error) error

func PrintJSON

func PrintJSON(data interface{})

func PrintJSONError

func PrintJSONError(err error) error

func PrintLn

func PrintLn(msg string)

func PrintLogsFromInterface

func PrintLogsFromInterface(log []interface{})

func PrintRaw

func PrintRaw(msg string)

func PrintSuccess

func PrintSuccess(msg string)

func PrintTOML

func PrintTOML(data interface{})

func PrintWarning

func PrintWarning(msg string)

Types

type CLIUserError

type CLIUserError struct {
	Msg string
}

func (*CLIUserError) Error

func (u *CLIUserError) Error() string

type Complete

type Complete struct {
	Error Error `json:"error"`
}

type CreateView

type CreateView struct {
	SpinnerView
	// contains filtered or unexported fields
}

func NewCreateView

func NewCreateView(model string, json bool) *CreateView

func (*CreateView) Fail

func (v *CreateView) Fail(err error) error

func (*CreateView) Start

func (v *CreateView) Start()

func (*CreateView) Success

func (v *CreateView) Success(id string)

type DeleteView

type DeleteView struct {
	SpinnerView
	// contains filtered or unexported fields
}

func NewDeleteView

func NewDeleteView(model string, id string) *DeleteView

func (*DeleteView) Fail

func (v *DeleteView) Fail(err error) error

func (*DeleteView) Start

func (v *DeleteView) Start()

func (*DeleteView) Success

func (v *DeleteView) Success()

func (*DeleteView) SuccessQueued

func (v *DeleteView) SuccessQueued()

type Error

type Error struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type GetView

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

func NewGetView

func NewGetView() *GetView

func (*GetView) Error

func (v *GetView) Error(err error) error

func (*GetView) Print

func (v *GetView) Print(msg string)

func (*GetView) Render

func (v *GetView) Render(data [][]string)

type ListView

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

func NewListView

func NewListView() *ListView

func (*ListView) Error

func (v *ListView) Error(err error) error

func (*ListView) Print

func (v *ListView) Print(msg string)

func (*ListView) Render

func (v *ListView) Render(data [][]string)

func (*ListView) RenderPaging

func (v *ListView) RenderPaging(data [][]string, offset, limit int, hasMore bool)

type Logs

type Logs struct {
	Open     interface{}
	State    State
	Terminal Terminal
	Complete Complete
}

type SpinnerView

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

func NewSpinnerView

func NewSpinnerView(json bool) *SpinnerView

func (*SpinnerView) Fail

func (v *SpinnerView) Fail(err error)

func (*SpinnerView) Start

func (v *SpinnerView) Start(text string)

func (*SpinnerView) Success

func (v *SpinnerView) Success(text string)

func (*SpinnerView) Update

func (v *SpinnerView) Update(text string)

type State

type State struct {
	Current string
}

type Terminal

type Terminal struct {
	Buffered bool
	Events   []struct {
		Line *struct {
			Msg string
		}
		Raw *struct {
			Data string
		}
		Step *struct {
			Msg    string
			Output string
		}
		Status *struct {
			Msg string
		}
	}
}

Directories

Path Synopsis
v3
action/run/steps
This run.go file contains a stub used to render the step component in a standalone way.
This run.go file contains a stub used to render the step component in a standalone way.
common
Package common provides utilities for v3 UI components.
Package common provides utilities for v3 UI components.

Jump to

Keyboard shortcuts

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