common

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package common defines values shared by different parts of rkt (e.g. stage0 and stage1)

Index

Constants

View Source
const (
	MetadataSvcIP      = "169.254.169.255"
	MetadataSvcPubPort = 80
	MetadataSvcPrvPort = 2375
)

Variables

This section is empty.

Functions

func AppImagePath

func AppImagePath(root string, imageID types.Hash) string

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 AppRootfsPath

func AppRootfsPath(root string, imageID types.Hash) string

AppRootfsPath returns the path to an app's rootfs. imageID should be the app image ID.

func ContainerManifestPath

func ContainerManifestPath(root string) string

ContainerManifestPath returns the path in root to the Container Runtime Manifest

func ImageManifestPath

func ImageManifestPath(root string, imageID types.Hash) string

ImageManifestPath returns the path to the app's manifest file inside the expanded ACI. id should be the app image ID.

func MetadataSvcPrivateURL

func MetadataSvcPrivateURL() string

MetadataSvcPrivateURL returns the private URL used to host the metadata service

func MetadataSvcPublicURL

func MetadataSvcPublicURL() string

MetadataSvcPublicURL returns the public URL used to host the metadata service

func RelAppImagePath

func RelAppImagePath(imageID types.Hash) string

RelAppImagePath returns the path of an application image relative to the stage1 chroot

func RelAppRootfsPath

func RelAppRootfsPath(imageID types.Hash) string

RelAppImagePath returns the path of an application's rootfs relative to the stage1 chroot

func Stage1ImagePath

func Stage1ImagePath(root string) string

Stage1ImagePath returns the path where the stage1 app image (unpacked ACI) is rooted, (i.e. where its contents are extracted during stage0).

func Stage1ManifestPath

func Stage1ManifestPath(root string) string

Stage1ManifestPath returns the path to the stage1's manifest file inside the expanded ACI.

func Stage1RootfsPath

func Stage1RootfsPath(root string) string

Stage1RootfsPath returns the path to the stage1 rootfs

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL