versioning

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact interface {
	VersioningScheme() string
	GetVersion() (string, error)
	SetVersion(string) error
}

Artifact ...

func GetArtifact

func GetArtifact(buildTool, buildDescriptorFilePath string, opts *Options, execRunner mavenExecRunner) (Artifact, error)

GetArtifact ...

type Maven

type Maven struct {
	PomPath             string
	Runner              mavenRunner
	ExecRunner          mavenExecRunner
	ProjectSettingsFile string
	GlobalSettingsFile  string
	M2Path              string
}

Maven ...

func (*Maven) GetVersion

func (m *Maven) GetVersion() (string, error)

GetVersion ...

func (*Maven) SetVersion

func (m *Maven) SetVersion(version string) error

SetVersion ...

func (*Maven) VersioningScheme

func (m *Maven) VersioningScheme() string

VersioningScheme ...

type Npm

type Npm struct {
	PackageJSONPath    string
	PackageJSONContent map[string]interface{}
	ReadFile           func(string) ([]byte, error)
	WriteFile          func(string, []byte, os.FileMode) error
}

Npm ...

func (*Npm) GetVersion

func (n *Npm) GetVersion() (string, error)

GetVersion ...

func (*Npm) SetVersion

func (n *Npm) SetVersion(version string) error

SetVersion ...

func (*Npm) VersioningScheme

func (n *Npm) VersioningScheme() string

VersioningScheme ...

type Options

type Options struct {
	ProjectSettingsFile string
	GlobalSettingsFile  string
	M2Path              string
}

Options ...

Jump to

Keyboard shortcuts

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