option

package
v0.0.0-...-4e386bd Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Options

func Options(user ...sheaf.Option) []sheaf.Option

Options returns options that can be passed to the runner.

Types

type Generator

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

Generator generates options for a sheaf command.

func NewGenerator

func NewGenerator(cmd *cobra.Command, runner Runner, prefix string) *Generator

NewGenerator creates an instance of Generator.

func (Generator) Options

func (g Generator) Options() []sheaf.Option

Options returns options for the Generator.

func (Generator) WithArchive

func (g Generator) WithArchive()

WithArchive sets up the archive flag.

func (Generator) WithBundleConfigFactory

func (g Generator) WithBundleConfigFactory()

WithBundleConfigFactory sets up options for creating a bundle config.

func (Generator) WithBundleName

func (g Generator) WithBundleName()

WithBundleName sets up a bundle name option.

func (Generator) WithBundlePath

func (g Generator) WithBundlePath()

WithBundlePath sets a bundle path option.

func (Generator) WithBundleVersion

func (g Generator) WithBundleVersion()

WithBundleVersion sets up a bundle version option.

func (Generator) WithDestination

func (g Generator) WithDestination()

WithDestination sets up a destination option.

func (Generator) WithDryRun

func (g Generator) WithDryRun()

WithDryRun sets up a dry run option.

func (Generator) WithFilePaths

func (g Generator) WithFilePaths()

WithFilePaths sets up file path options.

func (Generator) WithForce

func (g Generator) WithForce()

WithForce sets up force option.

func (Generator) WithImages

func (g Generator) WithImages()

WithImages sets up image options.

func (Generator) WithInitBundlePath

func (g Generator) WithInitBundlePath()

WithInitBundlePath sets up bundle path for a sheaf init.

func (Generator) WithInsecureRegistry

func (g Generator) WithInsecureRegistry()

WithInsecureRegistry sets up insecure registry option.

func (Generator) WithPrefix

func (g Generator) WithPrefix()

WithPrefix sets up registry prefix option.

func (Generator) WithReference

func (g Generator) WithReference()

WithReference sets up a registry reference option.

func (Generator) WithUserDefinedImage

func (g Generator) WithUserDefinedImage()

WithUserDefinedImage sets up user defined image options.

func (Generator) WithUserDefinedImageKey

func (g Generator) WithUserDefinedImageKey()

WithUserDefinedImageKey sets up user defined image key options.

type Runner

type Runner func(options ...sheaf.Option) error

Runner is a sheaf command runner.

Jump to

Keyboard shortcuts

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