Documentation ¶
Index ¶
- Variables
- func GetItem(act *Action, schemata schema.Schemata, key string) (any, []string, error)
- func GetModel(act *Action, schemata schema.Schemata) (*model.Model, []string, error)
- func GetPackage(act *Action, schemata schema.Schemata) (*model.Package, []string, error)
- func GetSource(act *Action, schemata schema.Schemata) (*model.Package, error)
- type Action
- type Actions
- type Ordering
- type Orderings
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TypeFolder = &Type{Key: "", Title: "Folder", Icon: "folder", Description: "holds other actions, like a folder"} TypeStatic = &Type{Key: "static", Title: "Static", Icon: "image", Description: "returns HTML for rendering"} TypeSeparator = &Type{Key: "separator", Title: "Separator", Icon: "handle", Description: "a separator, used between other items"} TypeAll = &Type{Key: "all", Title: "All Sources", Icon: "world", Description: "provides actions for each source in the system"} TypeSource = &Type{Key: "source", Title: "Source", Icon: "location", Description: "provides actions for each model in the source"} TypePackage = &Type{Key: "package", Title: "Package", Icon: "tag", Description: "provides actions for a package contained in a source"} TypeModel = &Type{Key: "model", Title: "Model", Icon: "file-text", Description: "provides actions for a model contained in a source"} TypeActivity = &Type{Key: "activity", Title: "Activity", Icon: "happy", Description: "provides actions for a specific activity"} TypeTest = &Type{Key: "test", Title: "Test", Icon: "star", Description: "a test action, who knows what it'll do"} TypeUnknown = &Type{Key: "unknown", Title: "Unknown", Icon: "star", Description: "an unknown action type"} )
View Source
var AllTypes = []*Type{ TypeFolder, TypeStatic, TypeSeparator, TypeAll, TypeSource, TypePackage, TypeModel, TypeActivity, TypeTest, }
View Source
var RootAction = &Action{TypeKey: TypeFolder.Key, Config: util.ValueMap{}}
Functions ¶
func GetPackage ¶
Types ¶
type Action ¶
type Action struct { Key string `json:"key,omitempty"` TypeKey string `json:"type,omitempty"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Icon string `json:"icon,omitempty"` Children Actions `json:"children,omitempty"` Pkg util.Pkg `json:"-"` // injected Config util.ValueMap `json:"config,omitempty"` }
func (*Action) ConfigString ¶
func (*Action) IconWithFallback ¶
Click to show internal directories.
Click to hide internal directories.