Documentation
¶
Index ¶
- func CreateMigratedOverview(reportSet *ReportSet) *tview.TreeView
- func ProcessOperatorOutput(migratedResources *Resources, operatorOutput []*pipeline.ObjectChange, ...) error
- func PromptDiffingChanges(reports *ReportSet, warnings map[string][]*Warning, ...) error
- func Setup(parent *cobra.Command)
- type CapsuleName
- type Cmd
- type Migration
- type ReportSet
- type Resources
- func (r *Resources) AddObject(kind, name string, object client.Object) error
- func (r *Resources) Compare(other *Resources, scheme *runtime.Scheme) (*ReportSet, error)
- func (r *Resources) CreateOverview() *tview.TreeView
- func (r *Resources) ToYAML(scheme *runtime.Scheme) (map[string]map[string]string, error)
- type Warning
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMigratedOverview ¶ added in v1.7.1
func ProcessOperatorOutput ¶ added in v1.7.1
func PromptDiffingChanges ¶ added in v1.7.1
Types ¶
type CapsuleName ¶ added in v1.7.2
type CapsuleName string
const ( CapsuleNameService CapsuleName = "service" CapsuleNameDeployment CapsuleName = "deployment" CapsuleNameInput CapsuleName = "input" )
func (*CapsuleName) Set ¶ added in v1.7.2
func (c *CapsuleName) Set(v string) error
Set must have pointer receiver so it doesn't change the value of a copy
func (*CapsuleName) String ¶ added in v1.7.2
func (c *CapsuleName) String() string
String is used both by fmt.Print and by Cobra in help text
func (*CapsuleName) Type ¶ added in v1.7.2
func (c *CapsuleName) Type() string
Type is only used in help text
type Migration ¶ added in v1.8.0
type Migration struct {
// contains filtered or unexported fields
}
type ReportSet ¶ added in v1.7.1
type ReportSet struct {
// contains filtered or unexported fields
}
func NewReportSet ¶ added in v1.7.1
type Resources ¶ added in v1.7.3
type Resources struct {
Deployment *appsv1.Deployment
ServiceAccount *corev1.ServiceAccount
Capsule *v1alpha2.Capsule
HPA *autoscalingv2.HorizontalPodAutoscaler
Service *corev1.Service
ConfigMaps map[string]*corev1.ConfigMap
Secrets map[string]*corev1.Secret
Ingresses map[string]*netv1.Ingress
CronJobs map[string]*batchv1.CronJob
}
func NewResources ¶ added in v1.7.3
func NewResources() *Resources
func (*Resources) CreateOverview ¶ added in v1.7.3
Click to show internal directories.
Click to hide internal directories.