init

package
v2.12.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(path string) bool

Validate checks if the file is a Go module file.

Types

type ArtifactConfig

type ArtifactConfig struct {
	File string `json:"path,omitempty"`
}

ArtifactConfig holds information about a Ko project

func (ArtifactConfig) ArtifactType

func (c ArtifactConfig) ArtifactType(_ string) latest.ArtifactType

ArtifactType returns a definition of the artifact to be built.

func (ArtifactConfig) ConfiguredImage

func (c ArtifactConfig) ConfiguredImage() string

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

func (ArtifactConfig) Describe

func (c ArtifactConfig) Describe() string

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

func (ArtifactConfig) Name

func (c ArtifactConfig) Name() string

Name returns the name of the builder.

func (ArtifactConfig) Path

func (c ArtifactConfig) 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