strip unused list endpoint
This commit is contained in:
parent
edee3b6765
commit
0a030f3d8a
@ -393,20 +393,6 @@ func (r *runtime) Delete(s *Service, opts ...DeleteOption) error {
|
|||||||
return nil
|
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
|
// Start starts the runtime
|
||||||
func (r *runtime) Start() error {
|
func (r *runtime) Start() error {
|
||||||
r.Lock()
|
r.Lock()
|
||||||
|
@ -107,9 +107,9 @@ func CreateImage(img string) CreateOption {
|
|||||||
func CreateImagePullSecret(secrets ...string) CreateOption {
|
func CreateImagePullSecret(secrets ...string) CreateOption {
|
||||||
return func(o *CreateOptions) {
|
return func(o *CreateOptions) {
|
||||||
o.ImagePullSecrets = append(o.ImagePullSecrets, secrets...)
|
o.ImagePullSecrets = append(o.ImagePullSecrets, secrets...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateNamespace sets the namespace
|
// CreateNamespace sets the namespace
|
||||||
func CreateNamespace(ns string) CreateOption {
|
func CreateNamespace(ns string) CreateOption {
|
||||||
return func(o *CreateOptions) {
|
return func(o *CreateOptions) {
|
||||||
|
Loading…
Reference in New Issue
Block a user