strip unused list endpoint

This commit is contained in:
Asim Aslam 2020-04-24 18:05:38 +01:00
parent edee3b6765
commit 0a030f3d8a
2 changed files with 2 additions and 16 deletions

View File

@ -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()

View File

@ -107,7 +107,7 @@ func CreateImage(img string) CreateOption {
func CreateImagePullSecret(secrets ...string) CreateOption {
return func(o *CreateOptions) {
o.ImagePullSecrets = append(o.ImagePullSecrets, secrets...)
}
}
}
// CreateNamespace sets the namespace