github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/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) BlockingSubscription(inst *instance.Instance) (*BlockingSubscription, error) {
    16  	return nil, nil
    17  }