Documentation ¶
Index ¶
- type Client
- func (client *Client) AddUserToGroup(nameuid string, groupgid string) *backends.Error
- func (client *Client) ChangeUserName(nameuid string, password string, newname string) *backends.Error
- func (client *Client) ChangeUserPassword(nameuid string, password string, newpassword string) *backends.Error
- func (client *Client) ClientAuth(password string) *backends.Error
- func (client *Client) Close()
- func (client *Client) CreateGroup(name string) (gid int64, err *backends.Error)
- func (client *Client) CreateUser(name string, password string) (uid int64, err *backends.Error)
- func (client *Client) DeleteGroup(groupgid string) *backends.Error
- func (client *Client) DeleteUser(nameuid string) *backends.Error
- func (client *Client) DisableUser(nameuid string) *backends.Error
- func (client *Client) EnableUser(nameuid string) *backends.Error
- func (client *Client) GetUserData(nameuid string, key string) (string, *backends.Error)
- func (client *Client) GetUserDataKeys(nameuid string) (keys []string, err *backends.Error)
- func (client *Client) GroupUsers(groupgid string) (list []backends.User, err *backends.Error)
- func (client *Client) Groups() (list []backends.Group, err *backends.Error)
- func (client *Client) LoginUser(name string, password string) (uid int64, err *backends.Error)
- func (client *Client) RemoveUserFromGroup(nameuid string, groupgid string) *backends.Error
- func (client *Client) SetUserData(nameuid string, key string, value string) *backends.Error
- func (client *Client) StartTls(config *tls.Config) error
- func (client *Client) StartTlsWithCert(cert string) error
- func (client *Client) StartTlsWithoutCertCheck() error
- func (client *Client) Stats() (stats map[string]int64, err *backends.Error)
- func (client *Client) UserGroups(nameuid string) (list []backends.Group, err *backends.Error)
- func (client *Client) Users() (list []backends.User, err *backends.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func Dial ¶
Dial returns a new Client connected to an ustack server at addr. The addr must include a port number.
func NewClient ¶
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) ChangeUserName ¶
func (*Client) ChangeUserPassword ¶
func (*Client) CreateGroup ¶
func (*Client) CreateUser ¶
func (*Client) GetUserData ¶
func (*Client) GetUserDataKeys ¶
func (*Client) GroupUsers ¶
func (*Client) RemoveUserFromGroup ¶
func (*Client) SetUserData ¶
func (*Client) StartTlsWithCert ¶
func (*Client) StartTlsWithoutCertCheck ¶
func (*Client) UserGroups ¶
Click to show internal directories.
Click to hide internal directories.