Skip to content

Adjust interface to be compatible with other FC runtime#3

Open
nerdyyatrice wants to merge 1 commit intomasterfrom
adjust_interface
Open

Adjust interface to be compatible with other FC runtime#3
nerdyyatrice wants to merge 1 commit intomasterfrom
adjust_interface

Conversation

@nerdyyatrice
Copy link
Collaborator

No description provided.

@nerdyyatrice
Copy link
Collaborator Author

Not sure how to make the publish maven thing pass on the CI as I imagine we won't put our AK on the CI machine.

public OSSEvent(@JsonProperty("events") Event[] events) {
this.events = events;
}
public OSSEvent.Event events[];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this private and define the accessor like other fields?

private String eventVersion;
private OSSEvent.Event.Oss oss;
private String region;
private OSSEvent.Event.RequestParameters requestParameters;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer a flat structure instead of nest one. e.g. all other fields are declared under OSSEvent.

So user write OSSEvent.Bucket instead of OSSEvent.Event.Oss.Bucket

public void setUserIdentity(UserIdentity userIdentity) {
this.userIdentity = userIdentity;
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you implement equals, hashCode and toString methods? Those would be useful to write test and print.

* @return The function output as a Pojo
*/
public O handleRequest(I input, Context context);
public O handleRequest(I input, Context context) throws Exception;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The stream one throws IOException?

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants