Documentation ¶
Index ¶
- Constants
- type ActionDescription
- type Authority
- func (v *Authority) AuthenticationAgentResponse(flags dbus.Flags, cookie string, identity Identity) error
- func (v *Authority) AuthenticationAgentResponse2(flags dbus.Flags, uid uint32, cookie string, identity Identity) error
- func (v *Authority) BackendFeatures() proxy.PropUint32
- func (v *Authority) BackendName() proxy.PropString
- func (v *Authority) BackendVersion() proxy.PropString
- func (v *Authority) CancelCheckAuthorization(flags dbus.Flags, cancellation_id string) error
- func (v *Authority) CheckAuthorization(flags dbus.Flags, subject Subject, action_id string, details map[string]string, ...) (result AuthorizationResult, err error)
- func (v *Authority) ConnectChanged(cb func()) (dbusutil.SignalHandlerId, error)
- func (v *Authority) EnumerateActions(flags dbus.Flags, locale string) (action_descriptions []ActionDescription, err error)
- func (v *Authority) EnumerateTemporaryAuthorizations(flags dbus.Flags, subject Subject) (temporary_authorizations TemporaryAuthorization, err error)
- func (*Authority) GetInterfaceName_() string
- func (v *Authority) GetObject_() *proxy.Object
- func (v *Authority) GoAuthenticationAgentResponse(flags dbus.Flags, ch chan *dbus.Call, cookie string, identity Identity) *dbus.Call
- func (v *Authority) GoAuthenticationAgentResponse2(flags dbus.Flags, ch chan *dbus.Call, uid uint32, cookie string, ...) *dbus.Call
- func (v *Authority) GoCancelCheckAuthorization(flags dbus.Flags, ch chan *dbus.Call, cancellation_id string) *dbus.Call
- func (v *Authority) GoCheckAuthorization(flags dbus.Flags, ch chan *dbus.Call, subject Subject, action_id string, ...) *dbus.Call
- func (v *Authority) GoEnumerateActions(flags dbus.Flags, ch chan *dbus.Call, locale string) *dbus.Call
- func (v *Authority) GoEnumerateTemporaryAuthorizations(flags dbus.Flags, ch chan *dbus.Call, subject Subject) *dbus.Call
- func (v *Authority) GoRegisterAuthenticationAgent(flags dbus.Flags, ch chan *dbus.Call, subject Subject, locale string, ...) *dbus.Call
- func (v *Authority) GoRegisterAuthenticationAgentWithOptions(flags dbus.Flags, ch chan *dbus.Call, subject Subject, locale string, ...) *dbus.Call
- func (v *Authority) GoRevokeTemporaryAuthorizationById(flags dbus.Flags, ch chan *dbus.Call, id string) *dbus.Call
- func (v *Authority) GoRevokeTemporaryAuthorizations(flags dbus.Flags, ch chan *dbus.Call, subject Subject) *dbus.Call
- func (v *Authority) GoUnregisterAuthenticationAgent(flags dbus.Flags, ch chan *dbus.Call, subject Subject, object_path string) *dbus.Call
- func (v *Authority) RegisterAuthenticationAgent(flags dbus.Flags, subject Subject, locale string, object_path string) error
- func (v *Authority) RegisterAuthenticationAgentWithOptions(flags dbus.Flags, subject Subject, locale string, object_path string, ...) error
- func (v *Authority) RevokeTemporaryAuthorizationById(flags dbus.Flags, id string) error
- func (v *Authority) RevokeTemporaryAuthorizations(flags dbus.Flags, subject Subject) error
- func (*Authority) StoreCheckAuthorization(call *dbus.Call) (result AuthorizationResult, err error)
- func (*Authority) StoreEnumerateActions(call *dbus.Call) (action_descriptions []ActionDescription, err error)
- func (*Authority) StoreEnumerateTemporaryAuthorizations(call *dbus.Call) (temporary_authorizations TemporaryAuthorization, err error)
- func (v *Authority) UnregisterAuthenticationAgent(flags dbus.Flags, subject Subject, object_path string) error
- type AuthorizationResult
- type Identity
- type ImplicitAuthorization
- type Subject
- type TemporaryAuthorization
Constants ¶
View Source
const ( SubjectKindUnixProcess = "unix-process" SubjectKindUnixSession = "unix-session" SubjectKindSystemBusName = "system-bus-name" )
SubjectKind
View Source
const ( CheckAuthorizationFlagsNone = 0 CheckAuthorizationFlagsAllowUserInteraction = 1 )
CheckAuthorizationFlags
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionDescription ¶
type ActionDescription struct { ActionId string Description string Message string VendorName string VendorURL string IconName string ImplicitAny ImplicitAuthorization ImplicitInactive ImplicitAuthorization ImplicitActive ImplicitAuthorization // contains filtered or unexported fields }
type Authority ¶
func NewAuthority ¶
func NewAuthority(conn *dbus.Conn) *Authority
func (*Authority) AuthenticationAgentResponse ¶
func (*Authority) AuthenticationAgentResponse2 ¶
func (*Authority) BackendFeatures ¶
func (v *Authority) BackendFeatures() proxy.PropUint32
func (*Authority) BackendName ¶
func (v *Authority) BackendName() proxy.PropString
func (*Authority) BackendVersion ¶
func (v *Authority) BackendVersion() proxy.PropString
func (*Authority) CancelCheckAuthorization ¶
func (*Authority) CheckAuthorization ¶
func (*Authority) ConnectChanged ¶
func (v *Authority) ConnectChanged(cb func()) (dbusutil.SignalHandlerId, error)
func (*Authority) EnumerateActions ¶
func (v *Authority) EnumerateActions(flags dbus.Flags, locale string) (action_descriptions []ActionDescription, err error)
func (*Authority) EnumerateTemporaryAuthorizations ¶
func (v *Authority) EnumerateTemporaryAuthorizations(flags dbus.Flags, subject Subject) (temporary_authorizations TemporaryAuthorization, err error)
func (*Authority) GetInterfaceName_ ¶
func (*Authority) GetInterfaceName_() string
func (*Authority) GetObject_ ¶
func (*Authority) GoAuthenticationAgentResponse ¶
func (*Authority) GoAuthenticationAgentResponse2 ¶
func (*Authority) GoCancelCheckAuthorization ¶
func (v *Authority) GoCancelCheckAuthorization(flags dbus.Flags, ch chan *dbus.Call, cancellation_id string) *dbus.Call
func (*Authority) GoCheckAuthorization ¶
func (*Authority) GoEnumerateActions ¶
func (v *Authority) GoEnumerateActions(flags dbus.Flags, ch chan *dbus.Call, locale string) *dbus.Call
func (*Authority) GoEnumerateTemporaryAuthorizations ¶
func (v *Authority) GoEnumerateTemporaryAuthorizations(flags dbus.Flags, ch chan *dbus.Call, subject Subject) *dbus.Call
func (*Authority) GoRegisterAuthenticationAgent ¶
func (*Authority) GoRegisterAuthenticationAgentWithOptions ¶
func (*Authority) GoRevokeTemporaryAuthorizationById ¶
func (v *Authority) GoRevokeTemporaryAuthorizationById(flags dbus.Flags, ch chan *dbus.Call, id string) *dbus.Call
func (*Authority) GoRevokeTemporaryAuthorizations ¶
func (v *Authority) GoRevokeTemporaryAuthorizations(flags dbus.Flags, ch chan *dbus.Call, subject Subject) *dbus.Call
func (*Authority) GoUnregisterAuthenticationAgent ¶
func (*Authority) RegisterAuthenticationAgent ¶
func (*Authority) RegisterAuthenticationAgentWithOptions ¶
func (*Authority) RevokeTemporaryAuthorizationById ¶
func (*Authority) RevokeTemporaryAuthorizations ¶
func (*Authority) StoreCheckAuthorization ¶
func (*Authority) StoreCheckAuthorization(call *dbus.Call) (result AuthorizationResult, err error)
func (*Authority) StoreEnumerateActions ¶
func (*Authority) StoreEnumerateActions(call *dbus.Call) (action_descriptions []ActionDescription, err error)
func (*Authority) StoreEnumerateTemporaryAuthorizations ¶
func (*Authority) StoreEnumerateTemporaryAuthorizations(call *dbus.Call) (temporary_authorizations TemporaryAuthorization, err error)
func (*Authority) UnregisterAuthenticationAgent ¶
type AuthorizationResult ¶
type ImplicitAuthorization ¶
type ImplicitAuthorization uint32
type Subject ¶
func MakeSubject ¶
Click to show internal directories.
Click to hide internal directories.