github.com/cozy/cozy-stack@v0.0.0-20240327093429-939e4a21320e/model/cloudery/service_noop.go (about)

     1  package cloudery
     2  
     3  import "github.com/cozy/cozy-stack/model/instance"
     4  
     5  // NoopService implements [Service].
     6  //
     7  // This implem does nothing. It is used when no config is provided.
     8  type NoopService struct{}
     9  
    10  // SaveInstance does nothing.
    11  func (s *NoopService) SaveInstance(inst *instance.Instance, cmd *SaveCmd) error {
    12  	return nil
    13  }
    14  
    15  func (s *NoopService) HasBlockingSubscription(inst *instance.Instance) (bool, error) {
    16  	return false, nil
    17  }