kong

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLGroupCRUD added in v0.5.0

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

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

func NewACLGroupCRUD added in v0.5.0

func NewACLGroupCRUD(client *kong.Client) (*ACLGroupCRUD, error)

NewACLGroupCRUD creates a new ACLGroupCRUD. Client is required.

func (*ACLGroupCRUD) Create added in v0.5.0

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

Create creates a Route in Kong. The arg should be of type diff.Event, containing the aclGroup to be created, else the function will panic. It returns a the created *state.Route.

func (*ACLGroupCRUD) Delete added in v0.5.0

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

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

func (*ACLGroupCRUD) Update added in v0.5.0

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

Update updates a Route in Kong. The arg should be of type diff.Event, containing the aclGroup to be updated, else the function will panic. It returns a the updated *state.Route.

type BasicAuthCRUD added in v0.5.0

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

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

func NewBasicAuthCRUD added in v0.5.0

func NewBasicAuthCRUD(client *kong.Client) (*BasicAuthCRUD, error)

NewBasicAuthCRUD creates a new BasicAuthCRUD. Client is required.

func (*BasicAuthCRUD) Create added in v0.5.0

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

Create creates a Route in Kong. The arg should be of type diff.Event, containing the basicAuth to be created, else the function will panic. It returns a the created *state.Route.

func (*BasicAuthCRUD) Delete added in v0.5.0

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

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

func (*BasicAuthCRUD) Update added in v0.5.0

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

Update updates a Route in Kong. The arg should be of type diff.Event, containing the basicAuth to be updated, else the function will panic. It returns a the updated *state.Route.

type CACertificateCRUD added in v0.5.0

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

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

func NewCACertificateCRUD added in v0.5.0

func NewCACertificateCRUD(client *kong.Client) (*CACertificateCRUD, error)

NewCACertificateCRUD creates a new CACertificateCRUD. Client is required.

func (*CACertificateCRUD) Create added in v0.5.0

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

Create creates a CACertificate 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.CACertificate.

func (*CACertificateCRUD) Delete added in v0.5.0

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

Delete deletes a CACertificate 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.CACertificate.

func (*CACertificateCRUD) Update added in v0.5.0

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

Update updates a CACertificate 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.CACertificate.

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 added in v0.2.0

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 added in v0.2.0

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

NewConsumerCRUD creates a new ConsumerCRUD. Client is required.

func (*ConsumerCRUD) Create added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 HMACAuthCRUD added in v0.5.0

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

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

func NewHMACAuthCRUD added in v0.5.0

func NewHMACAuthCRUD(client *kong.Client) (*HMACAuthCRUD, error)

NewHMACAuthCRUD creates a new HMACAuthCRUD. Client is required.

func (*HMACAuthCRUD) Create added in v0.5.0

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

Create creates a Route in Kong. The arg should be of type diff.Event, containing the hmacAuth to be created, else the function will panic. It returns a the created *state.Route.

func (*HMACAuthCRUD) Delete added in v0.5.0

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

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

func (*HMACAuthCRUD) Update added in v0.5.0

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

Update updates a Route in Kong. The arg should be of type diff.Event, containing the hmacAuth to be updated, else the function will panic. It returns a the updated *state.Route.

type JWTAuthCRUD added in v0.5.0

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

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

func NewJWTAuthCRUD added in v0.5.0

func NewJWTAuthCRUD(client *kong.Client) (*JWTAuthCRUD, error)

NewJWTAuthCRUD creates a new JWTAuthCRUD. Client is required.

func (*JWTAuthCRUD) Create added in v0.5.0

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

Create creates a Route in Kong. The arg should be of type diff.Event, containing the jwtAuth to be created, else the function will panic. It returns a the created *state.Route.

func (*JWTAuthCRUD) Delete added in v0.5.0

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

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

func (*JWTAuthCRUD) Update added in v0.5.0

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

Update updates a Route in Kong. The arg should be of type diff.Event, containing the jwtAuth to be updated, else the function will panic. It returns a the updated *state.Route.

type KeyAuthCRUD added in v0.5.0

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

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

func NewKeyAuthCRUD added in v0.5.0

func NewKeyAuthCRUD(client *kong.Client) (*KeyAuthCRUD, error)

NewKeyAuthCRUD creates a new KeyAuthCRUD. Client is required.

func (*KeyAuthCRUD) Create added in v0.5.0

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

Create creates a Route in Kong. The arg should be of type diff.Event, containing the keyAuth to be created, else the function will panic. It returns a the created *state.Route.

func (*KeyAuthCRUD) Delete added in v0.5.0

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

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

func (*KeyAuthCRUD) Update added in v0.5.0

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

Update updates a Route in Kong. The arg should be of type diff.Event, containing the keyAuth to be updated, else the function will panic. It returns a the updated *state.Route.

type Oauth2CredCRUD added in v0.5.1

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

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

func NewOauth2CredCRUD added in v0.5.1

func NewOauth2CredCRUD(client *kong.Client) (*Oauth2CredCRUD, error)

NewOauth2CredCRUD creates a new Oauth2CredCRUD. Client is required.

func (*Oauth2CredCRUD) Create added in v0.5.1

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

Create creates a Route in Kong. The arg should be of type diff.Event, containing the oauth2Cred to be created, else the function will panic. It returns a the created *state.Route.

func (*Oauth2CredCRUD) Delete added in v0.5.1

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

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

func (*Oauth2CredCRUD) Update added in v0.5.1

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

Update updates a Route in Kong. The arg should be of type diff.Event, containing the oauth2Cred to be updated, else the function will panic. It returns a the updated *state.Route.

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