maven

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PRODIMAGE             = "tomcat:latest"
	CacheLocation         = "/root/.m2/"
	DEFAULT_MAVEN_VERSION = "v17"
)

Variables

This section is empty.

Functions

func CacheFolder

func CacheFolder() string

func ComputeChecksum

func ComputeChecksum(data []byte) string

TODO: provide a shorter checksum

func GetVersion

func GetVersion(build container.Build) string

func Images

func Images(build container.Build) []string

func Matches

func Matches(build container.Build) bool

func MavenImage

func MavenImage(build container.Build) string

func New

func New() build.BuildStepv2

func NewProd

func NewProd() build.BuildStepv2

func ProdImage

func ProdImage(build container.Build) string

func Script

func Script(bs *BuildScript) string

Types

type BuildScript

type BuildScript struct {
	Verbose bool
	Folder  string
	Host    string
}

func NewBuildScript

func NewBuildScript(verbose bool, folder, host string) *BuildScript

type Image

type Image string

type MavenContainer

type MavenContainer struct {
	App       string
	File      u.SrcFile
	Folder    string
	Image     string
	ImageTag  string
	Platform  types.Platform
	ProdImage string

	Version string
	*container.Container
}

func (*MavenContainer) Address

func (c *MavenContainer) Address() *network.Address

func (*MavenContainer) Build

func (c *MavenContainer) Build() error

func (*MavenContainer) BuildMavenImage

func (c *MavenContainer) BuildMavenImage() error

func (*MavenContainer) BuildScript

func (c *MavenContainer) BuildScript() string

func (*MavenContainer) IsAsync

func (c *MavenContainer) IsAsync() bool

func (*MavenContainer) Name

func (c *MavenContainer) Name() string

func (*MavenContainer) Prod

func (c *MavenContainer) Prod() error

func (*MavenContainer) Pull

func (c *MavenContainer) Pull() error

func (*MavenContainer) Run

func (c *MavenContainer) Run() error

Jump to

Keyboard shortcuts

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