// Returns a list of PackageSummary
// (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageSummary.html)
// objects for packages in a repository that match the request parameters.
Returns a list of PackageSummary

objects for packages in a repository that match the request parameters.
// Returns a list of PackageSummary // ( https : // docs . aws . amazon . com / codeartifact / latest / APIReference / API_PackageSummary . html ) // objects for packages in a repository that match the request parameters .
func (c *Client) ListPackages(ctx context.Context, params *ListPackagesInput, optFns ...func(*Options)) (*ListPackagesOutput, error) {
	if params == nil {
		params = &ListPackagesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListPackages", params, optFns, addOperationListPackagesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListPackagesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListPackages ( ctx context . Context , params * ListPackagesInput , optFns ... func ( * Options ) ) ( * ListPackagesOutput , error ) { if params == nil { params = & ListPackagesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListPackagesMiddlewares ) if err != nil { return nil , err } out := result . ( * ListPackagesOutput ) out . ResultMetadata = metadata return out , nil }
Returns a list of PackageSummary
Returns a list of PackageSummary