image

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(ctx context.Context, client *dagger.Client, option *BuildImageOption) (err error)

BuildImage permit to build image

func GetBuildCommand

func GetBuildCommand(registryName, imageName string) *cli.Command

GetBuildCommand permit to get the command spec to add on cli

Types

type BuildImageOption

type BuildImageOption struct {
	WithLint             bool   `default:"true"`
	WithProxy            bool   `default:"true"`
	WithPush             bool   `default:"false"`
	WithRegistryUsername string `validate:"validateRegistryAuth"`
	WithRegistryPassword string `validate:"validateRegistryAuth"`
	RegistryName         string `validate:"required"`
	Name                 string `validate:"required"`
	Tag                  string `default:"latest"`
	PathContext          string `default:"."`
}

func (BuildImageOption) ValidateRegistryAuth

func (h BuildImageOption) ValidateRegistryAuth(val string) bool

Jump to

Keyboard shortcuts

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