versionstreamer

package
v0.0.266 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchRepositoryPrefix added in v0.0.187

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 {
	Dir                  string
	VersionStreamDir     string
	VersionStreamURL     string
	VersionStreamRef     string
	CommandRunner        cmdrunner.CommandRunner
	Requirements         *config.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 added in v0.0.165

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