Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFormat ¶
RegisterFormat registers a snap file format to the system
func ValidateName ¶
ValidateName checks if a string can be used as a snap name.
Types ¶
type File ¶
type File interface { Install(targetDir string) error // MetaMember returns data from a meta/ directory file member MetaMember(name string) ([]byte, error) //Unpack unpacks the src parts to the dst directory Unpack(src, dst string) error // Info returns information about the given snap file Info() (*Info, error) }
File is the interface to interact with the low-level snap files
type Info ¶
Info provides information about packages
func InfoFromSnapYaml ¶
InfoFromSnapYaml creates a new info based on the given snap.yaml data
type Type ¶
type Type string
Type represents the kind of snap (app, core, frameworks, gadget)
const ( TypeApp Type = "app" TypeCore Type = "core" TypeFramework Type = "framework" TypeGadget Type = "gadget" TypeOS Type = "os" TypeKernel Type = "kernel" )
The various types of snap parts we support
func (Type) MarshalJSON ¶
MarshalJSON returns *m as the JSON encoding of m.
func (*Type) UnmarshalJSON ¶
UnmarshalJSON sets *m to a copy of data.
Directories ¶
Path | Synopsis |
---|---|
Package lightweight provides a quick way of loading things that can become snaps.
|
Package lightweight provides a quick way of loading things that can become snaps. |
Package removed implements Removed packages, that are packages that have been installed, removed, but not purged: there is no application, but there might be data.
|
Package removed implements Removed packages, that are packages that have been installed, removed, but not purged: there is no application, but there might be data. |
Click to show internal directories.
Click to hide internal directories.