apisix

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Apache APISIX Provider

The project supports translating Apache APISIX specific annotations.

Supported Annotations

  • k8s.apisix.apache.org/http-to-https: When set to true, this annotation can be used to redirect HTTP requests to HTTPS with a 301 status code and with the same URI as the original request.

Documentation

Index

Constants

View Source
const ApisixIngressClass = "apisix"
View Source
const Name = "apisix"

The Name of the provider.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(conf *i2gw.ProviderConf) i2gw.Provider

NewProvider constructs and returns the apisix implementation of i2gw.Provider.

Types

type Provider

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

Provider implements the i2gw.Provider interface.

func (*Provider) ReadResourcesFromCluster

func (p *Provider) ReadResourcesFromCluster(ctx context.Context) error

func (*Provider) ReadResourcesFromFile

func (p *Provider) ReadResourcesFromFile(_ context.Context, filename string) error

func (*Provider) ToGatewayAPI

ToGatewayAPI converts the received i2gw.InputResources to i2gw.GatewayResources including the apisix specific features.

Jump to

Keyboard shortcuts

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