Documentation ¶
Index ¶
- Constants
- type Asset
- type Dictionaries
- type Dictionary
- type Entity
- type Entry
- type Field
- type Index
- func (idx *Index) Check() error
- func (idx *Index) Clone() *Index
- func (idx *Index) GenerateIndexRaml(includeExamples bool) string
- func (idx *Index) GetAssets() []string
- func (idx *Index) GetDictionaries() (Dictionaries, error)
- func (idx *Index) GetEntities() ([]Entity, error)
- func (idx *Index) PutSerialized(file string)
- func (idx *Index) Save() error
- func (idx *Index) ToBytes() []byte
- type IndexLock
- type LangCode
- type Package
- type PackageInfo
- type SourceInfo
Constants ¶
View Source
const ( IndexFileName = "index.json" PackageType = "cti.a.p.app.package.v1.0" )
View Source
const ( IndexLockFileName = "index-lock.json" IndexLockVersion = "v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dictionaries ¶
type Dictionaries struct {
Dictionaries Dictionary `json:"dictionaries"`
}
type Dictionary ¶
type Index ¶
type Index struct { Type string `json:"type"` AppCode string `json:"app_code"` Apis []string `json:"apis,omitempty"` Entities []string `json:"entities,omitempty"` Assets []string `json:"assets,omitempty"` Dictionaries []string `json:"dictionaries,omitempty"` Depends []string `json:"depends,omitempty"` Examples []string `json:"examples,omitempty"` AdditionalProperties interface{} `json:"additional_properties,omitempty"` Serialized []string `json:"serialized,omitempty"` BaseDir string `json:"-"` FilePath string `json:"-"` }
func ReadIndexFile ¶
func UnmarshalIndexFile ¶
func (*Index) GenerateIndexRaml ¶
func (*Index) GetDictionaries ¶
func (idx *Index) GetDictionaries() (Dictionaries, error)
func (*Index) GetEntities ¶
func (*Index) PutSerialized ¶
type IndexLock ¶
type IndexLock struct { Version string `json:"version"` // Reverse map: key - application code, value - SourceInfo Sources map[string]SourceInfo `json:"sources"` // Direct map: key - source, value - PackageInfo Packages map[string]PackageInfo `json:"packages"` BaseDir string `json:"-"` FilePath string `json:"-"` }
func MakeIndexLock ¶
type Package ¶
func (*Package) SaveIndexLock ¶
type PackageInfo ¶
type SourceInfo ¶
type SourceInfo struct {
Source string `json:"source"`
}
Click to show internal directories.
Click to hide internal directories.