Documentation ¶
Overview ¶
Package dry contains Action for Kong entites. The actions are fake, meaning, the operations don't actually make REST Calls to Kong but mimic them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateCRUD ¶
type CertificateCRUD struct { }
CertificateCRUD implements Actions interface from the github.com/kong/crud package for the Certificate entitiy of Kong.
func (*CertificateCRUD) Create ¶
Create creates a fake certificate. The arg should be of type diff.Event, containing the certificate to be created, else the function will panic. It returns a the created *state.Certificate.
type ConsumerCRUD ¶
type ConsumerCRUD struct { }
ConsumerCRUD implements Actions interface from the github.com/kong/crud package for the Consumer entitiy of Kong.
func (*ConsumerCRUD) Create ¶
Create creates a fake Consumer. The arg should be of type diff.Event, containing the Consumer to be created, else the function will panic. It returns a the created *state.Consumer.
type PluginCRUD ¶
type PluginCRUD struct { }
PluginCRUD implements Actions interfaces from the github.com/kong/crud package for the Plugin entitiy of Kong.
func (*PluginCRUD) Create ¶
Create creates a fake plugin. The arg should be of type diff.Event, containing the plugin to be created, else the function will panic. It returns a the created *state.Plugin.
type RouteCRUD ¶
type RouteCRUD struct { }
RouteCRUD implements Actions interface from the github.com/kong/crud package for the Route entitiy of Kong.
func (*RouteCRUD) Create ¶
Create creates a fake Route. The arg should be of type diff.Event, containing the route to be created, else the function will panic. It returns a the created *state.Route.
type ServiceCRUD ¶
type ServiceCRUD struct { }
ServiceCRUD implements Actions interface from the github.com/kong/crud package for the Service entitiy of Kong.
func (*ServiceCRUD) Create ¶
Create creates a fake service. The arg should be of type diff.Event, containing the service to be created, else the function will panic. It returns a the created *state.Service.
type TargetCRUD ¶
type TargetCRUD struct { }
TargetCRUD implements Actions interface from the github.com/kong/crud package for the Target entitiy of Kong.
func (*TargetCRUD) Create ¶
Create creates a fake Target. The arg should be of type diff.Event, containing the target to be created, else the function will panic. It returns a the created *state.Target.
type UpstreamCRUD ¶
type UpstreamCRUD struct { }
UpstreamCRUD implements Actions interface from the github.com/kong/crud package for the Upstream entitiy of Kong.
func (*UpstreamCRUD) Create ¶
Create creates a fake Upstream. The arg should be of type diff.Event, containing the upstream to be created, else the function will panic. It returns a the created *state.Upstream.