dbusapi

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package dbusapi contains the D-Bus API.

Index

Constants

View Source
const (
	Path      = "/com/telekom_mms/fw_id_agent/Agent"
	Interface = "com.telekom_mms.fw_id_agent.Agent"
)

D-Bus object path and interface.

View Source
const (
	PropertyConfig               = "Config"
	PropertyTrustedNetwork       = "TrustedNetwork"
	PropertyLoginState           = "LoginState"
	PropertyLastKeepAliveAt      = "LastKeepAliveAt"
	PropertyKerberosTGTStartTime = "KerberosTGTStartTime"
	PropertyKerberosTGTEndTime   = "KerberosTGTEndTime"
)

Properties.

View Source
const (
	TrustedNetworkUnknown uint32 = iota
	TrustedNetworkNotTrusted
	TrustedNetworkTrusted
)

Property "Trusted Network" states.

View Source
const (
	LoginStateUnknown uint32 = iota
	LoginStateLoggedOut
	LoginStateLoggingIn
	LoginStateLoggedIn
	LoginStateLoggingOut
)

Property "Login State" states.

View Source
const (
	ConfigInvalid = ""
)

Property "Config" values.

View Source
const (
	KerberosTGTEndTimeInvalid int64 = -1
)

Property "Kerberos TGT End Time" values.

View Source
const (
	KerberosTGTStartTimeInvalid int64 = -1
)

Property "Kerberos TGT Start Time" values.

View Source
const (
	LastKeepAliveAtInvalid int64 = -1
)

Property "Last Keep Alive At" values.

View Source
const (
	MethodReLogin = Interface + ".ReLogin"
)

Methods.

View Source
const (
	RequestReLogin = "ReLogin"
)

Request Names.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBusService

type DBusService interface {
	Start() error
	Stop()
	Requests() chan *Request
	SetProperty(name string, value any)
}

DBusService is the D-Bus Service interface.

type Request

type Request struct {
	Name       string
	Parameters []any
	Results    []any
	Error      error
	// contains filtered or unexported fields
}

Request is a D-Bus client request.

func NewRequest

func NewRequest(name string, done chan struct{}) *Request

NewRequest returns a new Request.

func (*Request) Close

func (r *Request) Close()

Close completes the request handling.

func (*Request) Wait

func (r *Request) Wait()

Wait waits for the completion of request handling.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a D-Bus Service.

func NewService

func NewService() *Service

NewService returns a new service.

func (*Service) Requests

func (s *Service) Requests() chan *Request

Requests returns the requests channel of service.

func (*Service) SetProperty

func (s *Service) SetProperty(name string, value any)

SetProperty sets property with name to value.

func (*Service) Start

func (s *Service) Start() error

Start starts the service.

func (*Service) Stop

func (s *Service) Stop()

Stop stops the service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL