Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryFilter ¶
type CategoryFilter struct { Name string OrderOn string Greedy bool Sort string //asc or desc. Default behavior is asc Limit int //If 0 or unspecified then all records are returned and limit is not used Offset int }
func (*CategoryFilter) Create ¶
func (cf *CategoryFilter) Create(m map[string]interface{})
Create the filter from map[string]interface{}
type ComponentFilter ¶
type ComponentFilter struct { Name string APIVersion string Greedy bool //when set to true - instead of an exact match, name will be matched as a substring Trim bool //when set to true - the schema is not returned DisplayName string ModelName string CategoryName string Version string Sort string //asc or desc. Default behavior is asc OrderOn string Limit int //If 0 or unspecified then all records are returned and limit is not used Offset int Annotations string //When this query parameter is "true", only components with the "isAnnotation" property set to true are returned. When this query parameter is "false", all components except those considered to be annotation components are returned. Any other value of the query parameter results in both annotations as well as non-annotation models being returned. }
func (*ComponentFilter) Create ¶
func (cf *ComponentFilter) Create(m map[string]interface{})
Create the filter from map[string]interface{}
type ModelFilter ¶
type ModelFilter struct { Name string Registrant string //name of the registrant for a given model DisplayName string //If Name is already passed, avoid passing Display name unless greedy=true, else the filter will translate to an AND returning only the models where name and display name match exactly. Ignore, if this behavior is expected. Greedy bool //when set to true - instead of an exact match, name will be prefix matched. Also an OR will be performed of name and display_name Version string Category string OrderOn string Sort string //asc or desc. Default behavior is asc Limit int //If 0 or unspecified then all records are returned and limit is not used Offset int Annotations string //When this query parameter is "true", only models with the "isAnnotation" property set to true are returned. When this query parameter is "false", all models except those considered to be annotation models are returned. Any other value of the query parameter results in both annoations as well as non-annotation models being returned. // When these are set to true, we also retrieve components/relationships associated with the model. Components bool Relationships bool Status string }
func (*ModelFilter) Create ¶
func (mf *ModelFilter) Create(m map[string]interface{})
Create the filter from map[string]interface{}
Click to show internal directories.
Click to hide internal directories.