Help us shape the future of Go! Take the 2026 Go Developer Survey

consoleui

package
v0.52.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomConsole added in v0.17.0

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

CustomConsole is immutable once built: WithParams returns a new console rather than mutating the receiver, so a console shared between concurrent requests cannot be reconfigured under them.

func NewCustomConsole added in v0.26.0

func NewCustomConsole(pacInfo *info.PacOpts) *CustomConsole

NewCustomConsole snapshots the settings it needs so a later change to the caller's PacOpts cannot alter the URLs this console renders.

func (*CustomConsole) DetailURL added in v0.17.0

func (o *CustomConsole) DetailURL(pr *tektonv1.PipelineRun) string

func (*CustomConsole) GetName added in v0.17.0

func (o *CustomConsole) GetName() string

func (*CustomConsole) NamespaceURL added in v0.22.0

func (o *CustomConsole) NamespaceURL(pr *tektonv1.PipelineRun) string

func (*CustomConsole) TaskLogURL added in v0.17.0

func (o *CustomConsole) TaskLogURL(pr *tektonv1.PipelineRun, taskRunStatus *tektonv1.PipelineRunTaskRunStatus) string

func (*CustomConsole) UI added in v0.17.0

func (*CustomConsole) URL added in v0.17.0

func (o *CustomConsole) URL() string

func (*CustomConsole) WithParams added in v0.52.0

func (o *CustomConsole) WithParams(mt map[string]string) Interface

WithParams returns a copy of the console carrying its own extra substitution parameters, leaving the receiver and the caller's map untouched.

type FallBackConsole

type FallBackConsole struct{}

func (FallBackConsole) DetailURL

func (f FallBackConsole) DetailURL(_ *tektonv1.PipelineRun) string

func (FallBackConsole) GetName added in v0.15.0

func (f FallBackConsole) GetName() string

func (FallBackConsole) NamespaceURL added in v0.22.0

func (f FallBackConsole) NamespaceURL(_ *tektonv1.PipelineRun) string

func (FallBackConsole) TaskLogURL

func (FallBackConsole) UI

func (FallBackConsole) URL

func (f FallBackConsole) URL() string

func (FallBackConsole) WithParams added in v0.52.0

func (f FallBackConsole) WithParams(_ map[string]string) Interface

type Interface

type Interface interface {
	DetailURL(pr *tektonv1.PipelineRun) string
	TaskLogURL(pr *tektonv1.PipelineRun, taskRunStatusstatus *tektonv1.PipelineRunTaskRunStatus) string
	NamespaceURL(pr *tektonv1.PipelineRun) string
	UI(ctx context.Context, kdyn dynamic.Interface) error
	URL() string
	GetName() string
	// WithParams returns a console scoped to the given extra substitution
	// parameters. The receiver is left untouched so a console shared between
	// concurrent requests never sees another request's parameters.
	//
	// This deliberately replaces the earlier SetParams: a setter on a console
	// shared by every request cannot express per-request ownership, so keeping
	// it would leave the same defect reachable.
	WithParams(mt map[string]string) Interface
}

func New

func New(ctx context.Context, kdyn dynamic.Interface, _ *info.Info) Interface

type OpenshiftConsole

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

func (*OpenshiftConsole) DetailURL

func (o *OpenshiftConsole) DetailURL(pr *tektonv1.PipelineRun) string

func (*OpenshiftConsole) GetName added in v0.15.0

func (o *OpenshiftConsole) GetName() string

func (*OpenshiftConsole) NamespaceURL added in v0.22.0

func (o *OpenshiftConsole) NamespaceURL(pr *tektonv1.PipelineRun) string

func (*OpenshiftConsole) TaskLogURL

func (o *OpenshiftConsole) TaskLogURL(pr *tektonv1.PipelineRun, taskRunStatus *tektonv1.PipelineRunTaskRunStatus) string

func (*OpenshiftConsole) UI

UI use dynamic client to get the route of the openshift console where we can point to.

func (*OpenshiftConsole) URL

func (o *OpenshiftConsole) URL() string

func (*OpenshiftConsole) WithParams added in v0.52.0

func (o *OpenshiftConsole) WithParams(_ map[string]string) Interface

type TektonDashboard

type TektonDashboard struct {
	BaseURL string
}

func (*TektonDashboard) DetailURL

func (t *TektonDashboard) DetailURL(pr *tektonv1.PipelineRun) string

func (*TektonDashboard) GetName added in v0.15.0

func (t *TektonDashboard) GetName() string

func (*TektonDashboard) NamespaceURL added in v0.22.0

func (t *TektonDashboard) NamespaceURL(pr *tektonv1.PipelineRun) string

func (*TektonDashboard) TaskLogURL

func (t *TektonDashboard) TaskLogURL(pr *tektonv1.PipelineRun, taskRunStatus *tektonv1.PipelineRunTaskRunStatus) string

func (*TektonDashboard) UI

func (*TektonDashboard) URL

func (t *TektonDashboard) URL() string

func (*TektonDashboard) WithParams added in v0.52.0

func (t *TektonDashboard) WithParams(_ map[string]string) Interface

Jump to

Keyboard shortcuts

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