securitycontextconstraints

package
v3.7.0-0.152.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package securitycontextconstraints provides Registry interface and its REST implementation for storing SecurityContextConstraints api objects.

Index

Constants

This section is empty.

Variables

View Source
var Strategy = strategy{api.Scheme, names.SimpleNameGenerator}

Strategy is the default logic that applies when creating and updating ServiceAccount objects via the REST API.

Functions

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, error)

GetAttrs returns labels and fields of a given object for filtering purposes.

func Matcher

Matcher returns a generic matcher for a given label and field selector.

func SelectableFields

func SelectableFields(obj *securityapi.SecurityContextConstraints) fields.Set

SelectableFields returns a field set that can be used for filter selection

Types

type Registry

type Registry interface {
	// ListSecurityContextConstraints obtains a list of SecurityContextConstraints having labels which match selector.
	ListSecurityContextConstraints(ctx genericapirequest.Context, options *metainternalversion.ListOptions) (*securityapi.SecurityContextConstraintsList, error)
	// Watch for new/changed/deleted SecurityContextConstraints
	WatchSecurityContextConstraints(ctx genericapirequest.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
	// Get a specific SecurityContextConstraints
	GetSecurityContextConstraint(ctx genericapirequest.Context, name string) (*securityapi.SecurityContextConstraints, error)
	// Create a SecurityContextConstraints based on a specification.
	CreateSecurityContextConstraint(ctx genericapirequest.Context, scc *securityapi.SecurityContextConstraints) error
	// Update an existing SecurityContextConstraints
	UpdateSecurityContextConstraint(ctx genericapirequest.Context, scc *securityapi.SecurityContextConstraints) error
	// Delete an existing SecurityContextConstraints
	DeleteSecurityContextConstraint(ctx genericapirequest.Context, name string) error
}

Registry is an interface implemented by things that know how to store SecurityContextConstraints objects.

func NewRegistry

func NewRegistry(s rest.StandardStorage) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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