jib

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// JibGradle the name of the Jib Gradle Plugin
	JibGradle = "Jib Gradle Plugin"
	// JibMaven the name of the Jib Maven Plugin
	JibMaven = "Jib Maven Plugin"
)
View Source
const MinimumJibGradleVersion = "1.4.0"

Skaffold-Jib depends on functionality introduced with Jib-Gradle 1.4.0

View Source
const MinimumJibMavenVersion = "1.4.0"

Skaffold-Jib depends on functionality introduced with Jib-Maven 1.4.0

Variables

View Source
var GradleCommand = util.CommandWrapper{Executable: "gradle", Wrapper: "gradlew"}

GradleCommand stores Gradle executable and wrapper name

View Source
var MavenCommand = util.CommandWrapper{Executable: "mvn", Wrapper: "mvnw"}

MavenCommand stores Maven executable and wrapper name

View Source
var (
	ValidateJibConfigFunc = ValidateJibConfig
)

For testing

Functions

func GenerateGradleArgs added in v0.21.0

func GenerateGradleArgs(task string, imageName string, a *latest.JibGradleArtifact, skipTests bool, insecureRegistries map[string]bool) []string

GenerateGradleArgs generates the arguments to Gradle for building the project as an image.

func GenerateMavenArgs added in v0.21.0

func GenerateMavenArgs(goal string, imageName string, a *latest.JibMavenArtifact, skipTests bool, insecureRegistries map[string]bool) []string

GenerateMavenArgs generates the arguments to Maven for building the project as an image.

func GetDependenciesGradle

func GetDependenciesGradle(ctx context.Context, workspace string, a *latest.JibGradleArtifact) ([]string, error)

GetDependenciesGradle finds the source dependencies for the given jib-gradle artifact. All paths are absolute.

func GetDependenciesMaven

func GetDependenciesMaven(ctx context.Context, workspace string, a *latest.JibMavenArtifact) ([]string, error)

GetDependenciesMaven finds the source dependencies for the given jib-maven artifact. All paths are absolute.

Types

type Jib added in v0.35.0

type Jib struct {
	BuilderName string `json:"-"`
	Image       string `json:"image,omitempty"`
	FilePath    string `json:"path,omitempty"`
	Project     string `json:"project,omitempty"`
}

Jib holds information about a Jib project

func ValidateJibConfig added in v0.35.0

func ValidateJibConfig(path string) []Jib

ValidateJibConfig checks if a file is a valid Jib configuration. Returns the list of Config objects corresponding to each Jib project built by the file, or nil if Jib is not configured.

func (Jib) ConfiguredImage added in v0.35.0

func (j Jib) ConfiguredImage() string

ConfiguredImage returns the target image configured by the builder, or empty string if no image is configured

func (Jib) CreateArtifact added in v0.35.0

func (j Jib) CreateArtifact(manifestImage string) *latest.Artifact

CreateArtifact creates an Artifact to be included in the generated Build Config

func (Jib) Describe added in v0.35.0

func (j Jib) Describe() string

Describe returns the initBuilder's string representation, used when prompting the user to choose a builder.

func (Jib) Name added in v0.35.0

func (j Jib) Name() string

Name returns the name of the builder

func (Jib) Path added in v0.35.0

func (j Jib) Path() string

Path returns the path to the build definition

Jump to

Keyboard shortcuts

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