Ubuntu Pastebin

Paste from jdstrand at Tue, 26 Apr 2016 22:05:24 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
3rd party app wanting to use 'norf' interface:

name: foo
apps:
  bar:
    plugs: [norf]



snap implementing 'norf' interface via toplevel slots:

name: corge
apps:
  qux:
    command: ...
  quux:
    command: ...
slots:
  - norf



snap implementing 'norf' interface via app slots:

name: baz
apps:
  grault:
    command: ...
    slots:
      - norf
  garply:
    command: ...

1. snap connect foo:norf corge:norf
label is: snap.norf.{qux,quux}

2. snap connect foo:norf baz:norf
label is: snap.norf.{grault}

For '1', typical policy would use 'snap.norf.*'

For '2', typical policy would use 'snap.norf.grault'
Download as text