Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MustFilePathSpecs = map[string]FilePathInfo{ "/tmp": { IsDirectory: true, PermString: "rw*rw*rw*", }, "/var/log": { IsDirectory: true, PermString: "rw*rw*rw*", }, }
MustFilePathSpecs specifies the file-paths and expected permissions that MUST be set as specified in the runtime contract.
View Source
var ShouldFilePathSpecs = map[string]FilePathInfo{ "/etc/resolv.conf": { IsDirectory: false, PermString: "rw*r**r**", }, }
ShouldFilePathSpecs specifies the file-paths and expected permissions that SHOULD be set as specified in the run-time contract.
Functions ¶
This section is empty.
Types ¶
type FilePathInfo ¶
type FilePathInfo struct { FilePath string `json:"FilePath"` IsDirectory bool `json:"IsDirectory"` PermString string `json:"PermString"` }
FilePathInfo data object returned by the environment test-image.
type MustEnvvars ¶
type MustEnvvars struct {
Port string `json:"PORT"`
}
MustEnvvars defines environment variables that "MUST" be set.
type ShouldEnvvars ¶
type ShouldEnvvars struct { Service string `json:"K_SERVICE"` Configuration string `json:"K_CONFIGURATION"` Revision string `json:"K_REVISION"` }
ShouldEnvvars defines the environment variables that "SHOULD" be set.
Click to show internal directories.
Click to hide internal directories.