package capabilities
import "k8s.io/kubernetes/pkg/capabilities"
package capbabilities manages system level capabilities
Index ¶
- func Initialize(c Capabilities)
- func SetForTests(c Capabilities)
- func Setup(allowPrivileged bool, hostNetworkSources []string)
- type Capabilities
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 ¶
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.
Source Files ¶
capabilities.go doc.go
- Version
- v0.19.3
- Published
- Jun 22, 2015
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 41 seconds ago –
Tools for package owners.