github.com/fastly/cli@v1.7.2-0.20240304164155-9d0f1d77c3bf/pkg/manifest/manifest.go (about) 1 package manifest 2 3 // Source enumerates where a manifest parameter is taken from. 4 type Source uint8 5 6 const ( 7 // Filename is the name of the package manifest file. 8 // It is expected to be a project specific configuration file. 9 Filename = "fastly.toml" 10 11 // ManifestLatestVersion represents the latest known manifest schema version 12 // supported by the CLI. 13 // 14 // NOTE: The CLI is the primary consumer of the fastly.toml manifest so its 15 // code is typically coupled to the specification. 16 ManifestLatestVersion = 3 17 18 // FilePermissions represents a read/write file mode. 19 FilePermissions = 0o666 20 21 // SourceUndefined indicates the parameter isn't provided in any of the 22 // available sources, similar to "not found". 23 SourceUndefined Source = iota 24 25 // SourceFile indicates the parameter came from a manifest file. 26 SourceFile 27 28 // SourceEnv indicates the parameter came from the user's shell environment. 29 SourceEnv 30 31 // SourceFlag indicates the parameter came from an explicit flag. 32 SourceFlag 33 34 // SpecIntro informs the user of what the manifest file is for. 35 SpecIntro = "This file describes a Fastly Compute package. To learn more visit:" 36 37 // SpecURL points to the fastly.toml manifest specification reference. 38 SpecURL = "https://developer.fastly.com/reference/fastly-toml/" 39 )