mirror

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	scmhelpers.Factory
	Dir              string
	RepositoriesFile string
	Branch           string
	GitURL           string
	CommitMessage    string
	Excludes         []string
	NoPush           bool
	GitClient        gitclient.Interface
	CommandRunner    cmdrunner.CommandRunner
}

Options the options for the command

func NewCmdMirror

func NewCmdMirror() (*cobra.Command, *Options)

NewCmdMirror creates a command object for the command

func (*Options) DownloadIndex

func (o *Options) DownloadIndex(idx *repo.IndexFile, u, dir string) error

func (*Options) MirrorRepository

func (o *Options) MirrorRepository(dir string, urls []string) error

MirrorRepository downloads the index yaml and all the referenced charts to the given directory

func (*Options) Run

func (o *Options) Run() error

Run implements the command

func (*Options) Validate

func (o *Options) Validate() error

Validate the arguments

Jump to

Keyboard shortcuts

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