orgunits

package
v0.8.3 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 string = ")"
	// KEYNAME is name of key for processing
	KEYNAME string = "ouKey"
	// STARTORGUNITSFIELD is List call attribute string prefix
	STARTORGUNITSFIELD string = "organizationUnits("
)

Variables

View Source
var OrgUnitAttrMap = map[string]string{
	"blockinheritance":  "blockInheritance",
	"description":       "description",
	"etag":              "etag",
	"forcesendfields":   "forceSendFields",
	"kind":              "kind",
	"name":              "name",
	"orgunitid":         "orgUnitId",
	"orgunitpath":       "orgUnitPath",
	"oukey":             "ouKey",
	"parentorgunitid":   "parentOrgUnitId",
	"parentorgunitpath": "parentOrgUnitPath",
}

OrgUnitAttrMap provides lowercase mappings to valid admin.OrgUnit attributes

View Source
var ValidSearchTypes = []string{
	"all",
	"children",
}

ValidSearchTypes provides list of valid types for admin.OrgunitsListCall

Functions

func AddFields

func AddFields(callObj interface{}, attrs string) interface{}

AddFields adds fields to be returned to admin calls

func AddOUPath

func AddOUPath(oulc *admin.OrgunitsListCall, path string) *admin.OrgunitsListCall

AddOUPath adds OrgUnitPath or ID to admin calls

func AddType

func AddType(oulc *admin.OrgunitsListCall, searchType string) *admin.OrgunitsListCall

AddType adds Type to admin calls

func DoGet

func DoGet(ougc *admin.OrgunitsGetCall) (*admin.OrgUnit, error)

DoGet calls the .Do() function on the admin.OrgunitsGetCall

func DoList

func DoList(oulc *admin.OrgunitsListCall) (*admin.OrgUnits, error)

DoList calls the .Do() function on the admin.OrgunitsListCall

func PopulateOrgUnit added in v0.8.0

func PopulateOrgUnit(orgunit *admin.OrgUnit, hdrMap map[int]string, objData []interface{}) error

PopulateOrgUnit is used in batch processing

func PopulateOrgUnitForUpdate added in v0.8.0

func PopulateOrgUnitForUpdate(ouParams *OrgUnitParams, hdrMap map[int]string, objData []interface{}) error

PopulateOrgUnitForUpdate is used in batch processing

func ShowAttrs added in v0.6.0

func ShowAttrs(filter string)

ShowAttrs displays requested orgunit attributes

func ShowFlagValues added in v0.6.0

func ShowFlagValues(lenArgs int, args []string, filter string) error

ShowFlagValues displays enumerated flag values

Types

type Key added in v0.5.0

type Key struct {
	OUKey string
}

Key is struct used to extract ouKey

type OrgUnitParams added in v0.8.0

type OrgUnitParams struct {
	OUKey   string
	OrgUnit *admin.OrgUnit
}

OrgUnitParams holds group data for batch processing

Jump to

Keyboard shortcuts

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