func (o *Operator) GetLocalStorages() ([]server.LocalStorage, error) {
	o.Dependencies.LivenessProbe.Lock()
	defer o.Dependencies.LivenessProbe.Unlock()
	result := make([]server.LocalStorage, 0, len(o.localStorages))
	for _, ls := range o.localStorages {
		result = append(result, ls)
	}
	sort.Slice(result, func(i, j int) bool {
		return result[i].Name() < result[j].Name()
	})
	return result, nil
}
GetLocalStorages returns basic information for all local storages managed by the operator
package operator
import (
	"sort"
	"github.com/arangodb/kube-arangodb/pkg/util/errors"
	"github.com/arangodb/kube-arangodb/pkg/server"
)
func (o *Operator) DeploymentOperator() server.DeploymentOperator {
	return o
}
func (o *Operator) GetDeployments() ([]server.Deployment, error) {
	o.Dependencies.LivenessProbe.Lock()
	defer o.Dependencies.LivenessProbe.Unlock()
	result := make([]server.Deployment, 0, len(o.deployments))
	for _, d := range o.deployments {
		result = append(result, d)
	}
	sort.Slice(result, func(i, j int) bool {
		return result[i].Name() < result[j].Name()
	})
	return result, nil
}
func (o *Operator) GetDeployment(name string) (server.Deployment, error) {
	o.Dependencies.LivenessProbe.Lock()
	defer o.Dependencies.LivenessProbe.Unlock()
	for _, d := range o.deployments {
		if d.Name() == name {
			return d, nil
		}
	}
	return nil, errors.WithStack(server.NotFoundError)
}
func (o *Operator) DeploymentReplicationOperator() server.DeploymentReplicationOperator {
	return o
}
func (o *Operator) GetDeploymentReplications() ([]server.DeploymentReplication, error) {
	o.Dependencies.LivenessProbe.Lock()
	defer o.Dependencies.LivenessProbe.Unlock()
	result := make([]server.DeploymentReplication, 0, len(o.deploymentReplications))
	for _, d := range o.deploymentReplications {
		result = append(result, d)
	}
	sort.Slice(result, func(i, j int) bool {
		return result[i].Name() < result[j].Name()
	})
	return result, nil
}
func (o *Operator) GetDeploymentReplication(name string) (server.DeploymentReplication, error) {
	o.Dependencies.LivenessProbe.Lock()
	defer o.Dependencies.LivenessProbe.Unlock()
	for _, d := range o.deploymentReplications {
		if d.Name() == name {
			return d, nil
		}
	}
	return nil, errors.WithStack(server.NotFoundError)
}
func (o *Operator) StorageOperator() server.StorageOperator {
	return o
}