dynamic_controller

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateController

func GenerateController(pc *config.Provider, absRootDir string)

Types

type ProviderGenerator

type ProviderGenerator struct {
	ProviderPath       string
	LocalDirectoryPath string
	LicenseHeaderPath  string
	ModulePath         string
}

ProviderGenerator generates controller setup file.

func NewProviderGenerator

func NewProviderGenerator(rootDir, modulePath string) *ProviderGenerator

NewProviderGenerator returns a new ProviderGenerator.

func (*ProviderGenerator) Generate

func (sg *ProviderGenerator) Generate(versionPkgMap map[string][]string, mainTemplate string, shortName string, rootGroup string, absRootDir string) error

Generate writes the setup file and the corresponding provider main file using the given list of version packages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL