github.com/Jeffail/benthos/v3@v3.65.0/lib/input/gcp_cloud_storage_config.go (about)

     1  package input
     2  
     3  // GCPCloudStorageConfig contains configuration fields for the Google Cloud
     4  // Storage input type.
     5  type GCPCloudStorageConfig struct {
     6  	Bucket        string `json:"bucket" yaml:"bucket"`
     7  	Prefix        string `json:"prefix" yaml:"prefix"`
     8  	Codec         string `json:"codec" yaml:"codec"`
     9  	DeleteObjects bool   `json:"delete_objects" yaml:"delete_objects"`
    10  }
    11  
    12  // NewGCPCloudStorageConfig creates a new GCPCloudStorageConfig with default
    13  // values.
    14  func NewGCPCloudStorageConfig() GCPCloudStorageConfig {
    15  	return GCPCloudStorageConfig{
    16  		Codec: "all-bytes",
    17  	}
    18  }