Documentation ¶
Index ¶
- func Run(task structs.Task)
- type KeyInformation
- type Keydetails
- func ListKeysForProcess() ([]Keydetails, error)
- func ListKeysForSession() ([]Keydetails, error)
- func ListKeysForThreads() ([]Keydetails, error)
- func ListKeysForUserSession() ([]Keydetails, error)
- func Searchcurrentsessionkeyring(name string) ([]Keydetails, error)
- func Searchforkeywithtype(name string, typeName string) ([]Keydetails, error)
- type Keyresults
- type LinuxKeyInformation
- type Options
- type Permissiondetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyInformation ¶
KeyInformation - interface for key data
type Keydetails ¶
type Keydetails struct { Name string `json:"name"` ID int32 `json:"id"` Permissions Permissiondetails `json:"permissions"` Keytype string `json:"keytype"` UID int `json:"uid"` Valid bool `json:"valid"` Data string `json:"string"` }
Keydetails - struct that holds information about a key
func ListKeysForProcess ¶
func ListKeysForProcess() ([]Keydetails, error)
func ListKeysForSession ¶
func ListKeysForSession() ([]Keydetails, error)
ListKeysForSession - List all of the keys for the current session
func ListKeysForThreads ¶
func ListKeysForThreads() ([]Keydetails, error)
func ListKeysForUserSession ¶
func ListKeysForUserSession() ([]Keydetails, error)
ListKeysForUserSession - List all of the keys private to the current user
func Searchcurrentsessionkeyring ¶
func Searchcurrentsessionkeyring(name string) ([]Keydetails, error)
func Searchforkeywithtype ¶
func Searchforkeywithtype(name string, typeName string) ([]Keydetails, error)
type Keyresults ¶
type Keyresults struct {
Results []Keydetails `json:"results"`
}
Keyresults - struct to hold array of keys
type LinuxKeyInformation ¶
KeyContents - struct that represent raw key contents
func (*LinuxKeyInformation) Data ¶
func (l *LinuxKeyInformation) Data() []byte
KeyData - Retrieve the keydata as a raw json string
func (*LinuxKeyInformation) Type ¶
func (l *LinuxKeyInformation) Type() string
Type - The type of key information. Keyring or keychain
Click to show internal directories.
Click to hide internal directories.