Documentation
¶
Index ¶
- type CustomConsole
- func (o *CustomConsole) DetailURL(pr *tektonv1.PipelineRun) string
- func (o *CustomConsole) GetName() string
- func (o *CustomConsole) NamespaceURL(pr *tektonv1.PipelineRun) string
- func (o *CustomConsole) TaskLogURL(pr *tektonv1.PipelineRun, taskRunStatus *tektonv1.PipelineRunTaskRunStatus) string
- func (o *CustomConsole) UI(_ context.Context, _ dynamic.Interface) error
- func (o *CustomConsole) URL() string
- func (o *CustomConsole) WithParams(mt map[string]string) Interface
- type FallBackConsole
- func (f FallBackConsole) DetailURL(_ *tektonv1.PipelineRun) string
- func (f FallBackConsole) GetName() string
- func (f FallBackConsole) NamespaceURL(_ *tektonv1.PipelineRun) string
- func (f FallBackConsole) TaskLogURL(_ *tektonv1.PipelineRun, _ *tektonv1.PipelineRunTaskRunStatus) string
- func (f FallBackConsole) UI(_ context.Context, _ dynamic.Interface) error
- func (f FallBackConsole) URL() string
- func (f FallBackConsole) WithParams(_ map[string]string) Interface
- type Interface
- type OpenshiftConsole
- func (o *OpenshiftConsole) DetailURL(pr *tektonv1.PipelineRun) string
- func (o *OpenshiftConsole) GetName() string
- func (o *OpenshiftConsole) NamespaceURL(pr *tektonv1.PipelineRun) string
- func (o *OpenshiftConsole) TaskLogURL(pr *tektonv1.PipelineRun, taskRunStatus *tektonv1.PipelineRunTaskRunStatus) string
- func (o *OpenshiftConsole) UI(ctx context.Context, kdyn dynamic.Interface) error
- func (o *OpenshiftConsole) URL() string
- func (o *OpenshiftConsole) WithParams(_ map[string]string) Interface
- type TektonDashboard
- func (t *TektonDashboard) DetailURL(pr *tektonv1.PipelineRun) string
- func (t *TektonDashboard) GetName() string
- func (t *TektonDashboard) NamespaceURL(pr *tektonv1.PipelineRun) string
- func (t *TektonDashboard) TaskLogURL(pr *tektonv1.PipelineRun, taskRunStatus *tektonv1.PipelineRunTaskRunStatus) string
- func (t *TektonDashboard) UI(_ context.Context, _ dynamic.Interface) error
- func (t *TektonDashboard) URL() string
- func (t *TektonDashboard) WithParams(_ map[string]string) Interface
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) 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 (f FallBackConsole) TaskLogURL(_ *tektonv1.PipelineRun, _ *tektonv1.PipelineRunTaskRunStatus) string
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
}
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) URL ¶
func (t *TektonDashboard) URL() string
func (*TektonDashboard) WithParams ¶ added in v0.52.0
func (t *TektonDashboard) WithParams(_ map[string]string) Interface
Click to show internal directories.
Click to hide internal directories.