kubernetesk8s.io/kubernetes/pkg/registry/secret Index | Files

package secret

import "k8s.io/kubernetes/pkg/registry/secret"

Package secrets provides Registry interface and its REST implementation for storing Secret api objects.

Index

Functions

func NewEtcdRegistry

func NewEtcdRegistry(h tools.EtcdHelper) generic.Registry

NewEtcdRegistry returns a registry which will store Secret in the given helper

Types

type REST

type REST struct {
	// contains filtered or unexported fields
}

REST provides the RESTStorage access patterns to work with Secret objects.

func NewREST

func NewREST(registry generic.Registry) *REST

NewREST returns a new REST. You must use a registry created by NewEtcdRegistry unless you're testing.

func (*REST) Create

func (rs *REST) Create(ctx api.Context, obj runtime.Object) (runtime.Object, error)

Create a Secret object

func (*REST) Delete

func (rs *REST) Delete(ctx api.Context, name string) (runtime.Object, error)

Delete deletes the Secret with the specified name

func (*REST) Get

func (rs *REST) Get(ctx api.Context, name string) (runtime.Object, error)

Get gets a Secret with the specified name

func (*REST) List

func (rs *REST) List(ctx api.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)

func (*REST) New

func (*REST) New() runtime.Object

New returns a new api.Secret

func (*REST) NewList

func (*REST) NewList() runtime.Object

func (*REST) Update

func (rs *REST) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool, error)

Update updates a Secret object.

func (*REST) Watch

func (rs *REST) Watch(ctx api.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

Source Files

doc.go registry.go rest.go

Version
v0.13.1-dev
Published
Mar 16, 2015
Platform
js/wasm
Imports
12 packages
Last checked
22 seconds ago

Tools for package owners.