Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthKeeper ¶
type AuthKeeper interface {
IsReadAuthorized(ctx context.Context) (bool, error)
IsWriteAuthorized(ctx context.Context) (bool, error)
Close() error
}
func NewOauth ¶
func NewOauth(controller string, skipVerify bool) (AuthKeeper, error)
remote auth with oauth2
func NewPolkitAuth ¶
func NewPolkitAuth(dbusName, dbusPath string, timeout uint32) (AuthKeeper, error)
setup the dbus authorization call back.
Click to show internal directories.
Click to hide internal directories.