knative

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestableVersionResolver

func NewTestableVersionResolver(
	repo git.Repository,
	env func() environment.Values,
) version.Resolver

NewTestableVersionResolver creates an instance of version.Resolver that can be easily tested.

func NewVersionResolver

func NewVersionResolver(options ...VersionResolverOption) version.Resolver

NewVersionResolver creates a version.Resolver implementation directly targeting Knative project CI.

Types

type VersionResolverOption

type VersionResolverOption func(*versionResolver)

VersionResolverOption id option to customize version resolution.

func WithEnvironmental

func WithEnvironmental(options ...environment.VersionResolverOption) VersionResolverOption

WithEnvironmental allows passing options for environment.VersionResolver.

func WithGit

WithGit allows passing options for git.VersionResolver.

Jump to

Keyboard shortcuts

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