client

package
v0.0.0-...-92711a6 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2014 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Text *textproto.Conn
	// contains filtered or unexported fields
}

func Dial

func Dial(addr string) (*Client, error)

Dial returns a new Client connected to an ustack server at addr. The addr must include a port number.

func NewClient

func NewClient(conn net.Conn, host string) (*Client, error)

NewClient returns a new Client using an existing connection and host as a server name to be used when authenticating.

func (*Client) AddUserToGroup

func (client *Client) AddUserToGroup(nameuid string, groupgid string) *backends.Error

func (*Client) ChangeUserName

func (client *Client) ChangeUserName(nameuid string, password string, newname string) *backends.Error

func (*Client) ChangeUserPassword

func (client *Client) ChangeUserPassword(nameuid string, password string, newpassword string) *backends.Error

func (*Client) ClientAuth

func (client *Client) ClientAuth(password string) *backends.Error

func (*Client) Close

func (client *Client) Close()

func (*Client) CreateGroup

func (client *Client) CreateGroup(name string) (gid int64, err *backends.Error)

func (*Client) CreateUser

func (client *Client) CreateUser(name string, password string) (uid int64, err *backends.Error)

func (*Client) DeleteGroup

func (client *Client) DeleteGroup(groupgid string) *backends.Error

func (*Client) DeleteUser

func (client *Client) DeleteUser(nameuid string) *backends.Error

func (*Client) DisableUser

func (client *Client) DisableUser(nameuid string) *backends.Error

func (*Client) EnableUser

func (client *Client) EnableUser(nameuid string) *backends.Error

func (*Client) GetUserData

func (client *Client) GetUserData(nameuid string, key string) (string, *backends.Error)

func (*Client) GetUserDataKeys

func (client *Client) GetUserDataKeys(nameuid string) (keys []string, err *backends.Error)

func (*Client) GroupUsers

func (client *Client) GroupUsers(groupgid string) (list []backends.User, err *backends.Error)

func (*Client) Groups

func (client *Client) Groups() (list []backends.Group, err *backends.Error)

func (*Client) LoginUser

func (client *Client) LoginUser(name string, password string) (uid int64, err *backends.Error)

func (*Client) RemoveUserFromGroup

func (client *Client) RemoveUserFromGroup(nameuid string, groupgid string) *backends.Error

func (*Client) SetUserData

func (client *Client) SetUserData(nameuid string, key string, value string) *backends.Error

func (*Client) StartTls

func (client *Client) StartTls(config *tls.Config) error

func (*Client) StartTlsWithCert

func (client *Client) StartTlsWithCert(cert string) error

func (*Client) StartTlsWithoutCertCheck

func (client *Client) StartTlsWithoutCertCheck() error

func (*Client) Stats

func (client *Client) Stats() (stats map[string]int64, err *backends.Error)

func (*Client) UserGroups

func (client *Client) UserGroups(nameuid string) (list []backends.Group, err *backends.Error)

func (*Client) Users

func (client *Client) Users() (list []backends.User, err *backends.Error)

Jump to

Keyboard shortcuts

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