imagesource

package
v0.8.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCreds

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

Types

type ImageSource

type ImageSource struct {
	Image     string
	File      string
	Args      []string
	Profiles  []string
	Platforms []string
}

func NewImageSource

func NewImageSource(file string, args, profiles, platforms []string) (result ImageSource)

func (ImageSource) GetAppDefinition

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

func (ImageSource) GetImageAndDeployArgs

func (i ImageSource) GetImageAndDeployArgs(ctx context.Context, c client.Client) (string, map[string]any, 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