cmd

package
v0.0.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmYesOrNo

func ConfirmYesOrNo(s string, r io.Reader) (bool, error)

func CreateImportSpaceCommand

func CreateImportSpaceCommand(ctx context.Context, config *Config, f ImporterFactory, i migrate.ServiceInstanceImporter, fso io.FileSystemOperations, summary *report.Summary) *cobra.Command

func CreateRootCommand

func CreateRootCommand(
	cfg *config.Config,
	sourceConfigLoader config.Loader,
	targetConfigLoader config.Loader,
) *cobra.Command

Types

type ExportMigratorFactory

type ExportMigratorFactory struct {
	Config       *config.Config
	ClientHolder migrate.ClientHolder
}

func NewExportMigratorFactory

func NewExportMigratorFactory(cfg *config.Config, h migrate.ClientHolder) ExportMigratorFactory

func (ExportMigratorFactory) NewOrgExporter

func (ExportMigratorFactory) NewSpaceExporter

type ExporterFactory

type ExporterFactory interface {
	NewOrgExporter(exporter migrate.ServiceInstanceExporter) OrgExporter
	NewSpaceExporter(exporter migrate.ServiceInstanceExporter) SpaceExporter
}

type ImportMigratorFactory

type ImportMigratorFactory struct {
	Config       *config.Config
	ClientHolder migrate.ClientHolder
}

func NewImportMigratorFactory

func NewImportMigratorFactory(cfg *config.Config, l migrate.ClientHolder) ImportMigratorFactory

func (ImportMigratorFactory) NewOrgImporter

func (ImportMigratorFactory) NewSpaceImporter

type ImporterFactory

type ImporterFactory interface {
	NewOrgImporter(importer migrate.ServiceInstanceImporter) OrgImporter
	NewSpaceImporter(importer migrate.ServiceInstanceImporter) SpaceImporter
}

type NoopBoshPropertiesBuilder

type NoopBoshPropertiesBuilder struct{}

func (NoopBoshPropertiesBuilder) Build

type NoopCCDBPropertiesBuilder

type NoopCCDBPropertiesBuilder struct{}

func (NoopCCDBPropertiesBuilder) Build

type NoopCFPropertiesBuilder

type NoopCFPropertiesBuilder struct{}

func (NoopCFPropertiesBuilder) Build

type NoopClientFactory

type NoopClientFactory struct{}

func (NoopClientFactory) CFClient

func (f NoopClientFactory) CFClient(bool) cf.Client

func (NoopClientFactory) SourceBoshClient

func (f NoopClientFactory) SourceBoshClient() bosh.Client

func (NoopClientFactory) SourceCFClient

func (f NoopClientFactory) SourceCFClient() cf.Client

func (NoopClientFactory) SourceOpsManClient

func (f NoopClientFactory) SourceOpsManClient() om.Client

func (NoopClientFactory) TargetBoshClient

func (f NoopClientFactory) TargetBoshClient() bosh.Client

func (NoopClientFactory) TargetCFClient

func (f NoopClientFactory) TargetCFClient() cf.Client

func (NoopClientFactory) TargetOpsManClient

func (f NoopClientFactory) TargetOpsManClient() om.Client

type NoopPropertiesProvider

type NoopPropertiesProvider struct{}

func (NoopPropertiesProvider) SourceBoshPropertiesBuilder

func (s NoopPropertiesProvider) SourceBoshPropertiesBuilder() config.BoshPropertiesBuilder

func (NoopPropertiesProvider) SourceCCDBPropertiesBuilder

func (NoopPropertiesProvider) SourceCFPropertiesBuilder

func (s NoopPropertiesProvider) SourceCFPropertiesBuilder() config.CFPropertiesBuilder

func (NoopPropertiesProvider) TargetBoshPropertiesBuilder

func (s NoopPropertiesProvider) TargetBoshPropertiesBuilder() config.BoshPropertiesBuilder

func (NoopPropertiesProvider) TargetCCDBPropertiesBuilder

func (NoopPropertiesProvider) TargetCFPropertiesBuilder

func (s NoopPropertiesProvider) TargetCFPropertiesBuilder() config.CFPropertiesBuilder

type OrgExporter

type OrgExporter interface {
	Export(ctx context.Context, om config.OpsManager, dir string, orgs ...string) error
	ExportAll(ctx context.Context, om config.OpsManager, dir string) error
}

type OrgImporter

type OrgImporter interface {
	Import(ctx context.Context, om config.OpsManager, dir string, org ...string) error
	ImportAll(ctx context.Context, om config.OpsManager, dir string) error
}

type SpaceExporter

type SpaceExporter interface {
	Export(ctx context.Context, om config.OpsManager, dir string, org, space string) error
}

type SpaceImporter

type SpaceImporter interface {
	Import(ctx context.Context, om config.OpsManager, dir string, org, space string) error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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