Ggit.CredSshKeyFromAgent

g GObject.GInterface GObject.GInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable GObject.Object GObject.Object Ggit.ObjectFactoryBase Ggit.ObjectFactoryBase GObject.Object->Ggit.ObjectFactoryBase Ggit.Cred Ggit.Cred Ggit.CredSshKeyFromAgent Ggit.CredSshKeyFromAgent Ggit.Cred->Ggit.CredSshKeyFromAgent Ggit.Native Ggit.Native Ggit.Native->Ggit.Cred Ggit.ObjectFactoryBase->Ggit.Native Gio.Initable->Ggit.CredSshKeyFromAgent

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gio.Initable (2)

Structs:

GObject.ObjectClass (5)

class

new (username)

get_username ()

Virtual Methods

Inherited:

GObject.Object (7), Gio.Initable (1)

Properties

Inherited:

Ggit.Native (1)

Name

Type

Flags

Short Description

username

str

r/w/co

The user name

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Ggit.CredSshKeyFromAgent(**kwargs)
Bases:

Ggit.Cred, Gio.Initable

Abstract:

No

Structure:

Ggit.CredSshKeyFromAgentClass

Represents a ssh key agent credential.

classmethod new(username)
Parameters:

username (str) – the username.

Raises:

GLib.Error

Returns:

a new Ggit.CredSshKeyFromAgent or None if there was an error.

Return type:

Ggit.CredSshKeyFromAgent or None

Creates a new Ggit.CredSshKeyFromAgent.

get_username()
Returns:

the username or None.

Return type:

str or None

Gets the username for the credential.

Property Details

Ggit.CredSshKeyFromAgent.props.username
Name:

username

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The user name