// Returns some or all (up to 1,000) of the objects in a bucket. You can use the
// request parameters as selection criteria to return a subset of the objects in a
// bucket. A 200 OK response can contain valid or invalid XML. Be sure to design
// your application to parse the contents of the response and handle it
// appropriately. This API has been revised. We recommend that you use the newer
// version, ListObjectsV2
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html), when
// developing applications. For backward compatibility, Amazon S3 continues to
// support ListObjects. The following operations are related to ListObjects:
//
// *
// ListObjectsV2
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html)
//
// *
// GetObject
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html)
//
// *
// PutObject
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html)
//
// *
// CreateBucket
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html)
//
// *
// ListBuckets
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html)
Returns some or all (up to 1,000) of the objects in a bucket. You can use the
request parameters as selection criteria to return a subset of the objects in a
bucket. A 200 OK response can contain valid or invalid XML. Be sure to design
your application to parse the contents of the response and handle it
appropriately. This API has been revised. We recommend that you use the newer
version, ListObjectsV2
, when
developing applications. For backward compatibility, Amazon S3 continues to
support ListObjects. The following operations are related to ListObjects.

ListObjectsV2

GetObject

PutObject

CreateBucket

ListBuckets
// Returns some or all ( up to 1 000 ) of the objects in a bucket . You can use the // request parameters as selection criteria to return a subset of the objects in a // bucket . A 200 OK response can contain valid or invalid XML . Be sure to design // your application to parse the contents of the response and handle it // appropriately . This API has been revised . We recommend that you use the newer // version ListObjectsV2 // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_ListObjectsV2 . html ) when // developing applications . For backward compatibility Amazon S3 continues to // support ListObjects . The following operations are related to ListObjects : // // * // ListObjectsV2 // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_ListObjectsV2 . html ) // // * // GetObject // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_GetObject . html ) // // * // PutObject // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_PutObject . html ) // // * // CreateBucket // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_CreateBucket . html ) // // * // ListBuckets // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_ListBuckets . html )
func (c *Client) ListObjects(ctx context.Context, params *ListObjectsInput, optFns ...func(*Options)) (*ListObjectsOutput, error) {
	if params == nil {
		params = &ListObjectsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListObjects", params, optFns, addOperationListObjectsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListObjectsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListObjects ( ctx context . Context , params * ListObjectsInput , optFns ... func ( * Options ) ) ( * ListObjectsOutput , error ) { if params == nil { params = & ListObjectsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListObjectsMiddlewares ) if err != nil { return nil , err } out := result . ( * ListObjectsOutput ) out . ResultMetadata = metadata return out , nil }
Returns some or all (up to 1,000) of the objects in a bucket.
Returns some or all ( up to 1 000 ) of the objects in a bucket .