model

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildProfile

func BuildProfile(packageList ListDefinition, name, outputLocation string, outputLog, errLog *log.Logger, recursive, modules bool)

BuildProfile takes a list of packages and creates a profile

Types

type AliasPackage

type AliasPackage ast.Package

func NewAliasPackage

func NewAliasPackage(original *ast.Package, importPath string) (*AliasPackage, error)

func (*AliasPackage) AddConst

func (alias *AliasPackage) AddConst(decl *ast.GenDecl) error

func (*AliasPackage) AddFunc

func (alias *AliasPackage) AddFunc(decl *ast.FuncDecl) error

func (*AliasPackage) AddGeneral

func (alias *AliasPackage) AddGeneral(decl *ast.GenDecl) error

func (*AliasPackage) AddType

func (alias *AliasPackage) AddType(decl *ast.GenDecl) error

func (AliasPackage) ModelFile

func (alias AliasPackage) ModelFile() *ast.File

type ErrorUnexpectedToken

type ErrorUnexpectedToken struct {
	Expected token.Token
	Received token.Token
}

func (ErrorUnexpectedToken) Error

func (utoken ErrorUnexpectedToken) Error() string

type ListDefinition

type ListDefinition struct {
	Include      []string          `json:"include"`
	PathOverride map[string]string `json:"pathOverride"`
}

func GetLatestPackages

func GetLatestPackages(rootDir string, includePreview bool, verboseLog *log.Logger) (ListDefinition, error)

type PathInfo

type PathInfo struct {
	IsArm    bool
	Provider string
	Version  string
	Group    string
	ModVer   string
	APIPkg   string
}

func DeconstructPath

func DeconstructPath(path string) (PathInfo, error)

Jump to

Keyboard shortcuts

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