Content interface `content` attribute

Kyle Fazzari kyle.fazzari at canonical.com
Fri Dec 23 18:27:45 UTC 2016


Hey all.

I'm trying to figure out what the `content` attribute is for in the
content interface. The docs say "The content attribute specified of the
consuming snap (plug) must have a content attribute match in the
providing snap (slot)." However, I have two snaps, provider side looking
like this:

    slots:
      share-foo:
        content: foo
        interface: content
        read: [/]

Consumer side like this:

    plugs:
      use-foo:
        content: foo2
        interface: content
        target: /bar

These interfaces connect fine, and I can see the contents of the
provider within $SNAP/bar of the consumer. Running snapd v2.17.1. So
unless I misunderstand the sentence from the docs, that doesn't seem
accurate, and I have no idea what this attribute does.

Any ideas?

-- 
Kyle Fazzari (kyrofa)
Software Engineer
Canonical Ltd.
kyle at canonical.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161223/c9678673/attachment.sig>


More information about the Snapcraft mailing list