imagesource

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCreds

func GetCreds(acornConfig string, c client.Client) (client.CredentialLookup, error)

Types

type ImageSource

type ImageSource struct {
	Image     string
	File      string
	Args      []string
	ArgsFile  string
	Platforms []string
	// NoDefaultRegistry - if true, indicates that no container registry should be assumed for the Image.
	// This is used if the ImageSource is for an app with auto-upgrade enabled.
	NoDefaultRegistry bool
	Streams           *streams.Output
	// contains filtered or unexported fields
}

func NewImageSource

func NewImageSource(acornConfig string, file, argsFile string, args, platforms []string, noDefaultReg bool) (result ImageSource)

func (ImageSource) GetAppDefinition

func (i ImageSource) GetAppDefinition(ctx context.Context, c client.Client) (*appdefinition.AppDefinition, map[string]any, []string, error)

func (ImageSource) GetImageAndDeployArgs

func (i ImageSource) GetImageAndDeployArgs(ctx context.Context, c client.Client) (string, map[string]any, []string, error)

func (ImageSource) IsImageSet

func (i ImageSource) IsImageSet() bool

func (ImageSource) ResolveImageAndFile

func (i ImageSource) ResolveImageAndFile() (string, string, error)

func (ImageSource) WatchFiles

func (i ImageSource) WatchFiles(ctx context.Context, c client.Client) ([]string, error)

func (ImageSource) WithImage

func (i ImageSource) WithImage(image string) ImageSource

Jump to

Keyboard shortcuts

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