convert

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdPipelineConvert

func NewCmdPipelineConvert() *cobra.Command

NewCmdPipelineConvert creates the command

Types

type Options

type Options struct {
	options.BaseOptions
}

Options is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()

type RemoteTasksOptions added in v0.6.0

type RemoteTasksOptions struct {
	options.BaseOptions

	OverrideSHA                  string
	Dir                          string
	WorkspaceVolumeSize          string
	CalculateWorkspaceVolumeSize bool

	Processor     processor.Interface
	GitClient     gitclient.Interface
	CommandRunner cmdrunner.CommandRunner
}

RemoteTasksOptions contains the command line options

func NewCmdPipelineConvertRemoteTasks added in v0.6.0

func NewCmdPipelineConvertRemoteTasks() (*cobra.Command, *RemoteTasksOptions)

NewCmdPipelineConvertRemoteTasks creates the command

func (*RemoteTasksOptions) ProcessDir added in v0.6.0

func (o *RemoteTasksOptions) ProcessDir(dir string) error

func (*RemoteTasksOptions) Run added in v0.6.0

func (o *RemoteTasksOptions) Run() error

Run implements this command

func (*RemoteTasksOptions) Validate added in v0.6.0

func (o *RemoteTasksOptions) Validate() error

Validate verifies settings

type UsesOptions added in v0.6.0

type UsesOptions struct {
	options.BaseOptions
	lighthouses.ResolverOptions

	Dir           string
	Namespace     string
	TasksFolder   string
	Format        string
	UseSHA        string
	CatalogSHA    string
	Catalog       bool
	UseKptRef     bool
	TriggerCount  int
	Resolver      *inrepo.UsesResolver
	Processor     *processor.UsesMigrator
	CommandRunner cmdrunner.CommandRunner
	GitClient     gitclient.Interface

	// KptPath is the imported path in the catalog for repository pipelines
	KptPath string
}

UsesOptions contains the command line options

func NewCmdPipelineConvertUses added in v0.6.0

func NewCmdPipelineConvertUses() (*cobra.Command, *UsesOptions)

NewCmdPipelineConvertUses creates the command

func (*UsesOptions) ProcessDir added in v0.6.0

func (o *UsesOptions) ProcessDir(dir string) error

func (*UsesOptions) Run added in v0.6.0

func (o *UsesOptions) Run() error

Run implements this command

func (*UsesOptions) Validate added in v0.6.0

func (o *UsesOptions) Validate() error

Validate verifies settings

Jump to

Keyboard shortcuts

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