project

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2015 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewREST

func NewREST(registry Registry) apiserver.RESTStorage

NewStorage returns a new REST.

Types

type REST

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

REST implements the RESTStorage interface in terms of an Registry.

func (*REST) Create

func (s *REST) Create(ctx kapi.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)

Create registers the given Project.

func (*REST) Delete

func (s *REST) Delete(ctx kapi.Context, id string) (<-chan apiserver.RESTResult, error)

Delete asynchronously deletes a Project specified by its id.

func (*REST) Get

func (s *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)

Get retrieves an Project by id.

func (*REST) List

func (s *REST) List(ctx kapi.Context, selector, fields labels.Selector) (runtime.Object, error)

List retrieves a list of Projects that match selector.

func (*REST) New

func (s *REST) New() runtime.Object

New returns a new Project for use with Create and Update.

func (*REST) NewList added in v0.2.1

func (*REST) NewList() runtime.Object

func (*REST) Update

func (s *REST) Update(ctx kapi.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)

Update is not supported for Projects, as they are immutable.

type Registry

type Registry interface {
	// ListProjects obtains a list of Projects that match a selector.
	ListProjects(ctx kapi.Context, selector labels.Selector) (*api.ProjectList, error)
	// GetProject retrieves a specific Project.
	GetProject(ctx kapi.Context, id string) (*api.Project, error)
	// CreateProject creates a new Project.
	CreateProject(ctx kapi.Context, Project *api.Project) error
	// UpdateProject updates an Project.
	UpdateProject(ctx kapi.Context, Project *api.Project) error
	// DeleteProject deletes an Project.
	DeleteProject(ctx kapi.Context, id string) error
}

Registry is an interface for things that know how to store Project objects.

Jump to

Keyboard shortcuts

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