Documentation
¶
Index ¶
- type AppCommandRunner
- type AppImportRunner
- type AutoScalerExporter
- type CommandRunner
- type Context
- type DirWriter
- type DropletExporter
- type ManifestExporter
- type OrgCommandRunner
- type ProcessFunc
- type ProcessResult
- type QueryResult
- type QueryResultsCollector
- type QueryResultsProcessor
- type SpaceCommandRunner
- type SpaceExporter
- type SpaceImporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppCommandRunner ¶
type AppImportRunner ¶
type AutoScalerExporter ¶
type AutoScalerExporter interface { ExportAutoScalerRules(ctx *Context, org cfclient.Org, space cfclient.Space, app cfclient.App, exportDir string) error ExportAutoScalerInstances(ctx *Context, org cfclient.Org, space cfclient.Space, app cfclient.App, exportDir string) error ExportAutoScalerSchedules(ctx *Context, org cfclient.Org, space cfclient.Space, app cfclient.App, exportDir string) error }
type CommandRunner ¶
type Context ¶
type Context struct { Debug bool DirWriter DirWriter ExportDir string IncludedOrgs []string ExcludedOrgs []string DomainsToAdd []string DomainsToReplace map[string]string DropletCountToKeep int ConcurrencyLimit int Metadata *metadata.Metadata Summary *report.Summary ExportCFClient cf.Client ImportCFClient cf.Client SpaceImporter SpaceImporter SpaceExporter SpaceExporter DropletExporter DropletExporter ManifestExporter ManifestExporter AutoScalerExporter AutoScalerExporter Logger *log.Logger Progress *mpb.Progress DisplayProgress bool }
func (*Context) InitLogger ¶
func (ctx *Context) InitLogger()
type DropletExporter ¶
type DropletExporter interface { NumberOfPackages(ctx *Context, app cfclient.App) (float64, error) DownloadDroplet(ctx *Context, org cfclient.Org, space cfclient.Space, app cfclient.App, exportDir string) error DownloadPackages(ctx *Context, org cfclient.Org, space cfclient.Space, app cfclient.App, exportDir string) error }
type ManifestExporter ¶
type OrgCommandRunner ¶
type ProcessFunc ¶
type ProcessFunc func(*Context, QueryResult) ProcessResult
type ProcessResult ¶
type ProcessResult struct { Value interface{} Err error }
type QueryResult ¶
type QueryResult struct {
Value interface{}
}
type QueryResultsCollector ¶
type QueryResultsCollector interface { ResultCount() int ResultsPerPage() int GetResults() <-chan QueryResult AddResult(QueryResult) Close() }
type QueryResultsProcessor ¶
type QueryResultsProcessor interface { ExecuteQuery(ctx *Context, queryResultsCollector QueryResultsCollector, query func(collector QueryResultsCollector) (int, error), processor func(ctx *Context, value QueryResult) ProcessResult) (<-chan ProcessResult, error) ExecutePageQuery(ctx *Context, queryResultsCollector QueryResultsCollector, query func(page int, collector QueryResultsCollector) func() (int, error), processor ProcessFunc) (<-chan ProcessResult, error) }
type SpaceCommandRunner ¶
type SpaceExporter ¶
type SpaceExporter interface {
ExportSpace(ctx *Context, space cfclient.Space, processor ProcessFunc) (<-chan ProcessResult, error)
}
type SpaceImporter ¶
type SpaceImporter interface {
ImportSpace(ctx *Context, processor ProcessFunc, files []string) (<-chan ProcessResult, error)
}
Click to show internal directories.
Click to hide internal directories.