Documentation ¶
Index ¶
- Variables
- func BootJobExtraView(request service.Request, pluginContext pluginctx.Context, ...) error
- func BuildBootInvalidSecretView(request service.Request, pluginContext pluginctx.Context, ...) error
- func BuildBootPipelinesView(request service.Request, pluginContext pluginctx.Context) (component.Component, error)
- func BuildFailedReleasePipelinesView(request service.Request, pluginContext pluginctx.Context) (component.Component, error)
- func BuildJobsLogViewForPath(request service.Request, pluginContext pluginctx.Context, path, jobName string) (component.Component, error)
- func BuildJobsViewForPath(request service.Request, pluginContext pluginctx.Context, path string) (component.Component, error)
- func BuildJobsViewLogsForPathAndSelector(request service.Request, pluginContext pluginctx.Context, path, jobName string, ...) (component.Component, error)
- func BuildNoBootSecretView(request service.Request, pluginContext pluginctx.Context, ...) error
- func BuildOverview(request service.Request, pluginContext pluginctx.Context) (component.Component, error)
- func BuildWorkspacesView(request service.Request, ws []workspaces.WorkspaceOctant) (component.Component, error)
- func HealthView(request service.Request, _ pluginctx.Context) (component.Component, error)
- func JobConfirmation(title string) component.ButtonOption
- func RunCommandTitleMarkdown(secret *corev1.Secret) string
- func ToJobIcon(r *batchv1.Job) string
- func ToJobName(r *batchv1.Job) component.Component
- func ToJobPods(r *batchv1.Job) component.Component
- func ToWorkspaceName(r *workspaces.WorkspaceOctant) component.Component
- func ToWorkspaceSort(r *workspaces.Workspace, idx int) component.Component
- func ToWorkspaceSource(r *workspaces.Workspace) component.Component
- type JobViewConfig
- type ViewInfo
- type WorkspacesViewConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JobsViewConfigs = map[string]*JobViewConfig{ admin.BootJobsPath: { ActionName: actions.TriggerBootJob, ActionResourceName: "jx-boot", Title: "Boot Jobs", Selector: labels.Set{ "app": "jx-boot", }, }, admin.GCPipelineJobsPath: { Title: "GC Pipeline Jobs", Selector: labels.Set{ "app": "gcactivities", }, }, admin.GCPodJobsPath: { Title: "GC Preview Jobs", Selector: labels.Set{ "app": "gcpods", }, }, admin.GCPreviewJobsPath: { Title: "GC Preview Jobs", Selector: labels.Set{ "app": "gcpreviews", }, }, admin.UpgradeJobsPath: { Title: "Upgrade Jobs", Selector: labels.Set{ "app": "jenkins-x-upgrade-processor", }, }, } )
Functions ¶
func BootJobExtraView ¶
func BootJobExtraView(request service.Request, pluginContext pluginctx.Context, cr *component.ContentResponse, view component.Component) error
BootJobExtraView lets render the output of any previous commands
func BuildBootInvalidSecretView ¶
func BuildBootInvalidSecretView(request service.Request, pluginContext pluginctx.Context, cr *component.ContentResponse, gitURL string) error
BuildBootInvalidSecretView view that the secrets are not yet valid
func BuildBootPipelinesView ¶
func BuildJobsLogViewForPath ¶
func BuildJobsViewForPath ¶
func BuildNoBootSecretView ¶
func BuildNoBootSecretView(request service.Request, pluginContext pluginctx.Context, cr *component.ContentResponse) error
BuildNoBootSecretView view that there is no boot secret
func BuildOverview ¶
func BuildWorkspacesView ¶
func BuildWorkspacesView(request service.Request, ws []workspaces.WorkspaceOctant) (component.Component, error)
func HealthView ¶
func JobConfirmation ¶
func JobConfirmation(title string) component.ButtonOption
JobConfirmation for title
func RunCommandTitleMarkdown ¶
func ToWorkspaceName ¶
func ToWorkspaceName(r *workspaces.WorkspaceOctant) component.Component
func ToWorkspaceSort ¶
func ToWorkspaceSort(r *workspaces.Workspace, idx int) component.Component
func ToWorkspaceSource ¶
func ToWorkspaceSource(r *workspaces.Workspace) component.Component
Types ¶
type JobViewConfig ¶
type ViewInfo ¶
type ViewInfo struct { Title string Path string Factory func(request service.Request, pluginContext pluginctx.Context) (component.Component, error) Width int }
ViewInfo represents the information for views
type WorkspacesViewConfig ¶
type WorkspacesViewConfig struct { TeamFilter component.TableFilter EnvironmentFilter component.TableFilter }
func (*WorkspacesViewConfig) TableFilters ¶
func (f *WorkspacesViewConfig) TableFilters() []*component.TableFilter
Click to show internal directories.
Click to hide internal directories.