internal

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger added in v0.21.0

func CreateLogger(stepsCtx *runner.StepsContext) (*slog.Logger, error)

func IsPartialVersion

func IsPartialVersion(version string) bool

func IsSemver

func IsSemver(version string) bool

func ParseLogLevel added in v0.19.0

func ParseLogLevel(level string) (slog.Level, error)

func ParsePartialVersion

func ParsePartialVersion(version string) []string

Parse a version that is not necessarily a valid semver.

Types

type AuthLookupKeychain

type AuthLookupKeychain struct {
	// contains filtered or unexported fields
}

func NewAuthLookupKeychain

func NewAuthLookupKeychain(lookup LookupValue, logger *slog.Logger) *AuthLookupKeychain

func (*AuthLookupKeychain) Resolve

func (ak *AuthLookupKeychain) Resolve(target authn.Resource) (authn.Authenticator, error)

type GetEnv

type GetEnv func(key string) string

type GetWorkDir

type GetWorkDir func() (string, error)

type LookupValue

type LookupValue func(key string) (string, bool)

type StepImageArchive

type StepImageArchive struct {
	// contains filtered or unexported fields
}

func NewStepImageArchive

func NewStepImageArchive(tarFilePath string, logger *slog.Logger) *StepImageArchive

func (*StepImageArchive) Pack

func (o *StepImageArchive) Pack(imgIndexDir string) (string, os.FileInfo, error)

func (*StepImageArchive) Unpack

func (o *StepImageArchive) Unpack(outputDir string) (v1.ImageIndex, *Version, error)

type Version

type Version struct {
	// contains filtered or unexported fields
}

func NewVersion

func NewVersion(major, minor, patch uint64, release string) *Version

func ParseSemanticVersion

func ParseSemanticVersion(version string) (*Version, error)

func (*Version) IsReleaseCandidate

func (v *Version) IsReleaseCandidate() bool

func (*Version) Satisfies

func (v *Version) Satisfies(partialVersion string) bool

Satisfies tests whether the Version satisfies a partial version. The Version satisfies a partial version when every version part in the partial version is equal to the same version part in the Version, including release. This handles the case where a partial image version 1.2.3 is requested, but the annotated Version in the pulled image is e.g 4.5.6. This condition is undefined so we should fail. partialVersion must be a partial version, not e.g. "latest" or a digest.

func (*Version) String

func (v *Version) String() string

func (*Version) TagsToUpdate

func (v *Version) TagsToUpdate(existing Versions) []string

type Versions

type Versions []*Version

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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