Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/canonical/snapd
/ functions
Functions
15,449 in github.com/canonical/snapd
⨍
Functions
15,449
◇
Types & classes
2,178
↓ 12,819 callers
Method
Check
Check tests whether the assertion is properly signed and consistent with all the stored knowledge.
asserts/database.go:185
↓ 2,565 callers
Method
Lock
Lock obtains locks appropriate for the update.
cmd/snap-update-ns/update.go:33
↓ 2,450 callers
Method
Errorf
Errorf logs error information about the progress of the task.
overlord/state/task.go:363
↓ 2,100 callers
Method
Unlock
Unlock releases the state lock and checkpoints the state. It does not return until the state is correctly checkpointed. After too many unsuccessful ch
overlord/state/state.go:233
↓ 966 callers
Method
Set
(snapName, key string, value interface{})
overlord/configstate/config/helpers.go:277
↓ 829 callers
Method
Get
(snapName, key string, result interface{})
overlord/configstate/config/helpers.go:276
↓ 681 callers
Method
InstanceName
InstanceName returns the name of the snap decorated with instance key, if any.
snap/info.go:45
↓ 619 callers
Method
NewTask
NewTask creates a new task. It usually will be registered with a Change using AddTask or through a TaskSet.
overlord/state/state.go:395
↓ 566 callers
Method
NewChange
NewChange adds a new change to the state.
overlord/state/state.go:360
↓ 478 callers
Method
SnippetForTag
SnippetForTag returns a combined snippet for given security tag with individual snippets joined with newline character. Empty string is returned for n
interfaces/dbus/spec.go:61
↓ 456 callers
Method
Get
Get gets the given cacheKey content and puts it into targetPath
store/cache.go:41
↓ 433 callers
Method
Add
(asserts.Assertion)
asserts/assertstest/assertstest.go:484
↓ 427 callers
Method
SecurityTags
SecurityTags returns a list of security tags which have a snippet.
interfaces/dbus/spec.go:71
↓ 423 callers
Method
Close
()
osutil/cp.go:50
↓ 394 callers
Method
AddConnectedPlug
Implementation of methods required by interfaces.Specification AddConnectedPlug records dbus-specific side-effects of having a connected plug.
interfaces/dbus/spec.go:83
↓ 371 callers
Method
String
()
sandbox/cgroup/cgroup.go:116
↓ 361 callers
Method
Calls
Calls returns a list of calls that were made to the mock command. of the form: [][]string{ {"cmd", "arg1", "arg2"}, // first invocation of "cmd" {"cmd
testutil/exec.go:186
↓ 358 callers
Method
Err
Err returns an error value based on errors that were logged for tasks registered in this change, or nil if the change is not in ErrorStatus.
overlord/state/change.go:426
↓ 355 callers
Method
Decode
Decode parses the next assertion from the stream. It returns the error io.EOF at the end of a well-formed stream.
asserts/asserts.go:583
↓ 352 callers
Method
Client
()
store/export_test.go:152
↓ 350 callers
Method
Name
Unique and public name of this interface.
interfaces/core.go:161
↓ 349 callers
Method
State
()
overlord/configstate/config/helpers.go:279
↓ 337 callers
Method
Kind
()
overlord/devicestate/remodel.go:118
↓ 327 callers
Method
Tasks
Tasks returns all tasks currently known to the state and linked to changes.
overlord/state/state.go:405
↓ 319 callers
Method
AddTask
AddTask registers a task as required for the state change to be accomplished.
overlord/state/change.go:456
↓ 319 callers
Method
Set
Set associates value with key for future consulting by managers. The provided value must properly marshal and unmarshal with encoding/json.
overlord/state/task.go:370
↓ 318 callers
Function
die
cmd/libsnap-confine-private/utils.c:30
↓ 302 callers
Method
Unlock
Unlock releases an acquired lock.
osutil/flock.go:71
↓ 262 callers
Method
Ensure
Ensure forces a complete evaluation of the current state. See StateEngine.Ensure for more details.
overlord/stateengine.go:36
↓ 260 callers
Method
Snippets
Snippets returns a deep copy of all the added snippets.
interfaces/dbus/spec.go:51
↓ 259 callers
Method
Open
(path string, flags int, mode uint32)
cmd/snap-update-ns/export_test.go:77
↓ 256 callers
Method
Stdout
()
cmd/snap/main_test.go:116
↓ 256 callers
Function
test_quoting_of
cmd/libsnap-confine-private/string-utils-test.c:474
↓ 249 callers
Method
RedirectClientToTestServer
(handler func(http.ResponseWriter, *http.Request))
cmd/snap/main_test.go:130
↓ 245 callers
Method
Format
Format returns the format iteration of this assertion
asserts/asserts.go:245
↓ 241 callers
Method
AddAll
AddAll registers all tasks in the set as required for the state change to be accomplished.
overlord/state/change.go:467
↓ 241 callers
Method
Stderr
()
cmd/snap/main_test.go:120
↓ 227 callers
Method
Run
()
overlord/ifacestate/udevmonitor/udevmon.go:35
↓ 222 callers
Method
BeforePrepareSlot
(slot *snap.SlotInfo)
interfaces/core.go:177
↓ 219 callers
Method
Status
()
overlord/cmdstate/cmdstate_test.go:51
↓ 215 callers
Method
Set
set progress to the "current" step
progress/progress.go:36
↓ 214 callers
Method
AddCleanup
(func())
overlord/ifacestate/ifacestate_test.go:64
↓ 212 callers
Method
Base
()
boot/boot.go:89
↓ 212 callers
Method
State
()
osutil/syncdir.go:34
↓ 208 callers
Method
SnapName
SnapName returns the name of the snap.
snap/info.go:48
↓ 208 callers
Method
Wait
Wait asks manager to wait for all running activities to finish.
overlord/stateengine.go:51
↓ 206 callers
Method
ID
ID returns the id of the key used for lookup.
asserts/crypto.go:156
↓ 205 callers
Method
AddSnippet
AddSnippet adds a new dbus snippet.
interfaces/dbus/spec.go:38
↓ 204 callers
Method
mockSnap
(c *C, yamlText string)
overlord/ifacestate/ifacestate_test.go:1818
↓ 200 callers
Method
Stat
()
osutil/cp.go:53
↓ 189 callers
Method
Sign
(assertType *asserts.AssertionType, headers map[string]interface{}, body []byte, keyID string)
asserts/assertstest/assertstest.go:160
↓ 185 callers
Method
Restore
Restore removes the mocked command from PATH
testutil/exec.go:169
↓ 166 callers
Method
Model
Model returns the governing device model assertion for the context.
overlord/snapstate/devicectx.go:32
↓ 164 callers
Method
Error
()
systemd/systemd.go:582
↓ 160 callers
Method
AssertedSnapInfo
(snapName string)
seed/seedtest/seedtest.go:122
↓ 159 callers
Method
RCalls
RCalls returns the sequence of mocked calls that have been made along with their results.
testutil/lowlevel.go:220
↓ 159 callers
Method
Status
Status returns the current status of the change. If the status was not explicitly set the result is derived from the status of the individual tasks re
overlord/state/change.go:281
↓ 158 callers
Method
WaitFor
WaitFor registers another task as a requirement for t to make progress.
overlord/state/task.go:404
↓ 157 callers
Method
WriteHeader
(s int)
daemon/daemon.go:294
↓ 155 callers
Method
Interfaces
Interfaces returns object holding a lists of all the plugs and slots and their connections.
interfaces/repo.go:884
↓ 154 callers
Method
Unlock
Unlock releases the lock for this context.
overlord/hookstate/context.go:122
↓ 154 callers
Method
Write
([]byte)
osutil/cp.go:55
↓ 152 callers
Method
Remove
Remove removes and unloads security artefacts of a given snap. This method should be called during the process of removing a snap.
interfaces/backend.go:91
↓ 148 callers
Method
makeSnap
(c *C, yamlKey, publisher string)
seed/seedwriter/writer_test.go:165
↓ 142 callers
Method
BeforePreparePlug
(plug *snap.PlugInfo)
interfaces/core.go:172
↓ 142 callers
Method
Stop
()
overlord/ifacestate/udevmonitor/udevmon.go:36
↓ 141 callers
Method
MountDir
MountDir returns the base directory of the snap.
snap/info.go:58
↓ 140 callers
Method
InsertFault
InsertFault makes given subsequent call to return the specified error. If one error is provided then the call will reliably fail that way. If multipl
testutil/lowlevel.go:174
↓ 139 callers
Function
registerIface
registerIface appends the given interface into the list of all known interfaces.
interfaces/builtin/all.go:49
↓ 138 callers
Method
Bytes
()
strutil/limbuffer.go:49
↓ 135 callers
Method
Ops
()
overlord/snapstate/backend_test.go:75
↓ 130 callers
Method
Set
Set sets the provided snap's configuration key to the given value. The provided key may be formed as a dotted key path through nested maps. For exampl
overlord/configstate/config/transaction.go:114
↓ 130 callers
Method
daemon
(c *check.C)
daemon/api_test.go:370
↓ 129 callers
Method
PublicKey
PublicKey returns the public part of the pair.
asserts/crypto.go:228
↓ 128 callers
Method
settle
(c *C)
overlord/snapstate/snapstate_test.go:86
↓ 127 callers
Method
manager
(c *C)
overlord/ifacestate/ifacestate_test.go:300
↓ 125 callers
Method
Logf
Logf logs information about the progress of the task.
overlord/state/task.go:357
↓ 125 callers
Function
debug
cmd/libsnap-confine-private/utils.c:117
↓ 122 callers
Method
Summary
Summary returns a summary describing what the task is about.
overlord/state/task.go:186
↓ 122 callers
Method
Update
Update applies the update or errors out on failures. When no actual update was applied because the new content is identical a special ErrNoUpdate is r
gadget/update.go:272
↓ 118 callers
Method
Type
Type returns the type of this assertion
asserts/asserts.go:243
↓ 117 callers
Method
AssertedSnapID
(snapName string)
seed/seedtest/seedtest.go:56
↓ 117 callers
Method
Settle
Settle runs first a state engine Ensure and then wait for activities to settle. That's done by waiting for all managers' activities to settle while ma
overlord/overlord.go:505
↓ 116 callers
Method
Status
Status returns the current task status.
overlord/state/task.go:191
↓ 112 callers
Method
HeaderString
HeaderString retrieves the string value of header with name or ""
asserts/asserts.go:262
↓ 111 callers
Method
SetDevice
SetDevice sets the device details in the state.
overlord/storecontext/context.go:58
↓ 109 callers
Method
Model
Model returns the seed provided model assertion. It is an error to call Model before LoadAssertions.
seed/seed.go:74
↓ 108 callers
Method
AddPermanentSlot
AddPermanentSlot records dbus-specific side-effects of having a slot.
interfaces/dbus/spec.go:122
↓ 108 callers
Method
Encode
Encode emits the assertion into the stream with the required separator. Errors here are always about writing given that Encode() itself cannot error.
asserts/asserts.go:1014
↓ 107 callers
Method
Close
(fd int)
cmd/snap-update-ns/export_test.go:72
↓ 107 callers
Method
GetType
GetType returns the type of the snap, including additional snap ID check for the legacy snapd snap definitions.
snap/info.go:437
↓ 107 callers
Method
SetStatus
SetStatus sets the task status, overriding the default behavior (see Status method).
overlord/state/task.go:200
↓ 106 callers
Method
AccountID
AccountID returns the account-id of the account.
asserts/account.go:42
↓ 105 callers
Method
Commit
Commit applies to the state the configuration changes made in the transaction and updates the observed configuration to the result of the operation.
overlord/configstate/config/transaction.go:241
↓ 103 callers
Method
InstallSnap
Support code for tests InstallSnap "installs" a snap from YAML.
interfaces/ifacetest/backendtest.go:164
↓ 103 callers
Method
TaskRunner
TaskRunner returns the shared task runner responsible for running tasks for all managers under the overlord.
overlord/overlord.go:533
↓ 100 callers
Method
AddHandler
AddHandler registers the functions to concurrently call for doing and undoing tasks of the given kind. The undo handler may be nil.
overlord/state/taskrunner.go:90
↓ 99 callers
Method
Repository
Repository returns the interface repository used internally by the manager. This method has two use-cases: - it is needed for setting up state in dae
overlord/ifacestate/ifacemgr.go:235
↓ 98 callers
Method
Find
Find an assertion based on arbitrary headers. Provided headers must contain the primary key for the assertion type. It returns a NotFoundError if the
asserts/database.go:165
↓ 98 callers
Method
InsertFstatResult
InsertFstatResult makes given subsequent call fstat return the specified stat buffer.
testutil/lowlevel.go:401
next →
1–100 of 15,449, ranked by callers