Skip to content

Releases: Kong/go-pdk

v0.5.0

27 May 15:27
v0.5.0
Compare
Choose a tag to compare

Released 2020/05/27

Changes

  • Methods for kong.ctx.shared manipulation were moved from kong.Node
    to a new module named kong.Ctx, mirroring Kong's Lua PDK structure

Additions

  • Add kong.Ctx module, counterpart of Kong's Lua PDK kong.ctx module.
    It contains the following methods:
    • SetShared: sets a value (of any type) into kong.ctx.shared
    • GetSharedAny: gets a value (of any type) from kong.ctx.shared
    • GetSharedString: gets a string from kong.ctx.shared
    • GetSharedFloat: gets a float from kong.ctx.shared
    • GetSharedInt: gets an integer from kong.ctx.shared
  • Add new methods to kong.Nginx, allowing direct manipulation of the request context (ngx.ctx):
    • SetCtx: sets a value (of any type) into the request context
    • GetCtxInt: gets an integer value from the request context

v0.4.0

25 May 15:41
v0.4.0
Compare
Choose a tag to compare

Released 2020/05/25

Additions

  • Add the kong.service.response.get_raw_body method, allowing Go plugins
    to access upstream Services response

v0.3.1

07 May 22:42
v0.3.1
Compare
Choose a tag to compare

Released 2020/05/07

Additions

  • Add missing methods:
    • kong.Nginx.GetSubsystem
    • kong.Node.SetCtxShared
    • kong.Node.GetCtxSharedAny
    • kong.Node.GetCtxSharedString
    • kong.Node.GetCtxSharedFloat
    • kong.Response.Exit
    • kong.Response.ExitStatus

v0.3.0

21 Jan 00:26
Compare
Choose a tag to compare
chore(*) support go modules (#12)

0.1 - Tech preview for Kong 2.0.0 alpha

30 Oct 16:51
Compare
Choose a tag to compare
Pre-release

This is the version used in the 2.0.0alpha demos presented at Kong Summit 2019.