Documentation ¶
Index ¶
Constants ¶
View Source
const GO_MOD_TEMPLATE = `
module {{ .Repository }}
go 1.20
replace github.com/go-openapi/strfmt => github.com/kubewarden/strfmt v0.1.3
`
Variables ¶
This section is empty.
Functions ¶
func NewGroupResource ¶
Types ¶
type Project ¶
func NewProject ¶
func (*Project) InvokeSwaggerModelGenerator ¶
func (*Project) RunGoModTidy ¶
func (*Project) SwaggerFile ¶
type RefactoringPlan ¶
type RefactoringPlan struct { Packages map[string]swagger_helpers.Package Interfaces swagger_helpers.InterfaceRegistry SwaggerVersion string KubernetesVersion string }
Holds information about how the big swagger file is going to be splitted
func NewRefactoringPlan ¶
func NewRefactoringPlan(swagger *openapi_spec.Swagger) (*RefactoringPlan, error)
func (*RefactoringPlan) DependenciesGraph ¶
func (r *RefactoringPlan) DependenciesGraph() (*dag.DAG, error)
func (*RefactoringPlan) RenderNewSwaggerFiles ¶
func (r *RefactoringPlan) RenderNewSwaggerFiles(githubRepo string) (map[string]string, error)
type Splitter ¶
type Splitter struct {
// contains filtered or unexported fields
}
Takes care of splitting the single big swagger file of Kubernetes into smaller ones, one package
func NewSplitter ¶
func (*Splitter) ComputeRefactoringPlan ¶
func (s *Splitter) ComputeRefactoringPlan() (*RefactoringPlan, error)
func (*Splitter) GenerateSwaggerFiles ¶
func (s *Splitter) GenerateSwaggerFiles(project Project, plan *RefactoringPlan) error
Click to show internal directories.
Click to hide internal directories.