Documentation ¶
Overview ¶
Package common defines values shared by different parts of rkt (e.g. stage0 and stage1)
Index ¶
- Constants
- func AppImagePath(root string, imageID types.Hash) string
- func AppImagesPath(root string) string
- func AppRootfsPath(root string, imageID types.Hash) string
- func GetRktLockFD() (int, error)
- func ImageManifestPath(root string, imageID types.Hash) string
- func MetadataServicePublicURL(ip net.IP) string
- func PodManifestPath(root string) string
- func RelAppImagePath(imageID types.Hash) string
- func RelAppRootfsPath(imageID types.Hash) string
- func SliceToPath(unit string) (string, error)
- func Stage1ImagePath(root string) string
- func Stage1ManifestPath(root string) string
- func Stage1RootfsPath(root string) string
- func SupportsOverlay() bool
- type PrivateNetList
- func (l *PrivateNetList) All() bool
- func (l *PrivateNetList) Any() bool
- func (i *PrivateNetList) IsBoolFlag() bool
- func (l *PrivateNetList) Set(value string) error
- func (l *PrivateNetList) Specific(net string) bool
- func (l *PrivateNetList) String() string
- func (l *PrivateNetList) Strings() []string
- func (l *PrivateNetList) Type() string
Constants ¶
const ( EnvLockFd = "RKT_LOCK_FD" Stage1IDFilename = "stage1ID" OverlayPreparedFilename = "overlay-prepared" MetadataServicePort = 2375 MetadataServiceRegSock = "/run/rkt/metadata-svc.sock" DefaultLocalConfigDir = "/etc/rkt" DefaultSystemConfigDir = "/usr/lib/rkt" )
Variables ¶
This section is empty.
Functions ¶
func AppImagePath ¶
AppImagePath returns the path where an app image (i.e. unpacked ACI) is rooted (i.e. where its contents are extracted during stage0), based on the app image ID.
func AppImagesPath ¶ added in v0.4.2
AppImagesPath returns the path where the app images live
func AppRootfsPath ¶
AppRootfsPath returns the path to an app's rootfs. imageID should be the app image ID.
func GetRktLockFD ¶ added in v0.5.1
func ImageManifestPath ¶
ImageManifestPath returns the path to the app's manifest file inside the expanded ACI. id should be the app image ID.
func MetadataServicePublicURL ¶ added in v0.4.0
MetadataServicePublicURL returns the public URL used to host the metadata service
func PodManifestPath ¶ added in v0.5.1
PodManifestPath returns the path in root to the Pod Manifest
func RelAppImagePath ¶
RelAppImagePath returns the path of an application image relative to the stage1 chroot
func RelAppRootfsPath ¶
RelAppImagePath returns the path of an application's rootfs relative to the stage1 chroot
func SliceToPath ¶ added in v0.6.1
SliceToPath explodes a slice name to its corresponding path in the cgroup hierarchy. For example, a slice named "foo-bar-baz.slice" corresponds to the path "foo.slice/foo-bar.slice/foo-bar-baz.slice". See systemd.slice(5)
func Stage1ImagePath ¶
Stage1ImagePath returns the path where the stage1 app image (unpacked ACI) is rooted, (i.e. where its contents are extracted during stage0).
func Stage1ManifestPath ¶
Stage1ManifestPath returns the path to the stage1's manifest file inside the expanded ACI.
func Stage1RootfsPath ¶
Stage1RootfsPath returns the path to the stage1 rootfs
func SupportsOverlay ¶ added in v0.5.2
func SupportsOverlay() bool
SupportsOverlay returns whether the system supports overlay filesystem
Types ¶
type PrivateNetList ¶ added in v0.6.1
type PrivateNetList struct {
// contains filtered or unexported fields
}
PrivateNetList implements the flag.Value interface to allow specification of -private-net with and without values
func (*PrivateNetList) All ¶ added in v0.6.1
func (l *PrivateNetList) All() bool
func (*PrivateNetList) Any ¶ added in v0.6.1
func (l *PrivateNetList) Any() bool
func (*PrivateNetList) IsBoolFlag ¶ added in v0.6.1
func (i *PrivateNetList) IsBoolFlag() bool
func (*PrivateNetList) Set ¶ added in v0.6.1
func (l *PrivateNetList) Set(value string) error
func (*PrivateNetList) Specific ¶ added in v0.6.1
func (l *PrivateNetList) Specific(net string) bool
func (*PrivateNetList) String ¶ added in v0.6.1
func (l *PrivateNetList) String() string
func (*PrivateNetList) Strings ¶ added in v0.6.1
func (l *PrivateNetList) Strings() []string
func (*PrivateNetList) Type ¶ added in v0.6.1
func (l *PrivateNetList) Type() string