func (client *Client) SetBucketACLWithContext(ctx context.Context, bucketName string, acl *AccessControlList) error {
	aclBytes, e := json.Marshal(acl)
	if e != nil {
		return errors.New("fds client: can't marshal acl")
	}

	req := &clientRequest{
		BucketName:         bucketName,
		Method:             HTTPPut,
		QueryHeaderOptions: aclOption{""},
		Data:               bytes.NewReader(aclBytes),
	}

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

	return err
}
// SetBucketACLWithContext sets AccessControlList for bucket with context controlling
SetBucketACLWithContext sets AccessControlList for bucket with context controlling
// SetBucketACLWithContext sets AccessControlList for bucket with context controlling
func (client *Client) SetBucketACLWithContext(ctx context.Context, bucketName string, acl *AccessControlList) error {
	aclBytes, e := json.Marshal(acl)
	if e != nil {
		return errors.New("fds client: can't marshal acl")
	}
	req := &clientRequest{
		BucketName:         bucketName,
		Method:             HTTPPut,
		QueryHeaderOptions: aclOption{""},
		Data:               bytes.NewReader(aclBytes),
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()
	return err
}
func ( client * Client ) SetBucketACLWithContext ( ctx context . Context , bucketName string , acl * AccessControlList ) error { aclBytes , e := json . Marshal ( acl ) if e != nil { return errors . New ( " " ) } req := & clientRequest { BucketName : bucketName , Method : HTTPPut , QueryHeaderOptions : aclOption { " " } , Data : bytes . NewReader ( aclBytes ) , } resp , err := client . do ( ctx , req ) if err != nil { return err } defer resp . Body . Close ( ) return err }
SetBucketACLWithContext sets AccessControlList for bucket with context controlling
SetBucketACLWithContext sets AccessControlList for bucket with context controlling