Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { //Insert the pssh and key into db Insert(pssh, key string) error //Get returns the key associated with the pssh Get(pssh string) (*Key, error) //SudoSU add user to sudoers list SudoSU(passkey string, superUser, sudoer int) error //Sudoer check whether a user is super_user or sudoer Sudoer(passkey string) (super_user, sudoer int, err error) //Revoke revokes user access Revoke(passkey string) error // Close terminates the database connection. // It returns an error if the connection cannot be closed. Close() error }
Service represents a service that interacts with a database.
Click to show internal directories.
Click to hide internal directories.