Help us shape the future of Go! Take the 2026 Go Developer Survey

imagesource

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

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