infra

package
v0.0.0-...-b944b88 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGit

func NewGit(repo *git.Repository) *gitCommand

Types

type Build

type Build struct {
	Plugins []Plugin `xml:"plugins>plugin"`
}

type Dependency

type Dependency struct {
	GroupID    string `xml:"groupId"`
	ArtifactID string `xml:"artifactId"`
	Version    string `xml:"version"`
	Classifier string `xml:"classifier"`
	Type       string `xml:"type"`
	Scope      string `xml:"scope"`
}

type DependencyManagement

type DependencyManagement struct {
	Dependencies []Dependency `xml:"dependencies>dependency"`
}

type MavenProject

type MavenProject struct {
	// contains filtered or unexported fields
}

func NewMavenProject

func NewMavenProject(filePath string) *MavenProject

func (*MavenProject) Parse

func (p *MavenProject) Parse() error

func (*MavenProject) Update

func (p *MavenProject) Update(version string) error

func (*MavenProject) Version

func (p *MavenProject) Version() string

type Plugin

type Plugin struct {
	XMLName    xml.Name `xml:"plugin"`
	GroupID    string   `xml:"groupId"`
	ArtifactID string   `xml:"artifactId"`
	Version    string   `xml:"version"`
}

type PomXml

type PomXml struct {
	XMLName              xml.Name             `xml:"project"`
	ModelVersion         string               `xml:"modelVersion"`
	GroupID              string               `xml:"groupId"`
	ArtifactID           string               `xml:"artifactId"`
	Version              string               `xml:"version"`
	Packaging            string               `xml:"packaging"`
	Name                 string               `xml:"name"`
	Build                string               `xml:"build"`
	DependencyManagement DependencyManagement `xml:"dependencyManagement"`
	Dependencies         []Dependency         `xml:"dependencies>dependency"`
}

type Repository

type Repository struct {
	ID   string `xml:"id"`
	Name string `xml:"name"`
	URL  string `xml:"url"`
}

type Spec

type Spec int

Spec メジャーマイナーパッチ

const (
	Major Spec = iota // major
	Minor             // minor
	Patch             // patch
)

func (Spec) String

func (i Spec) String() string

Jump to

Keyboard shortcuts

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