Documentation
¶
Index ¶
Constants ¶
const ( // If you change this here -> adjust the `New*` functions. ImageService ImageType = 0 ImageDBMigration ImageType = 1 ImageServiceName = "service" ImageDBMigrationName = "dbmigration" )
Variables ¶
This section is empty.
Functions ¶
func GetImageTypesHelp ¶
func GetImageTypesHelp() string
GetImageTypesHelp reports some help string for image types.
Types ¶
type ImageRef ¶
func NewImageRef ¶
func NewImageRef( gitx git.Context, baseName string, packageName string, version *version.Version, registryType registry.Type, isRelease bool, ) (ImageRef, error)
NewImageRef construct a new image ref. This is the top-level function to generate image references. In the form: - `<base-name>-<registry-type>/<packageName>:<version>` for release image names. - `<base-name>-<registry-type>/<packageName>:<version>-<git-hash>` for non-release image names. - If the `registryType` is `RegistryTempTilt` it will be taken from `EXPECTED_REF` env. variable.
func NewRefFromString ¶
NewRefFromString creates an image reference from string `n`.
type ImageRefDigested ¶
type ImageRefField ¶
type ImageRefField struct {
Ref ImageRef `yaml:",inline"`
}
Wrapper around ImageRef when working with encoding.
func (ImageRefField) MarshalYAML ¶
func (r ImageRefField) MarshalYAML() (any, error)
MarshalYAML marshals the image ref. to YAML.
func (*ImageRefField) UnmarshalYAML ¶
func (r *ImageRefField) UnmarshalYAML(unmarshal func(any) error) error
UnmarshalYAML unmarshals the image ref.
type ImageRefNamed ¶
type ImageRefTagged ¶
type ImageRefTagged reference.NamedTagged
type ImageType ¶
type ImageType int
func GetAllImageTypes ¶
func GetAllImageTypes() []ImageType
GetAllImageTypes returns all possible image types.
func NewImageType ¶
func (ImageType) MarshalYAML ¶
MarshalYAML marshals to YAML. Note: needs to be value-receiver to be called!