util

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProjectFromConfig added in v0.24.0

func AddProjectFromConfig(projectConfig *apiclient.ProjectConfig, apiClient *apiclient.APIClient, projects *[]apiclient.CreateProjectConfigDTO, branchFlag string) (*string, error)

func GetBranchFromProjectConfig added in v0.24.0

func GetBranchFromProjectConfig(projectConfig *apiclient.ProjectConfig, apiClient *apiclient.APIClient, projectOrder int) (string, error)

func GetBranchFromWizard added in v0.24.0

func GetBranchFromWizard(config BranchWizardConfig) (*apiclient.GitRepository, error)

func GetBranchFromWizardFromRepo added in v0.24.0

func GetBranchFromWizardFromRepo(branchList []apiclient.GitBranch) (*apiclient.GitBranch, error)

func GetEnvVariables added in v0.24.0

func GetEnvVariables(projectConfigDto *apiclient.CreateProjectConfigDTO, profileData *apiclient.ProfileData) *map[string]string

func GetProjectNameFromRepo added in v0.13.0

func GetProjectNameFromRepo(repoUrl string) string

func GetProjectsCreationDataFromPrompt added in v0.24.0

func GetProjectsCreationDataFromPrompt(config ProjectsDataPromptConfig) ([]apiclient.CreateProjectConfigDTO, error)

func GetSanitizedProjectName added in v0.19.0

func GetSanitizedProjectName(projectName string) (string, error)

func GetSuggestedName added in v0.24.0

func GetSuggestedName(initialSuggestion string, existingNames []string) string

func IsProjectRunning added in v0.24.0

func IsProjectRunning(workspace *apiclient.WorkspaceDTO, projectName string) bool

Types

type BranchWizardConfig added in v0.24.0

type BranchWizardConfig struct {
	ApiClient    *apiclient.APIClient
	ProviderId   string
	NamespaceId  string
	ChosenRepo   *apiclient.GitRepository
	ProjectOrder int
}

type ProjectsDataPromptConfig added in v0.24.0

type ProjectsDataPromptConfig struct {
	UserGitProviders    []apiclient.GitProvider
	ProjectConfigs      []apiclient.ProjectConfig
	Manual              bool
	SkipBranchSelection bool
	MultiProject        bool
	BlankProject        bool
	ApiClient           *apiclient.APIClient
	Defaults            *create.ProjectConfigDefaults
}

type RepositoryWizardConfig added in v0.24.0

type RepositoryWizardConfig struct {
	ApiClient           *apiclient.APIClient
	UserGitProviders    []apiclient.GitProvider
	Manual              bool
	MultiProject        bool
	SkipBranchSelection bool
	ProjectOrder        int
	SelectedRepos       map[string]int
}

Jump to

Keyboard shortcuts

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