Documentation ¶
Index ¶
- Constants
- Variables
- func AddFields(callObj interface{}, attrs string) interface{}
- func DoGet(scgc *admin.SchemasGetCall) (*admin.Schema, error)
- func DoList(sclc *admin.SchemasListCall) (*admin.Schemas, error)
- func ShowAttrs(filter string)
- func ShowCompAttrs(filter string)
- func ShowSubAttrs(subAttr string, filter string) error
- func ShowSubCompAttrs(subAttr string, filter string) error
- func ShowSubSubAttrs(subAttr string) error
Constants ¶
View Source
const ( // ENDFIELD is List call attribute string terminator ENDFIELD = ")" // STARTSCHEMASFIELD is List call attribute string prefix STARTSCHEMASFIELD = "schemas(" )
Variables ¶
View Source
var SchemaAttrMap = map[string]string{
"displayname": "displayName",
"etag": "etag",
"fieldid": "fieldId",
"fieldname": "fieldName",
"fields": "fields",
"fieldtype": "fieldType",
"forcesendfields": "forceSendFields",
"indexed": "indexed",
"kind": "kind",
"maxvalue": "maxValue",
"minvalue": "minValue",
"multivalued": "multiValued",
"numericindexingspec": "numericIndexingSpec",
"readaccesstype": "readAccessType",
"schemaid": "schemaId",
"schemaname": "schemaName",
}
SchemaAttrMap provides lowercase mappings to valid admin.Schema attributes
Functions ¶
func AddFields ¶
func AddFields(callObj interface{}, attrs string) interface{}
AddFields adds fields to be returned from admin calls
func DoGet ¶
func DoGet(scgc *admin.SchemasGetCall) (*admin.Schema, error)
DoGet calls the .Do() function on the admin.SchemasGetCall
func DoList ¶
func DoList(sclc *admin.SchemasListCall) (*admin.Schemas, error)
DoList calls the .Do() function on the admin.SchemasListCall
func ShowCompAttrs ¶
func ShowCompAttrs(filter string)
ShowCompAttrs displays schema composite attributes
func ShowSubAttrs ¶
ShowSubAttrs displays attributes of composite attributes
func ShowSubCompAttrs ¶
ShowSubCompAttrs displays schema field spec composite attributes
func ShowSubSubAttrs ¶
ShowSubSubAttrs displays attributes of composite attributes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.