SnapdUserInformation

SnapdUserInformation — User information class

Functions

Properties

GStrv ssh-keys Read / Write / Construct Only
gchar * username Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── SnapdUserInformation

Includes

#include <snapd-glib/snapd-glib.h>

Description

A SnapdUserInformation object contains the information about local users created using snapd_client_create_user_sync() and snapd_client_create_users_sync().

Functions

snapd_user_information_get_username ()

const gchar *
snapd_user_information_get_username (SnapdUserInformation *user_information);

Get the local username for this account.

Parameters

user_information

a SnapdUserInformation.

 

Returns

a username.

Since: 1.3


snapd_user_information_get_ssh_keys ()

gchar **
snapd_user_information_get_ssh_keys (SnapdUserInformation *user_information);

Get the SSH keys added to this account.

Parameters

user_information

a SnapdUserInformation.

 

Returns

the names of the SSH keys.

[transfer none][array zero-terminated=1]

Since: 1.3

Types and Values

SnapdUserInformation

typedef struct _SnapdUserInformation SnapdUserInformation;

SnapdUserInformation is an opaque data structure and can only be accessed using the provided functions.

Since: 1.3

Property Details

The “ssh-keys” property

  “ssh-keys”                 GStrv

SSH keys.

Flags: Read / Write / Construct Only


The “username” property

  “username”                 gchar *

Unix username.

Flags: Read / Write / Construct Only

Default value: NULL