kong

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateCRUD

type CertificateCRUD struct {
	// contains filtered or unexported fields
}

CertificateCRUD implements Actions interface from the github.com/kong/crud package for the Certificate entitiy of Kong.

func NewCertificateCRUD

func NewCertificateCRUD(client *kong.Client) (*CertificateCRUD, error)

NewCertificateCRUD creates a new CertificateCRUD. Client is required.

func (*CertificateCRUD) Create

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

Create creates a Certificate in Kong. 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 Certificate in Kong. 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 Certificate in Kong. 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 {
	// contains filtered or unexported fields
}

ConsumerCRUD implements Actions interface from the github.com/kong/crud package for the Consumer entitiy of Kong.

func NewConsumerCRUD

func NewConsumerCRUD(client *kong.Client) (*ConsumerCRUD, error)

NewConsumerCRUD creates a new ConsumerCRUD. Client is required.

func (*ConsumerCRUD) Create

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

Create creates a Consumer in Kong. 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 Consumer in Kong. 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 Consumer in Kong. 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 {
	// contains filtered or unexported fields
}

PluginCRUD implements Actions interface from the github.com/kong/crud package for the Plugin entitiy of Kong.

func NewPluginCRUD

func NewPluginCRUD(client *kong.Client) (*PluginCRUD, error)

NewPluginCRUD creates a new PluginCRUD. Client is required.

func (*PluginCRUD) Create

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

Create creates a Plugin in Kong. 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 Plugin in Kong. 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 Plugin in Kong. 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 {
	// contains filtered or unexported fields
}

RouteCRUD implements Actions interface from the github.com/kong/crud package for the Route entitiy of Kong.

func NewRouteCRUD

func NewRouteCRUD(client *kong.Client) (*RouteCRUD, error)

NewRouteCRUD creates a new RouteCRUD. Client is required.

func (*RouteCRUD) Create

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

Create creates a Route in Kong. 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 Route in Kong. 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 Route in Kong. 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 {
	// contains filtered or unexported fields
}

ServiceCRUD implements Actions interface from the github.com/kong/crud package for the Service entitiy of Kong.

func NewServiceCRUD

func NewServiceCRUD(client *kong.Client) (*ServiceCRUD, error)

NewServiceCRUD creates a new ServiceCRUD. Client is required.

func (*ServiceCRUD) Create

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

Create creates a Service in Kong. 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 Service in Kong. 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 Service in Kong. 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 {
	// contains filtered or unexported fields
}

TargetCRUD implements Actions interface from the github.com/kong/crud package for the Target entitiy of Kong.

func NewTargetCRUD

func NewTargetCRUD(client *kong.Client) (*TargetCRUD, error)

NewTargetCRUD creates a new TargetCRUD. Client is required.

func (*TargetCRUD) Create

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

Create creates a Target in Kong. 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 Target in Kong. 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 Target in Kong. 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 {
	// contains filtered or unexported fields
}

UpstreamCRUD implements Actions interface from the github.com/kong/crud package for the Upstream entitiy of Kong.

func NewUpstreamCRUD

func NewUpstreamCRUD(client *kong.Client) (*UpstreamCRUD, error)

NewUpstreamCRUD creates a new UpstreamCRUD. Client is required.

func (*UpstreamCRUD) Create

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

Create creates a Upstream in Kong. 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 Upstream in Kong. 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 Upstream in Kong. 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.

Directories

Path Synopsis
Package dry contains Action for Kong entites.
Package dry contains Action for Kong entites.

Jump to

Keyboard shortcuts

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