Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/deploy/registry/deploy/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package deploy provides Registry interface and its RESTStorage
// implementation for storing Deployment api objects.
package deploy
2 changes: 1 addition & 1 deletion pkg/deploy/registry/deploy/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
api "github.com/openshift/origin/pkg/deploy/api"
)

// Registry is an interface for things that know how to store Deployments
// Registry is an interface for things that know how to store Deployments.
type Registry interface {
ListDeployments(selector labels.Selector) (*api.DeploymentList, error)
GetDeployment(id string) (*api.Deployment, error)
Expand Down
3 changes: 2 additions & 1 deletion pkg/deploy/registry/deploy/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ type REST struct {
registry Registry
}

// NewREST creates a new REST backed by the given registry.
func NewREST(registry Registry) apiserver.RESTStorage {
return &REST{
registry: registry,
}
}

// New creates a new Deployment for use with Create and Update
// New creates a new Deployment for use with Create and Update.
func (s *REST) New() runtime.Object {
return &deployapi.Deployment{}
}
Expand Down
3 changes: 3 additions & 0 deletions pkg/deploy/registry/deployconfig/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package deployconfig provides Registry interface and its RESTStorage
// implementation for storing DeploymentConfig api objects.
package deployconfig
2 changes: 1 addition & 1 deletion pkg/deploy/registry/deployconfig/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
api "github.com/openshift/origin/pkg/deploy/api"
)

// Registry is an interface for things that know how to store DeploymentConfigs
// Registry is an interface for things that know how to store DeploymentConfigs.
type Registry interface {
ListDeploymentConfigs(selector labels.Selector) (*api.DeploymentConfigList, error)
WatchDeploymentConfigs(resourceVersion uint64, filter func(repo *api.DeploymentConfig) bool) (watch.Interface, error)
Expand Down
3 changes: 2 additions & 1 deletion pkg/deploy/registry/deployconfig/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ type REST struct {
registry Registry
}

// NewREST creates a new REST backed by the given registry.
func NewREST(registry Registry) apiserver.RESTStorage {
return &REST{
registry: registry,
}
}

// New creates a new DeploymentConfig for use with Create and Update
// New creates a new DeploymentConfig for use with Create and Update.
func (s *REST) New() runtime.Object {
return &deployapi.DeploymentConfig{}
}
Expand Down
3 changes: 3 additions & 0 deletions pkg/deploy/registry/etcd/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package etcd provides etcd backend implementation for storing
// Deployment and DeploymentConfig objects
package etcd