Documentation
¶
Index ¶
- type Client
- func (c *Client) AddGroup(g group.Group) (*group.Group, error)
- func (c *Client) AddKey(user passwd.User, key authorized_keys.SSHKey) error
- func (c *Client) AddUser(user passwd.User, createHome bool) (*passwd.User, error)
- func (c *Client) ClearGroupCache() error
- func (c *Client) ClearUserCache() error
- func (c *Client) CreateHome(user passwd.User) (*passwd.User, error)
- func (c *Client) DeleteGroup(g group.Group) (*group.Group, error)
- func (c *Client) DeleteKey(user passwd.User, key authorized_keys.SSHKey) error
- func (c *Client) DeleteUser(user passwd.User, removeHome bool) (*passwd.User, error)
- func (c *Client) Execute(method string, request, result interface{}) (interface{}, error)
- func (c *Client) FindGroup(g group.Group) (*group.Group, error)
- func (c *Client) FindKey(user passwd.User, key authorized_keys.SSHKey) (*authorized_keys.SSHKey, error)
- func (c *Client) FindUser(user passwd.User) (*passwd.User, error)
- func (c *Client) GetGroups() ([]group.Group, error)
- func (c *Client) GetKeys(user passwd.User) ([]authorized_keys.SSHKey, error)
- func (c *Client) GetURL(method string) string
- func (c *Client) GetUserByName(name string) (*passwd.User, error)
- func (c *Client) GetUserByUid(uid string) (*passwd.User, error)
- func (c *Client) GetUsers() ([]passwd.User, error)
- func (c *Client) R() *resty.Request
- func (c *Client) WithConfig(host, port, user string) *Client
- func (c *Client) WriteKeys(user passwd.User, keys []authorized_keys.SSHKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ApiKey string ApiHost string ApiClient *resty.Client // ApiComment is used to add extra info (like user that performed the action) to keyserver log ApiComment string Host string Port string User string }
func (*Client) ClearGroupCache ¶
func (*Client) ClearUserCache ¶
func (*Client) DeleteUser ¶
func (*Client) FindKey ¶
func (c *Client) FindKey(user passwd.User, key authorized_keys.SSHKey) (*authorized_keys.SSHKey, error)
func (*Client) WithConfig ¶
Click to show internal directories.
Click to hide internal directories.