uaac

package
Version: v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultUAACManager

type DefaultUAACManager struct {
	Host      string
	UUACToken string
}

DefaultUAACManager -

func (*DefaultUAACManager) CreateExternalUser added in v0.0.42

func (m *DefaultUAACManager) CreateExternalUser(userName, userEmail, externalID, origin string) error

CreateExternalUser -

func (*DefaultUAACManager) ListUsers

func (m *DefaultUAACManager) ListUsers() (map[string]string, error)

ListUsers - Returns a map containing username as key and user guid as value

func (*DefaultUAACManager) UsersByID added in v0.0.53

func (m *DefaultUAACManager) UsersByID() (userIDMap map[string]User, err error)

UsersByID returns a map of Users keyed by ID.

type Manager

type Manager interface {

	//Returns a map keyed and valued by user id. User id is converted to lowercase
	ListUsers() (map[string]string, error)

	// Returns a map keyed by userid and value as User struct.
	// Return an empty map if an error occurs or if there are no users found
	UsersByID() (map[string]User, error)

	CreateExternalUser(userName, userEmail, externalID, origin string) (err error)
}

Manager -

func NewManager

func NewManager(systemDomain, uuacToken string) (mgr Manager)

NewManager -

type User

type User struct {
	ID       string `json:"id"`
	UserName string `json:"userName"`
	Origin   string `json:"origin"`
}

User -

type UserList

type UserList struct {
	Users []User `json:"resources"`
}

UserList -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL