kubernetes: github.com/erimatnor/kubernetes/pkg/kubelet/rkt Index | Files

package rkt

import "github.com/erimatnor/kubernetes/pkg/kubelet/rkt"

Index

Package Files

cap.go config.go container_id.go gc.go pod_info.go rkt_linux.go version.go

Constants

const (
    CAP_CHOWN = iota
    CAP_DAC_OVERRIDE
    CAP_DAC_READ_SEARCH
    CAP_FOWNER
    CAP_FSETID
    CAP_KILL
    CAP_SETGID
    CAP_SETUID
    CAP_SETPCAP
    CAP_LINUX_IMMUTABLE
    CAP_NET_BIND_SERVICE
    CAP_NET_BROADCAST
    CAP_NET_ADMIN
    CAP_NET_RAW
    CAP_IPC_LOCK
    CAP_IPC_OWNER
    CAP_SYS_MODULE
    CAP_SYS_RAWIO
    CAP_SYS_CHROOT
    CAP_SYS_PTRACE
    CAP_SYS_PACCT
    CAP_SYS_ADMIN
    CAP_SYS_BOOT
    CAP_SYS_NICE
    CAP_SYS_RESOURCE
    CAP_SYS_TIME
    CAP_SYS_TTY_CONFIG
    CAP_MKNOD
    CAP_LEASE
    CAP_AUDIT_WRITE
    CAP_AUDIT_CONTROL
    CAP_SETFCAP
    CAP_MAC_OVERRIDE
    CAP_MAC_ADMIN
    CAP_SYSLOG
    CAP_WAKE_ALARM
    CAP_BLOCK_SUSPEND
    CAP_AUDIT_READ
)

TODO(yifan): Export this to higher level package.

const (
    Embryo         = "embryo"
    Preparing      = "preparing"
    AbortedPrepare = "aborted prepare"
    Prepared       = "prepared"
    Running        = "running"
    Deleting       = "deleting" // This covers pod.isExitedDeleting and pod.isDeleting.
    Exited         = "exited"   // This covers pod.isExited and pod.isExitedGarbage.
    Garbage        = "garbage"
)

rkt pod state. TODO(yifan): Use exported definition in rkt.

func New Uses

func New(config *Config) (kubecontainer.Runtime, error)

New creates the rkt container runtime which implements the container runtime interface. It will test if the rkt binary is in the $PATH, and whether we can get the version of it. If so, creates the rkt container runtime, otherwise returns an error.

type Config Uses

type Config struct {
    // The debug flag for rkt.
    Debug bool
    // The rkt data directory.
    Dir string
    // This flag controls whether we skip image or key verification.
    InsecureSkipVerify bool
    // The local config directory.
    LocalConfigDir string
}

Config stores the global configuration for the rkt runtime. Run 'rkt' for more details.

type ImageManager Uses

type ImageManager struct {
    // contains filtered or unexported fields
}

ImageManager manages and garbage collects the container images for rkt.

func NewImageManager Uses

func NewImageManager(r *runtime) *ImageManager

func (*ImageManager) GarbageCollect Uses

func (im *ImageManager) GarbageCollect() error

GarbageCollect collects the images. It is not implemented by rkt yet.

Package rkt imports 31 packages (graph). Updated 2017-05-11. Refresh now. Tools for package owners.