download

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDownloadCommand

func GetDownloadCommand(fs afero.Fs, command Command) (cmd *cobra.Command)

Types

type Command

type Command interface {
	DownloadConfigsBasedOnManifest(fs afero.Fs, cmdOptions downloadCmdOptions) error
	DownloadConfigs(fs afero.Fs, cmdOptions downloadCmdOptions) error
	DownloadEntitiesBasedOnManifest(fs afero.Fs, cmdOptions entitiesManifestDownloadOptions) error
	DownloadEntities(fs afero.Fs, cmdOptions entitiesDirectDownloadOptions) error
}

Command is used to test the CLi commands properly without executing the actual monaco download.

The actual implementations are in the DefaultCommand struct.

type DefaultCommand

type DefaultCommand struct{}

DefaultCommand is used to implement the Command interface.

func (DefaultCommand) DownloadConfigs

func (d DefaultCommand) DownloadConfigs(fs afero.Fs, cmdOptions downloadCmdOptions) error

func (DefaultCommand) DownloadConfigsBasedOnManifest

func (d DefaultCommand) DownloadConfigsBasedOnManifest(fs afero.Fs, cmdOptions downloadCmdOptions) error

func (DefaultCommand) DownloadEntities

func (d DefaultCommand) DownloadEntities(fs afero.Fs, cmdOptions entitiesDirectDownloadOptions) error

func (DefaultCommand) DownloadEntitiesBasedOnManifest

func (d DefaultCommand) DownloadEntitiesBasedOnManifest(fs afero.Fs, cmdOptions entitiesManifestDownloadOptions) error

Jump to

Keyboard shortcuts

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