maven

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProdImage     = "registry.access.redhat.com/ubi8/openjdk-%s:latest"
	CacheLocation = "/root/.m2/"
)
View Source
const (
	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 NewProd

func NewProd(version string) build.Build

func Script

func Script(bs *BuildScript) string

func Steps added in v0.1.0

func Steps(arg *container.Build) []build.Build

Types

type BuildScript

type BuildScript struct {
	Verbose bool
	// contains filtered or unexported fields
}

func NewBuildScript

func NewBuildScript(verbose bool, host string) *BuildScript

type Image

type Image string

type MavenBuild

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

func (MavenBuild) Images

func (g MavenBuild) Images() []string

func (MavenBuild) IsAsync

func (g MavenBuild) IsAsync() bool

func (MavenBuild) Name

func (g MavenBuild) Name() string

func (MavenBuild) Run

func (g MavenBuild) Run() error

type MavenContainer

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

	Version string
	*container.Container
}

func New

func New(version string) *MavenContainer

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) Images

func (c *MavenContainer) Images() []string

func (*MavenContainer) IsAsync

func (c *MavenContainer) IsAsync() bool

func (*MavenContainer) MavenImage

func (c *MavenContainer) MavenImage() string

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