Documentation ¶
Index ¶
- Constants
- Variables
- func AddLoadMoreOptionToList(items []list.Item) []list.Item
- func GetBranchFromPrompt(branches []apiclient.GitBranch, workspaceOrder int, ...) (*apiclient.GitBranch, string)
- func GetBuildFromPrompt(builds []apiclient.BuildDTO, actionVerb string) *apiclient.BuildDTO
- func GetGitProviderConfigFromPrompt(params GetGitProviderConfigParams) *apiclient.GitProvider
- func GetNamespaceIdFromPrompt(namespaces []apiclient.GitNamespace, workspaceOrder int, ...) (string, string)
- func GetPrebuildFromPrompt(prebuilds []apiclient.PrebuildDTO, actionVerb string) *apiclient.PrebuildDTO
- func GetProviderIdFromPrompt(gitProviders []gitprovider_view.GitProviderView, workspaceOrder int, ...) string
- func GetPullRequestFromPrompt(pullRequests []apiclient.GitPullRequest, workspaceOrder int, ...) (*apiclient.GitPullRequest, string)
- func GetRepositoryFromPrompt(repositories []apiclient.GitRepository, workspaceOrder int, ...) (*apiclient.GitRepository, string)
- func GetSampleFromPrompt(samples []apiclient.Sample) *apiclient.Sample
- func GetWorkspaceRequestFromPrompt(workspaces *[]apiclient.CreateWorkspaceDTO) *apiclient.CreateWorkspaceDTO
- func GetWorkspaceTemplateFromPrompt(workspaceTemplates []apiclient.WorkspaceTemplate, workspaceOrder int, ...) *apiclient.WorkspaceTemplate
- type CheckoutOption
- type GetGitProviderConfigParams
- type ItemDelegate
Constants ¶
View Source
const CREATE_FROM_SAMPLE = "<CREATE_FROM_SAMPLE>"
Variables ¶
View Source
var ( CheckoutDefault = CheckoutOption{Title: "Clone the default branch", Id: "default"} CheckoutBranch = CheckoutOption{Title: "Branches", Id: "branch"} CheckoutPR = CheckoutOption{Title: "Pull/Merge requests", Id: "pullrequest"} )
View Source
var BlankWorkspaceIdentifier = "<BLANK_WORKSPACE>"
View Source
var CustomRepoIdentifier = "<CUSTOM_REPO>"
View Source
var DoneConfiguring = apiclient.CreateWorkspaceDTO{
Name: doneConfiguringName,
}
View Source
var NewGitProviderConfigIdentifier = "<NEW_GIT_PROVIDER_CONFIG>"
View Source
var NewWorkspaceTemplateIdentifier = "<NEW_WORKSPACE_TEMPLATE>"
View Source
var NoneGitProviderConfigIdentifier = "<NONE>"
Functions ¶
func AddLoadMoreOptionToList ¶
Adds 'Load more' option to a selection list for efficient pagination totalItems count is exclusive of pagination options.
func GetBranchFromPrompt ¶
func GetBuildFromPrompt ¶
func GetGitProviderConfigFromPrompt ¶
func GetGitProviderConfigFromPrompt(params GetGitProviderConfigParams) *apiclient.GitProvider
func GetNamespaceIdFromPrompt ¶
func GetNamespaceIdFromPrompt(namespaces []apiclient.GitNamespace, workspaceOrder int, selectionListOptions views.SelectionListOptions) (string, string)
func GetPrebuildFromPrompt ¶
func GetPrebuildFromPrompt(prebuilds []apiclient.PrebuildDTO, actionVerb string) *apiclient.PrebuildDTO
func GetProviderIdFromPrompt ¶
func GetProviderIdFromPrompt(gitProviders []gitprovider_view.GitProviderView, workspaceOrder int, samplesEnabled bool) string
func GetPullRequestFromPrompt ¶
func GetPullRequestFromPrompt(pullRequests []apiclient.GitPullRequest, workspaceOrder int, selectionListOptions views.SelectionListOptions) (*apiclient.GitPullRequest, string)
func GetRepositoryFromPrompt ¶
func GetRepositoryFromPrompt(repositories []apiclient.GitRepository, workspaceOrder int, selectedRepos map[string]int, selectionListOptions views.SelectionListOptions) (*apiclient.GitRepository, string)
func GetWorkspaceRequestFromPrompt ¶
func GetWorkspaceRequestFromPrompt(workspaces *[]apiclient.CreateWorkspaceDTO) *apiclient.CreateWorkspaceDTO
func GetWorkspaceTemplateFromPrompt ¶
func GetWorkspaceTemplateFromPrompt(workspaceTemplates []apiclient.WorkspaceTemplate, workspaceOrder int, showBlankOption, withNewWorkspaceTemplate bool, actionVerb string) *apiclient.WorkspaceTemplate
Types ¶
type CheckoutOption ¶
func GetCheckoutOptionFromPrompt ¶
func GetCheckoutOptionFromPrompt(workspaceOrder int, checkoutOptions []CheckoutOption, parentIdentifier string) CheckoutOption
type ItemDelegate ¶
type ItemDelegate[T any] struct { }
func (ItemDelegate[T]) Height ¶
func (d ItemDelegate[T]) Height() int
func (ItemDelegate[T]) Spacing ¶
func (d ItemDelegate[T]) Spacing() int
Click to show internal directories.
Click to hide internal directories.