-
Notifications
You must be signed in to change notification settings - Fork 5
Adjust interface to be compatible with other FC runtime #3
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
base: master
Are you sure you want to change the base?
Conversation
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. |
1f91102
to
6c2f0bd
Compare
public OSSEvent(@JsonProperty("events") Event[] events) { | ||
this.events = events; | ||
} | ||
public OSSEvent.Event events[]; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
return userIdentity; | ||
} | ||
|
||
public void setUserIdentity(UserIdentity userIdentity) { | ||
this.userIdentity = userIdentity; | ||
} | ||
|
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
|
No description provided.