dry

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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

func (s *CertificateCRUD) Create(arg ...crud.Arg) (crud.Arg, error)

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.

func (*CertificateCRUD) Delete

func (s *CertificateCRUD) Delete(arg ...crud.Arg) (crud.Arg, error)

Delete deletes a fake certificate. The arg should be of type diff.Event, containing the certificate to be deleted, else the function will panic. It returns a the deleted *state.Certificate.

func (*CertificateCRUD) Update

func (s *CertificateCRUD) Update(arg ...crud.Arg) (crud.Arg, error)

Update updates a fake certificate. The arg should be of type diff.Event, containing the certificate to be updated, else the function will panic. It returns a the updated *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

func (s *ConsumerCRUD) Create(arg ...crud.Arg) (crud.Arg, error)

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.

func (*ConsumerCRUD) Delete

func (s *ConsumerCRUD) Delete(arg ...crud.Arg) (crud.Arg, error)

Delete deletes a fake Consumer. The arg should be of type diff.Event, containing the Consumer to be deleted, else the function will panic. It returns a the deleted *state.Consumer.

func (*ConsumerCRUD) Update

func (s *ConsumerCRUD) Update(arg ...crud.Arg) (crud.Arg, error)

Update updates a fake Consumer. The arg should be of type diff.Event, containing the Consumer to be updated, else the function will panic. It returns a the updated *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

func (s *PluginCRUD) Create(arg ...crud.Arg) (crud.Arg, error)

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.

func (*PluginCRUD) Delete

func (s *PluginCRUD) Delete(arg ...crud.Arg) (crud.Arg, error)

Delete deletes a fake plugin. The arg should be of type diff.Event, containing the plugin to be deleted, else the function will panic. It returns a the deleted *state.Plugin.

func (*PluginCRUD) Update

func (s *PluginCRUD) Update(arg ...crud.Arg) (crud.Arg, error)

Update updates a fake plugin. The arg should be of type diff.Event, containing the plugin to be updated, else the function will panic. It returns a the updated *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

func (s *RouteCRUD) Create(arg ...crud.Arg) (crud.Arg, error)

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.

func (*RouteCRUD) Delete

func (s *RouteCRUD) Delete(arg ...crud.Arg) (crud.Arg, error)

Delete deletes a fake Route. The arg should be of type diff.Event, containing the route to be deleted, else the function will panic. It returns a the deleted *state.Route.

func (*RouteCRUD) Update

func (s *RouteCRUD) Update(arg ...crud.Arg) (crud.Arg, error)

Update updates a fake Route. The arg should be of type diff.Event, containing the route to be updated, else the function will panic. It returns a the updated *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

func (s *ServiceCRUD) Create(arg ...crud.Arg) (crud.Arg, error)

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.

func (*ServiceCRUD) Delete

func (s *ServiceCRUD) Delete(arg ...crud.Arg) (crud.Arg, error)

Delete deletes a fake service. The arg should be of type diff.Event, containing the service to be deleted, else the function will panic. It returns a the deleted *state.Service.

func (*ServiceCRUD) Update

func (s *ServiceCRUD) Update(arg ...crud.Arg) (crud.Arg, error)

Update updates a fake service. The arg should be of type diff.Event, containing the service to be updated, else the function will panic. It returns a the updated *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

func (s *TargetCRUD) Create(arg ...crud.Arg) (crud.Arg, error)

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.

func (*TargetCRUD) Delete

func (s *TargetCRUD) Delete(arg ...crud.Arg) (crud.Arg, error)

Delete deletes a fake Target. The arg should be of type diff.Event, containing the target to be deleted, else the function will panic. It returns a the deleted *state.Target.

func (*TargetCRUD) Update

func (s *TargetCRUD) Update(arg ...crud.Arg) (crud.Arg, error)

Update updates a fake Target. The arg should be of type diff.Event, containing the target to be updated, else the function will panic. It returns a the updated *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

func (s *UpstreamCRUD) Create(arg ...crud.Arg) (crud.Arg, error)

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.

func (*UpstreamCRUD) Delete

func (s *UpstreamCRUD) Delete(arg ...crud.Arg) (crud.Arg, error)

Delete deletes a fake Upstream. The arg should be of type diff.Event, containing the upstream to be deleted, else the function will panic. It returns a the deleted *state.Upstream.

func (*UpstreamCRUD) Update

func (s *UpstreamCRUD) Update(arg ...crud.Arg) (crud.Arg, error)

Update updates a fake Upstream. The arg should be of type diff.Event, containing the upstream to be updated, else the function will panic. It returns a the updated *state.Upstream.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL