func New(keyURI string, provider Provider) (secretlock.Service, error) {
	r, err := primaryKeyReader(provider.StorageProvider(), provider.SecretLock(), keyURI)
	if err != nil {
		return nil, err
	}

	secretLock, err := local.NewService(r, provider.SecretLock())
	if err != nil {
		return nil, fmt.Errorf("new local secretlock: %w", err)
	}

	return secretLock, nil
}
// New returns a new secret lock service instance.
New returns a new secret lock service instance.
// New returns a new secret lock service instance .
func New(keyURI string, provider Provider) (secretlock.Service, error) {
	r, err := primaryKeyReader(provider.StorageProvider(), provider.SecretLock(), keyURI)
	if err != nil {
		return nil, err
	}
	secretLock, err := local.NewService(r, provider.SecretLock())
	if err != nil {
		return nil, fmt.Errorf("new local secretlock: %w", err)
	}
	return secretLock, nil
}
func New ( keyURI string , provider Provider ) ( secretlock . Service , error ) { r , err := primaryKeyReader ( provider . StorageProvider ( ) , provider . SecretLock ( ) , keyURI ) if err != nil { return nil , err } secretLock , err := local . NewService ( r , provider . SecretLock ( ) ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return secretLock , nil }
New returns a new secret lock service instance.
New returns a new secret lock service instance .