schemas

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 ShowAttrs

func ShowAttrs(filter string)

ShowAttrs displays requested user attributes

func ShowCompAttrs

func ShowCompAttrs(filter string)

ShowCompAttrs displays schema composite attributes

func ShowSubAttrs

func ShowSubAttrs(subAttr string, filter string) error

ShowSubAttrs displays attributes of composite attributes

func ShowSubCompAttrs

func ShowSubCompAttrs(subAttr string, filter string) error

ShowSubCompAttrs displays schema field spec composite attributes

func ShowSubSubAttrs

func ShowSubSubAttrs(subAttr string) error

ShowSubSubAttrs displays attributes of composite attributes

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL