func (client *Client) CreateBucketWithContext(ctx context.Context, request *CreateBucketRequest) error {
	buf := new(bytes.Buffer)

	req := &clientRequest{
		BucketName:         request.BucketName,
		Method:             HTTPPut,
		Data:               buf,
		QueryHeaderOptions: request,
	}

	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()

	return err
}
// CreateBucketWithContext creates new bucket with context controlling
CreateBucketWithContext creates new bucket with context controlling
// CreateBucketWithContext creates new bucket with context controlling
func (client *Client) CreateBucketWithContext(ctx context.Context, request *CreateBucketRequest) error {
	buf := new(bytes.Buffer)
	req := &clientRequest{
		BucketName:         request.BucketName,
		Method:             HTTPPut,
		Data:               buf,
		QueryHeaderOptions: request,
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()
	return err
}
func ( client * Client ) CreateBucketWithContext ( ctx context . Context , request * CreateBucketRequest ) error { buf := new ( bytes . Buffer ) req := & clientRequest { BucketName : request . BucketName , Method : HTTPPut , Data : buf , QueryHeaderOptions : request , } resp , err := client . do ( ctx , req ) if err != nil { return err } defer resp . Body . Close ( ) return err }
CreateBucketWithContext creates new bucket with context controlling
CreateBucketWithContext creates new bucket with context controlling