Snap¶
-
class
starlark_tugger.Snap¶ The
Snaptype represents an entiresnapcraft.yamlfile.See https://snapcraft.io/docs/snapcraft-yaml-reference for more documentation.
Instances of
Snapexpose attributes that map to the keys withinsnapcraft.yamlfiles.Currently the attributes are write only.
Setting an attribute value to
Nonehas the side-effect of removing that attribute from the serializedsnapcraft.yamlfile.See https://snapcraft.io/docs/snapcraft-yaml-reference for detailed documentation about what each attribute means.
-
__init__(name: str, version: str, summary: str, description: str)¶ Creates an instance initialized with required parameters. It accepts the following arguments:
nameversionsummarydescription
-
adopt_info¶ (
Optional[str])
-
apps¶ (
Optional[dict[str, SnapApp]])
-
architectures¶ (
Optional[dict["build_on" | "run_on", str]])
-
assumes¶ (
Optional[list[str]])
-
base¶ (
Optional[str])
-
confinement¶ (
Optional[str])
-
description¶ (
str)
-
grade¶ (
Optional[str])
-
icon¶ (
Optional[str])
-
license¶ (
Optional[str])
-
name¶ (
str)
-
passthrough¶ (
Optional[dict[str, str]])
-
parts¶ (
Optional[dict[str, SnapPart]])
-
plugs¶ (
Optional[dict[str, list[str]]])
-
slots¶ (
Optional[dict[str, list[str]]])
-
summary¶ (
str)
-
title¶ (
Optional[str])
-
type¶ (
Optional[str])
-
version¶ (
str)
-
to_builder() → SnapcraftBuilder¶ Converts this instance into a
SnapcraftBuilder.This method accepts no arguments and is equivalent to calling
SnapcraftBuilder(self).
-