capabilities

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

package capbabilities manages system level capabilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(c Capabilities)

Initialize the capability set. This can only be done once per binary, subsequent calls are ignored.

func SetForTests

func SetForTests(c Capabilities)

SetCapabilitiesForTests. Convenience method for testing. This should only be called from tests.

func Setup added in v0.5.1

func Setup(allowPrivileged bool, hostNetworkSources []string)

Setup the capability set. It wraps Initialize for improving usibility.

Types

type Capabilities

type Capabilities struct {
	AllowPrivileged bool

	// List of pod sources for which using host network is allowed.
	HostNetworkSources []string
}

Capabilities defines the set of capabilities available within the system. For now these are global. Eventually they may be per-user

func Get

func Get() Capabilities

Returns a read-only copy of the system capabilities.

Jump to

Keyboard shortcuts

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