secrets

package
v0.0.0-...-77ac5d6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Overview

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewCollection

func NewCollection(conn *dbus.Conn, path dbus.ObjectPath) (Collection, error)

type Item

type Item interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewItem

func NewItem(conn *dbus.Conn, path dbus.ObjectPath) (Item, error)

type MockCollection

type MockCollection struct {
	MockInterfaceCollection // interface org.freedesktop.Secret.Collection
	proxy.MockObject
}

type MockInterfaceCollection

type MockInterfaceCollection struct {
	mock.Mock
}

func (*MockInterfaceCollection) ConnectItemChanged

func (v *MockInterfaceCollection) ConnectItemChanged(cb func(item dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)

func (*MockInterfaceCollection) ConnectItemCreated

func (v *MockInterfaceCollection) ConnectItemCreated(cb func(item dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)

func (*MockInterfaceCollection) ConnectItemDeleted

func (v *MockInterfaceCollection) ConnectItemDeleted(cb func(item dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)

func (*MockInterfaceCollection) CreateItem

func (v *MockInterfaceCollection) CreateItem(flags dbus.Flags, properties map[string]dbus.Variant, secret Secret, replace bool) (dbus.ObjectPath, dbus.ObjectPath, error)

func (*MockInterfaceCollection) Created

func (*MockInterfaceCollection) Delete

func (v *MockInterfaceCollection) Delete(flags dbus.Flags) (dbus.ObjectPath, error)

func (*MockInterfaceCollection) GoCreateItem

func (v *MockInterfaceCollection) GoCreateItem(flags dbus.Flags, ch chan *dbus.Call, properties map[string]dbus.Variant, secret Secret, replace bool) *dbus.Call

func (*MockInterfaceCollection) GoDelete

func (v *MockInterfaceCollection) GoDelete(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceCollection) GoSearchItems

func (v *MockInterfaceCollection) GoSearchItems(flags dbus.Flags, ch chan *dbus.Call, attributes map[string]string) *dbus.Call

func (*MockInterfaceCollection) Items

func (*MockInterfaceCollection) Label

func (*MockInterfaceCollection) Locked

func (*MockInterfaceCollection) Modified

func (*MockInterfaceCollection) SearchItems

func (v *MockInterfaceCollection) SearchItems(flags dbus.Flags, attributes map[string]string) ([]dbus.ObjectPath, error)

type MockInterfaceItem

type MockInterfaceItem struct {
	mock.Mock
}

func (*MockInterfaceItem) Attributes

func (v *MockInterfaceItem) Attributes() PropItemAttributes

func (*MockInterfaceItem) Created

func (v *MockInterfaceItem) Created() proxy.PropUint64

func (*MockInterfaceItem) Delete

func (v *MockInterfaceItem) Delete(flags dbus.Flags) (dbus.ObjectPath, error)

func (*MockInterfaceItem) GetSecret

func (v *MockInterfaceItem) GetSecret(flags dbus.Flags, session dbus.ObjectPath) (Secret, error)

func (*MockInterfaceItem) GoDelete

func (v *MockInterfaceItem) GoDelete(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceItem) GoGetSecret

func (v *MockInterfaceItem) GoGetSecret(flags dbus.Flags, ch chan *dbus.Call, session dbus.ObjectPath) *dbus.Call

func (*MockInterfaceItem) GoSetSecret

func (v *MockInterfaceItem) GoSetSecret(flags dbus.Flags, ch chan *dbus.Call, secret Secret) *dbus.Call

func (*MockInterfaceItem) Label

func (v *MockInterfaceItem) Label() proxy.PropString

func (*MockInterfaceItem) Locked

func (v *MockInterfaceItem) Locked() proxy.PropBool

func (*MockInterfaceItem) Modified

func (v *MockInterfaceItem) Modified() proxy.PropUint64

func (*MockInterfaceItem) SetSecret

func (v *MockInterfaceItem) SetSecret(flags dbus.Flags, secret Secret) error

func (*MockInterfaceItem) Type

type MockInterfacePrompt

type MockInterfacePrompt struct {
	mock.Mock
}

func (*MockInterfacePrompt) ConnectCompleted

func (v *MockInterfacePrompt) ConnectCompleted(cb func(dismissed bool, result dbus.Variant)) (dbusutil.SignalHandlerId, error)

func (*MockInterfacePrompt) Dismiss

func (v *MockInterfacePrompt) Dismiss(flags dbus.Flags) error

func (*MockInterfacePrompt) GoDismiss

func (v *MockInterfacePrompt) GoDismiss(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfacePrompt) GoPrompt

func (v *MockInterfacePrompt) GoPrompt(flags dbus.Flags, ch chan *dbus.Call, window_id string) *dbus.Call

func (*MockInterfacePrompt) Prompt

func (v *MockInterfacePrompt) Prompt(flags dbus.Flags, window_id string) error

type MockInterfaceService

type MockInterfaceService struct {
	mock.Mock
}

func (*MockInterfaceService) ChangeLock

func (v *MockInterfaceService) ChangeLock(flags dbus.Flags, collection dbus.ObjectPath) (dbus.ObjectPath, error)

func (*MockInterfaceService) Collections

func (*MockInterfaceService) ConnectCollectionChanged

func (v *MockInterfaceService) ConnectCollectionChanged(cb func(collection dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)

func (*MockInterfaceService) ConnectCollectionCreated

func (v *MockInterfaceService) ConnectCollectionCreated(cb func(collection dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)

func (*MockInterfaceService) ConnectCollectionDeleted

func (v *MockInterfaceService) ConnectCollectionDeleted(cb func(collection dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)

func (*MockInterfaceService) CreateCollection

func (v *MockInterfaceService) CreateCollection(flags dbus.Flags, properties map[string]dbus.Variant, alias string) (dbus.ObjectPath, dbus.ObjectPath, error)

func (*MockInterfaceService) GetSecrets

func (v *MockInterfaceService) GetSecrets(flags dbus.Flags, items []dbus.ObjectPath, session dbus.ObjectPath) (map[dbus.ObjectPath]Secret, error)

func (*MockInterfaceService) GoChangeLock

func (v *MockInterfaceService) GoChangeLock(flags dbus.Flags, ch chan *dbus.Call, collection dbus.ObjectPath) *dbus.Call

func (*MockInterfaceService) GoCreateCollection

func (v *MockInterfaceService) GoCreateCollection(flags dbus.Flags, ch chan *dbus.Call, properties map[string]dbus.Variant, alias string) *dbus.Call

func (*MockInterfaceService) GoGetSecrets

func (v *MockInterfaceService) GoGetSecrets(flags dbus.Flags, ch chan *dbus.Call, items []dbus.ObjectPath, session dbus.ObjectPath) *dbus.Call

func (*MockInterfaceService) GoLock

func (v *MockInterfaceService) GoLock(flags dbus.Flags, ch chan *dbus.Call, objects []dbus.ObjectPath) *dbus.Call

func (*MockInterfaceService) GoLockService

func (v *MockInterfaceService) GoLockService(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceService) GoOpenSession

func (v *MockInterfaceService) GoOpenSession(flags dbus.Flags, ch chan *dbus.Call, algorithm string, input dbus.Variant) *dbus.Call

func (*MockInterfaceService) GoReadAlias

func (v *MockInterfaceService) GoReadAlias(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call

func (*MockInterfaceService) GoSearchItems

func (v *MockInterfaceService) GoSearchItems(flags dbus.Flags, ch chan *dbus.Call, attributes map[string]string) *dbus.Call

func (*MockInterfaceService) GoSetAlias

func (v *MockInterfaceService) GoSetAlias(flags dbus.Flags, ch chan *dbus.Call, name string, collection dbus.ObjectPath) *dbus.Call

func (*MockInterfaceService) GoUnlock

func (v *MockInterfaceService) GoUnlock(flags dbus.Flags, ch chan *dbus.Call, objects []dbus.ObjectPath) *dbus.Call

func (*MockInterfaceService) Lock

func (v *MockInterfaceService) Lock(flags dbus.Flags, objects []dbus.ObjectPath) ([]dbus.ObjectPath, dbus.ObjectPath, error)

func (*MockInterfaceService) LockService

func (v *MockInterfaceService) LockService(flags dbus.Flags) error

func (*MockInterfaceService) OpenSession

func (v *MockInterfaceService) OpenSession(flags dbus.Flags, algorithm string, input dbus.Variant) (dbus.Variant, dbus.ObjectPath, error)

func (*MockInterfaceService) ReadAlias

func (v *MockInterfaceService) ReadAlias(flags dbus.Flags, name string) (dbus.ObjectPath, error)

func (*MockInterfaceService) SearchItems

func (v *MockInterfaceService) SearchItems(flags dbus.Flags, attributes map[string]string) ([]dbus.ObjectPath, []dbus.ObjectPath, error)

func (*MockInterfaceService) SetAlias

func (v *MockInterfaceService) SetAlias(flags dbus.Flags, name string, collection dbus.ObjectPath) error

func (*MockInterfaceService) Unlock

func (v *MockInterfaceService) Unlock(flags dbus.Flags, objects []dbus.ObjectPath) ([]dbus.ObjectPath, dbus.ObjectPath, error)

type MockInterfaceSession

type MockInterfaceSession struct {
	mock.Mock
}

func (*MockInterfaceSession) Close

func (v *MockInterfaceSession) Close(flags dbus.Flags) error

func (*MockInterfaceSession) GoClose

func (v *MockInterfaceSession) GoClose(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

type MockItem

type MockItem struct {
	MockInterfaceItem // interface org.freedesktop.Secret.Item
	proxy.MockObject
}

type MockPrompt

type MockPrompt struct {
	MockInterfacePrompt // interface org.freedesktop.Secret.Prompt
	proxy.MockObject
}

type MockPropItemAttributes

type MockPropItemAttributes struct {
	mock.Mock
}

func (MockPropItemAttributes) ConnectChanged

func (p MockPropItemAttributes) ConnectChanged(cb func(hasValue bool, value map[string]string)) error

func (MockPropItemAttributes) Get

func (p MockPropItemAttributes) Get(flags dbus.Flags) (value map[string]string, err error)

func (MockPropItemAttributes) Set

func (p MockPropItemAttributes) Set(flags dbus.Flags, value map[string]string) error

type MockService

type MockService struct {
	MockInterfaceService // interface org.freedesktop.Secret.Service
	proxy.MockObject
}

type MockSession

type MockSession struct {
	MockInterfaceSession // interface org.freedesktop.Secret.Session
	proxy.MockObject
}

type Prompt

type Prompt interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewPrompt

func NewPrompt(conn *dbus.Conn, path dbus.ObjectPath) (Prompt, error)

type PropItemAttributes

type PropItemAttributes interface {
	Get(flags dbus.Flags) (value map[string]string, err error)
	Set(flags dbus.Flags, value map[string]string) error
	ConnectChanged(cb func(hasValue bool, value map[string]string)) error
}

type Secret

type Secret struct {
	Session     dbus.ObjectPath
	Parameters  []byte
	Value       []byte
	ContentType string
}

type Service

type Service interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewService

func NewService(conn *dbus.Conn) Service

type Session

type Session interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewSession

func NewSession(conn *dbus.Conn, path dbus.ObjectPath) (Session, error)

Jump to

Keyboard shortcuts

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