versionstreamer

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchRepositoryPrefix

func MatchRepositoryPrefix(prefixes *versionstream.RepositoryPrefixes, prefix string) (string, error)

MatchRepositoryPrefix returns the prefix match if it can be found from the version stream

Types

type Options

type Options struct {
	options.BaseOptions
	Dir                  string
	VersionStreamDir     string
	VersionStreamURL     string
	VersionStreamRef     string
	CommandRunner        cmdrunner.CommandRunner
	QuietCommandRunner   cmdrunner.CommandRunner
	Requirements         *jxcore.RequirementsConfig
	RequirementsFileName string
	Resolver             *versionstream.VersionResolver
}

Options the options for the command

func (*Options) AddFlags

func (o *Options) AddFlags(cmd *cobra.Command)

func (*Options) ResolveVersionStream

func (o *Options) ResolveVersionStream() error

ResolveVersionStream verifies there is a valid version stream and if not resolves it via kpt

func (*Options) Validate

func (o *Options) Validate() error

Validate validates the options and populates any missing values

Jump to

Keyboard shortcuts

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