Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Image string // the image reference as supplied by the user on the cli ImType AppImageType // the type of the image reference (to be guessed, url, path or hash) Args []string // any arguments the user supplied for this app Asc string // signature file override for image verification (if fetching occurs) Exec string // exec override for image Mounts []schema.Mount // mounts for this app (superseding any mounts in rktApps.mounts of same MountPoint) MemoryLimit *types.ResourceMemory // memory isolator override CPULimit *types.ResourceCPU // cpu isolator override User, Group string // user, group overrides CapsRetain *types.LinuxCapabilitiesRetainSet // os/linux/capabilities-retain-set overrides CapsRemove *types.LinuxCapabilitiesRevokeSet // os/linux/capabilities-remove-set overrides // TODO(jonboulle): These images are partially-populated hashes, this should be clarified. ImageID types.Hash // resolved image identifier }
type AppImageType ¶ added in v0.14.0
type AppImageType int
AppImageType describes a type of an image reference. The reference can either be guessed or be a hash, a URL, a path, or a name. The first option means that the application will have to deduce the actual type (one of the last four).
const ( AppImageGuess AppImageType = iota // image type to be guessed AppImageHash // image hash AppImageURL // image URL with a scheme AppImagePath // absolute or relative path AppImageName // image name )
type Apps ¶
type Apps struct { Mounts []schema.Mount // global mounts applied to all apps Volumes []types.Volume // volumes available to all apps // contains filtered or unexported fields }
func (*Apps) GetArgs ¶
GetArgs returns a list of lists of arguments in al, one list of args per app. The order reflects the app order in al.
func (*Apps) GetImages ¶
GetImages returns a list of the images in al, one per app. The order reflects the app order in al.
Click to show internal directories.
Click to hide internal directories.