Documentation ¶
Index ¶
- Constants
- type ClientDBus
- func (a *ClientDBus) Authenticate(ctx context.Context) (*api.Authz, error)
- func (a *ClientDBus) FetchJWTToken() (bool, error)
- func (a *ClientDBus) OpenSocket(ctx context.Context, authz *api.Authz) (api.Socket, error)
- func (a *ClientDBus) SendInventory(_ context.Context, _ *api.Authz, _ api.Inventory) error
Constants ¶
View Source
const ( DBusObjectName = "io.mender.AuthenticationManager" DBusObjectPath = "/io/mender/AuthenticationManager" DBusInterfaceName = "io.mender.Authentication1" DBusMethodNameGetJwtToken = "GetJwtToken" DBusMethodNameFetchJwtToken = "FetchJwtToken" DBusSignalNameJwtTokenStateChange = "JwtTokenStateChange" DBusMethodTimeoutInMilliSeconds = 5000 )
DbBus constants for the Mender Authentication Manager
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientDBus ¶
type ClientDBus struct {
// contains filtered or unexported fields
}
ClientDBus is the implementation of the client for the Mender Authentication Manager which communicates using DBUS
func NewClient ¶
func NewClient( dbusAPI dbus.DBusAPI, objectName, objectPath, interfaceName string, ) (*ClientDBus, error)
NewAuthClient returns a new api.Client
func (*ClientDBus) Authenticate ¶
GetJWTToken returns a device JWT token and server URL
func (*ClientDBus) FetchJWTToken ¶
func (a *ClientDBus) FetchJWTToken() (bool, error)
FetchJWTToken schedules the fetching of a new device JWT token
func (*ClientDBus) OpenSocket ¶
func (*ClientDBus) SendInventory ¶
Click to show internal directories.
Click to hide internal directories.