MCPcopy Create free account

hub / github.com/canonical/snapd / functions

Functions15,449 in github.com/canonical/snapd

↓ 12,819 callersMethodCheck
Check tests whether the assertion is properly signed and consistent with all the stored knowledge.
asserts/database.go:185
↓ 2,565 callersMethodLock
Lock obtains locks appropriate for the update.
cmd/snap-update-ns/update.go:33
↓ 2,450 callersMethodErrorf
Errorf logs error information about the progress of the task.
overlord/state/task.go:363
↓ 2,100 callersMethodUnlock
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 callersMethodSet
(snapName, key string, value interface{})
overlord/configstate/config/helpers.go:277
↓ 829 callersMethodGet
(snapName, key string, result interface{})
overlord/configstate/config/helpers.go:276
↓ 681 callersMethodInstanceName
InstanceName returns the name of the snap decorated with instance key, if any.
snap/info.go:45
↓ 619 callersMethodNewTask
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 callersMethodNewChange
NewChange adds a new change to the state.
overlord/state/state.go:360
↓ 478 callersMethodSnippetForTag
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 callersMethodGet
Get gets the given cacheKey content and puts it into targetPath
store/cache.go:41
↓ 433 callersMethodAdd
(asserts.Assertion)
asserts/assertstest/assertstest.go:484
↓ 427 callersMethodSecurityTags
SecurityTags returns a list of security tags which have a snippet.
interfaces/dbus/spec.go:71
↓ 423 callersMethodClose
()
osutil/cp.go:50
↓ 394 callersMethodAddConnectedPlug
Implementation of methods required by interfaces.Specification AddConnectedPlug records dbus-specific side-effects of having a connected plug.
interfaces/dbus/spec.go:83
↓ 371 callersMethodString
()
sandbox/cgroup/cgroup.go:116
↓ 361 callersMethodCalls
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 callersMethodErr
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 callersMethodDecode
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 callersMethodClient
()
store/export_test.go:152
↓ 350 callersMethodName
Unique and public name of this interface.
interfaces/core.go:161
↓ 349 callersMethodState
()
overlord/configstate/config/helpers.go:279
↓ 337 callersMethodKind
()
overlord/devicestate/remodel.go:118
↓ 327 callersMethodTasks
Tasks returns all tasks currently known to the state and linked to changes.
overlord/state/state.go:405
↓ 319 callersMethodAddTask
AddTask registers a task as required for the state change to be accomplished.
overlord/state/change.go:456
↓ 319 callersMethodSet
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 callersFunctiondie
cmd/libsnap-confine-private/utils.c:30
↓ 302 callersMethodUnlock
Unlock releases an acquired lock.
osutil/flock.go:71
↓ 262 callersMethodEnsure
Ensure forces a complete evaluation of the current state. See StateEngine.Ensure for more details.
overlord/stateengine.go:36
↓ 260 callersMethodSnippets
Snippets returns a deep copy of all the added snippets.
interfaces/dbus/spec.go:51
↓ 259 callersMethodOpen
(path string, flags int, mode uint32)
cmd/snap-update-ns/export_test.go:77
↓ 256 callersMethodStdout
()
cmd/snap/main_test.go:116
↓ 256 callersFunctiontest_quoting_of
cmd/libsnap-confine-private/string-utils-test.c:474
↓ 249 callersMethodRedirectClientToTestServer
(handler func(http.ResponseWriter, *http.Request))
cmd/snap/main_test.go:130
↓ 245 callersMethodFormat
Format returns the format iteration of this assertion
asserts/asserts.go:245
↓ 241 callersMethodAddAll
AddAll registers all tasks in the set as required for the state change to be accomplished.
overlord/state/change.go:467
↓ 241 callersMethodStderr
()
cmd/snap/main_test.go:120
↓ 227 callersMethodRun
()
overlord/ifacestate/udevmonitor/udevmon.go:35
↓ 222 callersMethodBeforePrepareSlot
(slot *snap.SlotInfo)
interfaces/core.go:177
↓ 219 callersMethodStatus
()
overlord/cmdstate/cmdstate_test.go:51
↓ 215 callersMethodSet
set progress to the "current" step
progress/progress.go:36
↓ 214 callersMethodAddCleanup
(func())
overlord/ifacestate/ifacestate_test.go:64
↓ 212 callersMethodBase
()
boot/boot.go:89
↓ 212 callersMethodState
()
osutil/syncdir.go:34
↓ 208 callersMethodSnapName
SnapName returns the name of the snap.
snap/info.go:48
↓ 208 callersMethodWait
Wait asks manager to wait for all running activities to finish.
overlord/stateengine.go:51
↓ 206 callersMethodID
ID returns the id of the key used for lookup.
asserts/crypto.go:156
↓ 205 callersMethodAddSnippet
AddSnippet adds a new dbus snippet.
interfaces/dbus/spec.go:38
↓ 204 callersMethodmockSnap
(c *C, yamlText string)
overlord/ifacestate/ifacestate_test.go:1818
↓ 200 callersMethodStat
()
osutil/cp.go:53
↓ 189 callersMethodSign
(assertType *asserts.AssertionType, headers map[string]interface{}, body []byte, keyID string)
asserts/assertstest/assertstest.go:160
↓ 185 callersMethodRestore
Restore removes the mocked command from PATH
testutil/exec.go:169
↓ 166 callersMethodModel
Model returns the governing device model assertion for the context.
overlord/snapstate/devicectx.go:32
↓ 164 callersMethodError
()
systemd/systemd.go:582
↓ 160 callersMethodAssertedSnapInfo
(snapName string)
seed/seedtest/seedtest.go:122
↓ 159 callersMethodRCalls
RCalls returns the sequence of mocked calls that have been made along with their results.
testutil/lowlevel.go:220
↓ 159 callersMethodStatus
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 callersMethodWaitFor
WaitFor registers another task as a requirement for t to make progress.
overlord/state/task.go:404
↓ 157 callersMethodWriteHeader
(s int)
daemon/daemon.go:294
↓ 155 callersMethodInterfaces
Interfaces returns object holding a lists of all the plugs and slots and their connections.
interfaces/repo.go:884
↓ 154 callersMethodUnlock
Unlock releases the lock for this context.
overlord/hookstate/context.go:122
↓ 154 callersMethodWrite
([]byte)
osutil/cp.go:55
↓ 152 callersMethodRemove
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 callersMethodmakeSnap
(c *C, yamlKey, publisher string)
seed/seedwriter/writer_test.go:165
↓ 142 callersMethodBeforePreparePlug
(plug *snap.PlugInfo)
interfaces/core.go:172
↓ 142 callersMethodStop
()
overlord/ifacestate/udevmonitor/udevmon.go:36
↓ 141 callersMethodMountDir
MountDir returns the base directory of the snap.
snap/info.go:58
↓ 140 callersMethodInsertFault
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 callersFunctionregisterIface
registerIface appends the given interface into the list of all known interfaces.
interfaces/builtin/all.go:49
↓ 138 callersMethodBytes
()
strutil/limbuffer.go:49
↓ 135 callersMethodOps
()
overlord/snapstate/backend_test.go:75
↓ 130 callersMethodSet
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 callersMethoddaemon
(c *check.C)
daemon/api_test.go:370
↓ 129 callersMethodPublicKey
PublicKey returns the public part of the pair.
asserts/crypto.go:228
↓ 128 callersMethodsettle
(c *C)
overlord/snapstate/snapstate_test.go:86
↓ 127 callersMethodmanager
(c *C)
overlord/ifacestate/ifacestate_test.go:300
↓ 125 callersMethodLogf
Logf logs information about the progress of the task.
overlord/state/task.go:357
↓ 125 callersFunctiondebug
cmd/libsnap-confine-private/utils.c:117
↓ 122 callersMethodSummary
Summary returns a summary describing what the task is about.
overlord/state/task.go:186
↓ 122 callersMethodUpdate
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 callersMethodType
Type returns the type of this assertion
asserts/asserts.go:243
↓ 117 callersMethodAssertedSnapID
(snapName string)
seed/seedtest/seedtest.go:56
↓ 117 callersMethodSettle
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 callersMethodStatus
Status returns the current task status.
overlord/state/task.go:191
↓ 112 callersMethodHeaderString
HeaderString retrieves the string value of header with name or ""
asserts/asserts.go:262
↓ 111 callersMethodSetDevice
SetDevice sets the device details in the state.
overlord/storecontext/context.go:58
↓ 109 callersMethodModel
Model returns the seed provided model assertion. It is an error to call Model before LoadAssertions.
seed/seed.go:74
↓ 108 callersMethodAddPermanentSlot
AddPermanentSlot records dbus-specific side-effects of having a slot.
interfaces/dbus/spec.go:122
↓ 108 callersMethodEncode
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 callersMethodClose
(fd int)
cmd/snap-update-ns/export_test.go:72
↓ 107 callersMethodGetType
GetType returns the type of the snap, including additional snap ID check for the legacy snapd snap definitions.
snap/info.go:437
↓ 107 callersMethodSetStatus
SetStatus sets the task status, overriding the default behavior (see Status method).
overlord/state/task.go:200
↓ 106 callersMethodAccountID
AccountID returns the account-id of the account.
asserts/account.go:42
↓ 105 callersMethodCommit
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 callersMethodInstallSnap
Support code for tests InstallSnap "installs" a snap from YAML.
interfaces/ifacetest/backendtest.go:164
↓ 103 callersMethodTaskRunner
TaskRunner returns the shared task runner responsible for running tasks for all managers under the overlord.
overlord/overlord.go:533
↓ 100 callersMethodAddHandler
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 callersMethodRepository
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 callersMethodFind
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 callersMethodInsertFstatResult
InsertFstatResult makes given subsequent call fstat return the specified stat buffer.
testutil/lowlevel.go:401
next →1–100 of 15,449, ranked by callers