Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NoConfidence represents report items we can not migrate NoConfidence = iota // ModerateConfidence represents report items we can migrate with caveats ModerateConfidence // HighConfidence represents report items we can migrate without issue HighConfidence // OCP4InstallMsg message about using generated manifests OCP4InstallMsg = `` /* 355-byte string literal not displayed */ )
View Source
const ClusterTransformName = "Cluster"
ClusterTransformName is the cluster report name
Variables ¶
View Source
var ReportOutputFlush = func(r Report) error { logrus.Info("Flushing reports to disk") reportoutput.DumpReports(r.Report) return nil }
ReportOutputFlush flush reports to disk
Functions ¶
func HandleError ¶
HandleError handles errors
Types ¶
type ClusterExtraction ¶
ClusterExtraction holds data extracted from k8s API resources
func (ClusterExtraction) Transform ¶
func (e ClusterExtraction) Transform() ([]Output, error)
Transform converts data collected from an OCP3 API into a useful output
func (ClusterExtraction) Validate ¶
func (e ClusterExtraction) Validate() (err error)
Validate no need to validate it, data is exctracted from API
type ClusterTransform ¶
type ClusterTransform struct { }
ClusterTransform reprents transform for k8s API resources
func (ClusterTransform) Extract ¶
func (e ClusterTransform) Extract() (Extraction, error)
Extract collects data for cluster report
func (ClusterTransform) Name ¶
func (e ClusterTransform) Name() string
Name returns a human readable name for the transform
type Extraction ¶
Extraction is a generic data extraction
type Report ¶
type Report struct {
Report reportoutput.ReportOutput
}
Report represents structure for final output
var FinalReportOutput Report
FinalReportOutput represents final output
type Transform ¶
type Transform interface { Extract() (Extraction, error) Name() string }
Transform is a generic transform
Click to show internal directories.
Click to hide internal directories.