Remove unused and not completely correct code

This commit is contained in:
Daniel Smith
2014-08-15 16:42:37 -07:00
parent 12a22db2a9
commit 26e2256178
6 changed files with 42 additions and 640 deletions

View File

@@ -20,10 +20,18 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
)
func NewServiceRegistry() *ServiceRegistry {
return &ServiceRegistry{}
}
type ServiceRegistry struct {
List api.ServiceList
Service *api.Service
Err error
Endpoints api.Endpoints
DeletedID string
GottenID string
}
func (r *ServiceRegistry) ListServices() (api.ServiceList, error) {
@@ -31,14 +39,17 @@ func (r *ServiceRegistry) ListServices() (api.ServiceList, error) {
}
func (r *ServiceRegistry) CreateService(svc api.Service) error {
r.Service = &svc
return r.Err
}
func (r *ServiceRegistry) GetService(name string) (*api.Service, error) {
return nil, r.Err
func (r *ServiceRegistry) GetService(id string) (*api.Service, error) {
r.GottenID = id
return r.Service, r.Err
}
func (r *ServiceRegistry) DeleteService(name string) error {
func (r *ServiceRegistry) DeleteService(id string) error {
r.DeletedID = id
return r.Err
}