Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reviser ¶
type Reviser struct { validation.Validator // contains filtered or unexported fields }
func NewReviser ¶
func NewReviser(interfaceOrBytes model.InterfaceOrBytes, desiredVersion string) (upgrader Reviser, err error)
NewReviser returns an upgrader with a validator created from the desired version.
func (*Reviser) GetModelVersion ¶
GetModelVersion returns the version of the model being upgraded.
func (*Reviser) GetRevisedBytes ¶
GetRevisedBytes returns the upgraded model as bytes, marshalled to the desired extension.
func (*Reviser) GetRevisedJsonMap ¶
GetRevisedJsonMap sets the upgraded model.
type RevisionOptions ¶
type RevisionResponse ¶
type RevisionResponse struct { Reviser Reviser Result validation.ValidationResult Warnings []string RevisedBytes []byte }
func RevisionCommand ¶
func RevisionCommand(opts *RevisionOptions) (revisionResponse RevisionResponse, err error)
RevisionCommand Runs the revision and returns the revision response For Consumers, this method assumes no ReviseOptions defaults. All defaults are handled in the cobra command.
Click to show internal directories.
Click to hide internal directories.