github.com/Jeffail/benthos/v3@v3.65.0/lib/output/writer/azure_blob_storage_wasm.go (about)

     1  //go:build wasm
     2  // +build wasm
     3  
     4  package writer
     5  
     6  import (
     7  	"context"
     8  	"errors"
     9  
    10  	"github.com/Jeffail/benthos/v3/lib/log"
    11  	"github.com/Jeffail/benthos/v3/lib/metrics"
    12  	"github.com/Jeffail/benthos/v3/lib/types"
    13  )
    14  
    15  //------------------------------------------------------------------------------
    16  
    17  type dummy interface {
    18  	Type
    19  	ConnectWithContext(ctx context.Context) error
    20  	WriteWithContext(ctx context.Context, msg types.Message) error
    21  }
    22  
    23  // NewAzureBlobStorage returns an error as it is not supported in WASM builds.
    24  func NewAzureBlobStorage(
    25  	conf AzureBlobStorageConfig,
    26  	log log.Modular,
    27  	stats metrics.Type,
    28  ) (dummy, error) {
    29  	return nil, errors.New("Azure blob storage is disabled in WASM builds")
    30  }
    31  
    32  //------------------------------------------------------------------------------