login

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireSessionListFromLogin

func AcquireSessionListFromLogin(ctx context.Context, w http.ResponseWriter) error

func AcquireUserListFromLogin

func AcquireUserListFromLogin(ctx context.Context, w http.ResponseWriter) error

func RegisterRouterLogin

func RegisterRouterLogin(router *mux.Router)

Types

type Login

type Login struct {
	Path     string `json:"path"`
	Property string `json:"property"`
	Value    string `json:"value"`
}

type SDConnection

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

func NewSDConnection

func NewSDConnection() (*SDConnection, error)

func (*SDConnection) Close

func (c *SDConnection) Close()

func (*SDConnection) DBusAcquireUSessionFromLogin

func (c *SDConnection) DBusAcquireUSessionFromLogin(ctx context.Context, id string) (*Session, error)

func (*SDConnection) DBusAcquireUSessionsFromLogin

func (c *SDConnection) DBusAcquireUSessionsFromLogin(ctx context.Context) ([]Session, error)

func (*SDConnection) DBusAcquireUsersFromLogin

func (c *SDConnection) DBusAcquireUsersFromLogin(ctx context.Context) ([]User, error)

type Session

type Session struct {
	ID   string `json:"ID"`
	UID  uint32 `json:"UID"`
	User string `json:"User"`
	Seat string `json:"Seat"`
	Path string `json:"Path"`
}

func (*Session) AcquireSessionFromLogin

func (s *Session) AcquireSessionFromLogin(ctx context.Context, w http.ResponseWriter) error

type User

type User struct {
	UID  uint32 `json:"UID"`
	Name string `json:"Name"`
	Path string `json:"Path"`
}

func (*User) AcquireUserFromLogin

func (u *User) AcquireUserFromLogin(ctx context.Context, w http.ResponseWriter) error

Jump to

Keyboard shortcuts

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