Documentation ¶
Overview ¶
Code generated for package manifest_parser by go-bindata DO NOT EDIT. (@generated) sources: data/mgos_deps_init.c.tmpl data/root_manifest.yml
Copyright (c) 2014-2019 Cesanta Software Limited All rights reserved
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2014-2019 Cesanta Software Limited All rights reserved
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func ExpandManifestConds(dstManifest, refManifest *build.FWAppManifest, ...) error
- func MustAsset(name string) []byte
- func ReadManifest(appDir string, adjustments *build.ManifestAdjustments, ...) (*build.FWAppManifest, time.Time, error)
- func ReadManifestFile(manifestFullName string, interp *interpreter.MosInterpreter, ...) (*build.FWAppManifest, time.Time, error)
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type ComponentProvider
- type Deps
- func (d *Deps) AddDep(node string, dep string)
- func (d *Deps) AddDeps(node string, deps []string)
- func (d *Deps) AddNode(node string)
- func (d *Deps) AddNodeWithDeps(node string, deps []string)
- func (d *Deps) GetDeps(node string) []string
- func (d *Deps) GetNodes() []string
- func (d *Deps) NodeExists(node string) bool
- func (d *Deps) RemoveNode(node string)
- func (d *Deps) Topological(skipOptDeps bool) (topo []string, cycle []string)
- type RMFOut
- type ReadManifestCallbacks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func ExpandManifestConds ¶
func ExpandManifestConds( dstManifest, refManifest *build.FWAppManifest, interp *interpreter.MosInterpreter, isAppManifest bool, ) error
ExpandManifestConds expands all "conds" in the dstManifest, but all cond "when" expressions are evaluated against the refManifest. Nested conds are not expanded: if there are some new conds left, a new refManifest should be computed by the caller, and ExpandManifestConds should be called again for each lib's manifest and for app's manifest.
NOTE that although cond "when" expressions are evaluated against refManifest, expressions inside of the conditionally-applied manifest (like `${build_vars.FOO} bar`) are expanded against dstManifest. See README.md, Step 3 for details.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func ReadManifest ¶
func ReadManifest( appDir string, adjustments *build.ManifestAdjustments, interp *interpreter.MosInterpreter, ) (*build.FWAppManifest, time.Time, error)
ReadManifest reads manifest file(s) from the specific directory; if the manifest or given BuildParams have arch specified, then the returned manifest will contain all arch-specific adjustments (if any)
func ReadManifestFile ¶
func ReadManifestFile( manifestFullName string, interp *interpreter.MosInterpreter, manifestVersionMandatory bool, ) (*build.FWAppManifest, time.Time, error)
ReadManifestFile reads single manifest file (which can be either "main" app or lib manifest, or some arch-specific adjustment manifest)
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type ComponentProvider ¶
type ComponentProvider interface { // GetLibLocalPath returns local path to the given software module. // NOTE that this method can be called concurrently for different modules. GetLibLocalPath( m *build.SWModule, rootAppDir, libsDefVersion, platform string, ) (string, error) GetModuleLocalPath( m *build.SWModule, rootAppDir, modulesDefVersion, platform string, ) (string, error) }
type Deps ¶
type Deps struct {
// contains filtered or unexported fields
}
func (*Deps) AddNodeWithDeps ¶
func (*Deps) NodeExists ¶
func (*Deps) RemoveNode ¶
func (*Deps) Topological ¶
Topological returns a slice of node names in the topological order. If skipOptDeps is true, optional dependencies are not present in the resulting slice (dependency is optional if it's mentioned as a dependency for some node, but not present as a node itself).
type RMFOut ¶
type RMFOut struct { MTime time.Time MosDirEffective string AppSourceDirs []string AppFSDirs []string AppBinLibDirs []string }
func ReadManifestFinal ¶
func ReadManifestFinal( dir string, adjustments *build.ManifestAdjustments, logWriter io.Writer, interp *interpreter.MosInterpreter, cbs *ReadManifestCallbacks, requireArch, preferPrebuiltLibs bool, binaryLibsUpdateInterval time.Duration, ) (*build.FWAppManifest, *RMFOut, error)
type ReadManifestCallbacks ¶
type ReadManifestCallbacks struct {
ComponentProvider ComponentProvider
}