users

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2017 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CMListUsersURI = "/api/search?sort=asc&sortBy=com.soa.sort.order.title_sort&Federation=false&count=20&start=0&q=type:user"
)
View Source
const (
	// DeleteUserURI is pattern for the endpoint to delete a user
	DeleteUserURI = "/api/users/%s"
)

Variables

This section is empty.

Functions

func DeleteUserList

func DeleteUserList(users []string, config control.Configuration, debug bool) error

DeleteUserList deletes a list of users from the Platform

func ListUsers

func ListUsers(config control.Configuration, debug bool) error

ListUsers lists users on platform

Types

type User

type User struct {
	Name        string
	ProfileName string
	Version     string
	ID          string
	Domain      string
	Email       string
	UserName    string
}

User is a convenience structure for a CM User

type Users

type Users []User

Users is a collection of API structs

func (Users) Len

func (slice Users) Len() int

Len is an implementation of sort interface for length of Users list

func (Users) Less

func (slice Users) Less(i, j int) bool

Less is an implementation of sort interface for less comparison

func (Users) Swap

func (slice Users) Swap(i, j int)

Swap is an implementation of the sort interface swap function

Jump to

Keyboard shortcuts

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