From 0a030f3d8ad82abc9a1cc5056e7ac406b55c28f8 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Fri, 24 Apr 2020 18:05:38 +0100 Subject: [PATCH] strip unused list endpoint --- runtime/default.go | 14 -------------- runtime/options.go | 4 ++-- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/runtime/default.go b/runtime/default.go index c3c5c1ec..93c69739 100644 --- a/runtime/default.go +++ b/runtime/default.go @@ -393,20 +393,6 @@ func (r *runtime) Delete(s *Service, opts ...DeleteOption) error { return nil } -// List returns a slice of all services tracked by the runtime -func (r *runtime) List() ([]*Service, error) { - r.RLock() - defer r.RUnlock() - - services := make([]*Service, 0, len(r.services)) - - for _, service := range r.services { - services = append(services, service.Service) - } - - return services, nil -} - // Start starts the runtime func (r *runtime) Start() error { r.Lock() diff --git a/runtime/options.go b/runtime/options.go index 959639e3..74c8e926 100644 --- a/runtime/options.go +++ b/runtime/options.go @@ -107,9 +107,9 @@ func CreateImage(img string) CreateOption { func CreateImagePullSecret(secrets ...string) CreateOption { return func(o *CreateOptions) { o.ImagePullSecrets = append(o.ImagePullSecrets, secrets...) - } + } } - + // CreateNamespace sets the namespace func CreateNamespace(ns string) CreateOption { return func(o *CreateOptions) {