 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package securitycontextconstraints provides Registry interface and its REST implementation for storing SecurityContextConstraints api objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
GetAttrs returns labels and fields of a given object for filtering purposes.
func Matcher ¶
func Matcher(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate
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.
       Source Files
      ¶
      Source Files
      ¶
    
- doc.go
- registry.go
- strategy.go