Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PutObject* refactor #747

Closed
donatello opened this issue Jul 7, 2017 · 0 comments
Closed

PutObject* refactor #747

donatello opened this issue Jul 7, 2017 · 0 comments
Assignees
Milestone

Comments

@donatello
Copy link
Member

Plan to converge to a smaller set of PutObject functions:

type PutObjectOptions struct {
	UserMetadata       map[string]string
	Progress           io.Reader
	ContentType        string
	ContentEncoding    string
	ContentDisposition string
	CacheControl       string
}

func (c Client) PutObject(bucketName, objectName string, reader io.Reader, objectSize int64,
	opts *PutObjectOptions) (n int64, err error) {
	// TODO
}

func (c Client) FPutObject(bucketName, objectName, filePath string,
	opts *PutObjectOptions) (n int64, err error) {
	// TODO
}

All other put object functions shall be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants