Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDefaultLocalRepo(technologyType coreutils.Technology, serverId string) error
- func CreateDefaultRemoteRepo(technologyType coreutils.Technology, serverId string) error
- func CreateDefaultVirtualRepo(technologyType coreutils.Technology, serverId string) error
- type BuildConfigFile
- type ProjectInitCommand
- func (pic *ProjectInitCommand) CommandName() string
- func (pic *ProjectInitCommand) Run() (err error)
- func (pic *ProjectInitCommand) ServerDetails() (*config.ServerDetails, error)
- func (pic *ProjectInitCommand) SetProjectPath(path string) *ProjectInitCommand
- func (pic *ProjectInitCommand) SetServerId(id string) *ProjectInitCommand
Constants ¶
View Source
const ( Local = "local" Remote = "remote" Virtual = "virtual" RemoteUrl = "url" // Defaults Repositories MavenLocalDefaultName = "default-maven-local" MavenRemoteDefaultName = "default-maven-remote" MavenRemoteDefaultUrl = "https://repo.maven.apache.org/maven2" MavenVirtualDefaultName = "default-maven-virtual" GradleLocalDefaultName = "default-gradle-local" GradleRemoteDefaultName = "default-gradle-remote" GradleRemoteDefaultUrl = "https://repo.maven.apache.org/maven2" GradleVirtualDefaultName = "default-gradle-virtual" NpmLocalDefaultName = "default-npm-local" NpmRemoteDefaultName = "default-npm-remote" NpmRemoteDefaultUrl = "https://registry.npmjs.org" NpmVirtualDefaultName = "default-npm-virtual" GoLocalDefaultName = "default-go-local" GoRemoteDefaultName = "default-go-remote" GoRemoteDefaultUrl = "https://gocenter.io/" GoVirtualDefaultName = "default-go-virtual" PypiLocalDefaultName = "default-pypi-local" PypiRemoteDefaultName = "default-pypi-remote" PypiRemoteDefaultUrl = "https://files.pythonhosted.org" PypiVirtualDefaultName = "default-pypi-virtual" NugetLocalDefaultName = "default-nuget-local" NugetRemoteDefaultName = "default-nuget-remote" NugetRemoteDefaultUrl = "https://www.nuget.org/" NugetVirtualDefaultName = "default-nuget-virtual" DockerLocalDefaultName = "default-docker-local" DockerRemoteDefaultName = "default-docker-remote" DockerRemoteDefaultUrl = "https://registry-1.docker.io" DockerVirtualDefaultName = "default-docker-virtual" )
Variables ¶
View Source
var RepoDefaultName = map[coreutils.Technology]map[string]string{ coreutils.Maven: { Local: MavenLocalDefaultName, Remote: MavenRemoteDefaultName, RemoteUrl: MavenRemoteDefaultUrl, Virtual: MavenVirtualDefaultName, }, coreutils.Gradle: { Local: GradleLocalDefaultName, Remote: GradleRemoteDefaultName, RemoteUrl: GradleRemoteDefaultUrl, Virtual: GradleVirtualDefaultName, }, coreutils.Npm: { Local: NpmLocalDefaultName, Remote: NpmRemoteDefaultName, RemoteUrl: NpmRemoteDefaultUrl, Virtual: NpmVirtualDefaultName, }, coreutils.Go: { Local: GoLocalDefaultName, Remote: GoRemoteDefaultName, RemoteUrl: GoRemoteDefaultUrl, Virtual: GoVirtualDefaultName, }, coreutils.Pip: { Local: PypiLocalDefaultName, Remote: PypiRemoteDefaultName, RemoteUrl: PypiRemoteDefaultUrl, Virtual: PypiVirtualDefaultName, }, coreutils.Pipenv: { Local: PypiLocalDefaultName, Remote: PypiRemoteDefaultName, RemoteUrl: PypiRemoteDefaultUrl, Virtual: PypiVirtualDefaultName, }, coreutils.Nuget: { Local: NugetLocalDefaultName, Remote: NugetRemoteDefaultName, RemoteUrl: NugetRemoteDefaultUrl, Virtual: NugetVirtualDefaultName, }, coreutils.Dotnet: { Local: NugetLocalDefaultName, Remote: NugetRemoteDefaultName, RemoteUrl: NugetRemoteDefaultUrl, Virtual: NugetVirtualDefaultName, }, coreutils.Docker: { Local: DockerLocalDefaultName, Remote: DockerRemoteDefaultName, RemoteUrl: DockerRemoteDefaultUrl, Virtual: DockerVirtualDefaultName, }, }
Functions ¶
func CreateDefaultLocalRepo ¶
func CreateDefaultLocalRepo(technologyType coreutils.Technology, serverId string) error
func CreateDefaultRemoteRepo ¶
func CreateDefaultRemoteRepo(technologyType coreutils.Technology, serverId string) error
func CreateDefaultVirtualRepo ¶
func CreateDefaultVirtualRepo(technologyType coreutils.Technology, serverId string) error
Types ¶
type BuildConfigFile ¶
type ProjectInitCommand ¶
type ProjectInitCommand struct {
// contains filtered or unexported fields
}
func NewProjectInitCommand ¶
func NewProjectInitCommand() *ProjectInitCommand
func (*ProjectInitCommand) CommandName ¶ added in v2.9.0
func (pic *ProjectInitCommand) CommandName() string
func (*ProjectInitCommand) Run ¶
func (pic *ProjectInitCommand) Run() (err error)
func (*ProjectInitCommand) ServerDetails ¶ added in v2.9.0
func (pic *ProjectInitCommand) ServerDetails() (*config.ServerDetails, error)
func (*ProjectInitCommand) SetProjectPath ¶
func (pic *ProjectInitCommand) SetProjectPath(path string) *ProjectInitCommand
func (*ProjectInitCommand) SetServerId ¶
func (pic *ProjectInitCommand) SetServerId(id string) *ProjectInitCommand
Click to show internal directories.
Click to hide internal directories.