kubernetes: github.com/erikstmartin/kubernetes/pkg/capabilities Index | Files

package capabilities

import "github.com/erikstmartin/kubernetes/pkg/capabilities"

package capbabilities manages system level capabilities


Package Files

capabilities.go doc.go

func Initialize Uses

func Initialize(c Capabilities)

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

func SetForTests Uses

func SetForTests(c Capabilities)

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

type Capabilities Uses

type Capabilities struct {
    AllowPrivileged bool

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

func Get Uses

func Get() Capabilities

Returns a read-only copy of the system capabilities.

Package capabilities imports 1 packages (graph). Updated 2018-04-10. Refresh now. Tools for package owners.