Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandChangedDirectories ¶
ExpandChangedDirectories expands every directory listed in the array to all its file
func IsValidPackage ¶
IsValidPackage returns true when the given directory is a valid azure-sdk-for-go package, otherwise returns false (including the directory does not exist) The criteria of a valid azure-sdk-for-go package is that the directory must have a `client.go` and a `version.go` file
Types ¶
type ChangedPackagesMap ¶
ChangedPackagesMap is a wrapper of a map of packages. The key is package names, and the value is the changed file list.
func GetChangedPackages ¶
func GetChangedPackages(changedFiles []string) (ChangedPackagesMap, error)
GetChangedPackages get the go SDK packages map from the given changed file list. the map returned has the package full path as key, and the changed files in the package as the value. This function identify the package by checking if a directory has both a `version.go` file and a `client.go` file.
func (*ChangedPackagesMap) String ¶
func (c *ChangedPackagesMap) String() string
type Options ¶
type Options struct { // AutorestArguments are the optional flags for the autorest tool AutorestArguments []string // AfterScripts are the scripts that need to be run after the SDK is generated AfterScripts []string }
Options describes the options used in an autorest task
func NewOptionsFrom ¶
NewOptionsFrom returns a new options from a io.Reader
type Task ¶
type Task struct { // AbsReadmeMd absolute path of the readme.md file to generate AbsReadmeMd string }
Task describes a generation task