Documentation ¶
Index ¶
- Constants
- type Config
- type ConfigOption
- type Logger
- type Module
- func (m *Module) AddPackage(pkg *Package) error
- func (m *Module) GetEnvs() map[string]bool
- func (m *Module) GetPackage(pkgName string) *Package
- func (m *Module) GetPackageOutDegree(pkg *Package) int
- func (m *Module) ToDOT() ([]byte, error)
- func (m *Module) TopologicalPackageOrder() ([]*Package, error)
- func (m *Module) Validate() error
- type Package
- func (p *Package) AddConfig(cfg PackageConfig)
- func (p *Package) Envs() []string
- func (p *Package) FullPath(modPath string) string
- func (p *Package) GoAliasName() string
- func (p *Package) GoFileName() string
- func (p *Package) GoNewStructFuncName() string
- func (p *Package) GoStructName() string
- func (p *Package) HasTag(tag string) bool
- func (p *Package) RelativePath() string
- type PackageConfig
Constants ¶
View Source
const DefaultVersion = "v1alpha"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigOption ¶
type ConfigOption func(*Config)
func WithModulePath ¶
func WithModulePath(path string) ConfigOption
type Module ¶
type Module struct { Path string `yaml:"path"` Packages []*Package `yaml:"packages,omitempty"` // contains filtered or unexported fields }
func (*Module) AddPackage ¶
func (*Module) GetPackage ¶
func (*Module) GetPackageOutDegree ¶
func (*Module) TopologicalPackageOrder ¶
type Package ¶
type Package struct { ID string `yaml:"id"` Name string `yaml:"name"` Path string `yaml:"path,omitempty"` Config []PackageConfig `yaml:"config,omitempty"` Alias string `yaml:"alias,omitempty"` Tags []string `yaml:"tags,omitempty"` Requires []string `yaml:"requires,omitempty"` }
func (*Package) AddConfig ¶
func (p *Package) AddConfig(cfg PackageConfig)
func (*Package) GoAliasName ¶
func (*Package) GoFileName ¶
func (*Package) GoNewStructFuncName ¶
func (*Package) GoStructName ¶
func (*Package) RelativePath ¶
RelativePath returns the relative path from the module root to the package.
Click to show internal directories.
Click to hide internal directories.