Documentation
¶
Index ¶
- Constants
- Variables
- func AdvertiseService(hostname string, port int, realm string) (*zeroconf.Server, error)
- func Attach(session *xconn.Session, desktopName, orgID string) error
- func CloudURI() string
- func StartInteractiveShell(session *xconn.Session) error
- type Credentials
- type Deskconn
- type MPRIS
- func (m *MPRIS) ListPlayers() (map[string]string, error)
- func (m *MPRIS) Next() error
- func (m *MPRIS) NextPlayer(name string) error
- func (m *MPRIS) Pause() error
- func (m *MPRIS) PausePlayer(name string) error
- func (m *MPRIS) Play() error
- func (m *MPRIS) PlayPause() error
- func (m *MPRIS) PlayPausePlayer(name string) error
- func (m *MPRIS) PlayPlayer(name string) error
- func (m *MPRIS) Previous() error
- func (m *MPRIS) PreviousPlayer(name string) error
- type Screen
Constants ¶
View Source
const ( Realm = "io.xconn.deskconn" ProcedureDeskconnAttachDesktop = "io.xconn.deskconn.desktop.attach" ProcedureDeskconnOrganizationList = "io.xconn.deskconn.organization.list" MachineIDPath = "/etc/machine-id" )
View Source
const ( ProcedureScreenBrightnessGet = "io.xconn.deskconn.deskconnd.screen.brightness.get" ProcedureScreenBrightnessSet = "io.xconn.deskconn.deskconnd.screen.brightness.set" ProcedureScreenLock = "io.xconn.deskconn.deskconnd.screen.lock" ProcedureScreenIsLocked = "io.xconn.deskconn.deskconnd.screen.islocked" ProcedureShell = "io.xconn.deskconn.deskconnd.shell" ProcedureMPRISPlayers = "io.xconn.deskconn.deskconnd.mpris.players" ProcedureMPRISPlayPause = "io.xconn.deskconn.deskconnd.mpris.playpause" ProcedureMPRISPlay = "io.xconn.deskconn.deskconnd.mpris.play" ProcedureMPRISPause = "io.xconn.deskconn.deskconnd.mpris.pause" ProcedureMPRISNext = "io.xconn.deskconn.deskconnd.mpris.next" ProcedureMPRISPrevious = "io.xconn.deskconn.deskconnd.mpris.previous" ErrInvalidArgument = "wamp.error.invalid_argument" ErrOperationFailed = "wamp.error.operation_failed" )
Variables ¶
View Source
var BacklightBasePath = "/sys/class/backlight" //nolint: gochecknoglobals
Functions ¶
func AdvertiseService ¶
func StartInteractiveShell ¶
Types ¶
type Credentials ¶
type Credentials struct {
AuthID string `json:"auth_id"`
PublicKey string `json:"public_key"`
PrivateKey string `json:"private_key"`
OrganizationID string `json:"organization_id"`
}
func EnsureCredentials ¶
func EnsureCredentials() (*Credentials, error)
type Deskconn ¶
type Deskconn struct {
// contains filtered or unexported fields
}
func NewDeskconn ¶
type MPRIS ¶
type MPRIS struct {
// contains filtered or unexported fields
}
func (*MPRIS) NextPlayer ¶
func (*MPRIS) PausePlayer ¶
func (*MPRIS) PlayPausePlayer ¶
func (*MPRIS) PlayPlayer ¶
func (*MPRIS) PreviousPlayer ¶
type Screen ¶
type Screen struct {
// contains filtered or unexported fields
}
func (*Screen) GetBrightness ¶
func (*Screen) SetBrightness ¶
Click to show internal directories.
Click to hide internal directories.