You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: objectstore.go
    path of file: ./repos/cds/engine/api/objectstore
    
    the code of the file until where you have to start completion: package objectstore

import (
	"context"
	"fmt"
	"io"
	"net/url"
	"strconv"
	"strings"

	"github.com/g
    
func Init(c context.Context, cfg Config) (Driver, error) {
	switch cfg.Kind {
	case Openstack, Swift:
		return newSwiftStore(c, sdk.ProjectIntegration{Name: sdk.DefaultStorageIntegrationName}, cfg.Options.Openstack)
	case AWSS3:
		return newS3Store(c, sdk.ProjectIntegration{Name: sdk.DefaultStorageIntegrationName}, cfg.Options.AWSS3)
	case Filesystem:
		return newFilesystemStore(c, sdk.ProjectIntegration{Name: sdk.DefaultStorageIntegrationName}, cfg.Options.Filesystem)
	default:
		return nil, fmt.Errorf("Invalid flag --artifact-mode")
	}
}