v1beta1

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the gomaproj v1beta1 API group. +kubebuilder:object:generate=true +groupName=gomaproj.github.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "gomaproj.github.io", Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AutoScaling

type AutoScaling struct {
	Enabled                           bool  `json:"enabled,omitempty"`
	MinReplicas                       int32 `json:"minReplicas,omitempty"`
	MaxReplicas                       int32 `json:"maxReplicas,omitempty"`
	TargetCPUUtilizationPercentage    int32 `json:"targetCPUUtilizationPercentage,omitempty"`
	TargetMemoryUtilizationPercentage int32 `json:"targetMemoryUtilizationPercentage,omitempty"`
}

func (*AutoScaling) DeepCopy

func (in *AutoScaling) DeepCopy() *AutoScaling

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoScaling.

func (*AutoScaling) DeepCopyInto

func (in *AutoScaling) DeepCopyInto(out *AutoScaling)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Cors

type Cors struct {
	// Cors contains Allowed origins,
	Origins []string `json:"origins,omitempty" yaml:"origins,omitempty"`
	// Headers contains custom headers
	Headers map[string]string `json:"headers,omitempty" yaml:"headers,omitempty"`
}

func (*Cors) DeepCopy

func (in *Cors) DeepCopy() *Cors

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cors.

func (*Cors) DeepCopyInto

func (in *Cors) DeepCopyInto(out *Cors)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Gateway

type Gateway struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GatewaySpec   `json:"spec,omitempty"`
	Status GatewayStatus `json:"status,omitempty"`
}

Gateway is the Schema for the gateways API.

func (*Gateway) DeepCopy

func (in *Gateway) DeepCopy() *Gateway

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gateway.

func (*Gateway) DeepCopyInto

func (in *Gateway) DeepCopyInto(out *Gateway)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Gateway) DeepCopyObject

func (in *Gateway) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GatewayConfig

type GatewayConfig struct {
	GatewayConf GatewaySpec `yaml:"gateway,omitempty"`
}

func (*GatewayConfig) DeepCopy

func (in *GatewayConfig) DeepCopy() *GatewayConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayConfig.

func (*GatewayConfig) DeepCopyInto

func (in *GatewayConfig) DeepCopyInto(out *GatewayConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GatewayList

type GatewayList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Gateway `json:"items"`
}

GatewayList contains a list of Gateway.

func (*GatewayList) DeepCopy

func (in *GatewayList) DeepCopy() *GatewayList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayList.

func (*GatewayList) DeepCopyInto

func (in *GatewayList) DeepCopyInto(out *GatewayList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GatewayList) DeepCopyObject

func (in *GatewayList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GatewaySpec

type GatewaySpec struct {
	GatewayVersion string                  `json:"gatewayVersion,omitempty"`
	Server         Server                  `json:"server,omitempty"`
	ReplicaCount   int32                   `json:"replicaCount,omitempty"`
	AutoScaling    AutoScaling             `json:"autoScaling,omitempty"`
	Resources      v1.ResourceRequirements `json:"resources,omitempty"`
	Affinity       *v1.Affinity            `json:"affinity,omitempty"`
}

GatewaySpec defines the desired state of Gateway.

func (*GatewaySpec) DeepCopy

func (in *GatewaySpec) DeepCopy() *GatewaySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewaySpec.

func (*GatewaySpec) DeepCopyInto

func (in *GatewaySpec) DeepCopyInto(out *GatewaySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GatewayStatus

type GatewayStatus struct {
	Replicas   int32              `json:"replicas,omitempty"`
	Routes     int32              `json:"routes,omitempty"`
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

GatewayStatus defines the observed state of Gateway.

func (*GatewayStatus) DeepCopy

func (in *GatewayStatus) DeepCopy() *GatewayStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayStatus.

func (*GatewayStatus) DeepCopyInto

func (in *GatewayStatus) DeepCopyInto(out *GatewayStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Middleware

type Middleware struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MiddlewareSpec   `json:"spec,omitempty"`
	Status MiddlewareStatus `json:"status,omitempty"`
}

Middleware is the Schema for the middlewares API.

func (*Middleware) DeepCopy

func (in *Middleware) DeepCopy() *Middleware

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Middleware.

func (*Middleware) DeepCopyInto

func (in *Middleware) DeepCopyInto(out *Middleware)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Middleware) DeepCopyObject

func (in *Middleware) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MiddlewareList

type MiddlewareList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Middleware `json:"items"`
}

MiddlewareList contains a list of Middleware.

func (*MiddlewareList) DeepCopy

func (in *MiddlewareList) DeepCopy() *MiddlewareList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MiddlewareList.

func (*MiddlewareList) DeepCopyInto

func (in *MiddlewareList) DeepCopyInto(out *MiddlewareList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MiddlewareList) DeepCopyObject

func (in *MiddlewareList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MiddlewareSpec

type MiddlewareSpec struct {
	// Type contains authentication types
	//
	// basic, jwt, auth0, rateLimit, access
	Type  string   `json:"type" yaml:"type"`   // Middleware type [basic, jwt, auth0, rateLimit, access]
	Paths []string `json:"paths" yaml:"paths"` // Protected paths
	// Rule contains rule type of
	Rule runtime.RawExtension `json:"rule,omitempty" yaml:"rule"` // Middleware rule
}

MiddlewareSpec defines the desired state of Middleware.

func (*MiddlewareSpec) DeepCopy

func (in *MiddlewareSpec) DeepCopy() *MiddlewareSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MiddlewareSpec.

func (*MiddlewareSpec) DeepCopyInto

func (in *MiddlewareSpec) DeepCopyInto(out *MiddlewareSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MiddlewareStatus

type MiddlewareStatus struct {
}

MiddlewareStatus defines the observed state of Middleware.

func (*MiddlewareStatus) DeepCopy

func (in *MiddlewareStatus) DeepCopy() *MiddlewareStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MiddlewareStatus.

func (*MiddlewareStatus) DeepCopyInto

func (in *MiddlewareStatus) DeepCopyInto(out *MiddlewareStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Middlewares

type Middlewares struct {
	Middlewares []MiddlewareSpec `json:"middlewares,omitempty" yaml:"middlewares,omitempty"`
}

func (*Middlewares) DeepCopy

func (in *Middlewares) DeepCopy() *Middlewares

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Middlewares.

func (*Middlewares) DeepCopyInto

func (in *Middlewares) DeepCopyInto(out *Middlewares)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Route

type Route struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   RouteSpec   `json:"spec,omitempty"`
	Status RouteStatus `json:"status,omitempty"`
}

Route is the Schema for the routes API.

func (*Route) DeepCopy

func (in *Route) DeepCopy() *Route

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.

func (*Route) DeepCopyInto

func (in *Route) DeepCopyInto(out *Route)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Route) DeepCopyObject

func (in *Route) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RouteConfig

type RouteConfig struct {
	// Path defines route path
	Path string `json:"path" yaml:"path"`
	// Name defines route name
	Name string `json:"name" yaml:"name"`
	// Hosts Domains/hosts based request routing
	Hosts []string `json:"hosts,omitempty" yaml:"hosts"`
	// Rewrite rewrites route path to desired path
	Rewrite string `json:"rewrite,omitempty" yaml:"rewrite"`
	// Methods allowed method
	Methods []string `json:"methods,omitempty" yaml:"methods"`
	// Destination Defines backend URL
	Destination        string   `json:"destination,omitempty" yaml:"destination"`
	Backends           []string `json:"backends,omitempty" yaml:"backends"`
	InsecureSkipVerify bool     `json:"insecureSkipVerify,omitempty" yaml:"insecureSkipVerify"`
	// HealthCheck Defines the backend is health
	HealthCheck RouteHealthCheck `json:"healthCheck,omitempty" yaml:"healthCheck,omitempty"`
	// Cors contains the route cors headers
	Cors      Cors `json:"cors,omitempty" yaml:"cors"`
	RateLimit int  `json:"rateLimit,omitempty" yaml:"rateLimit"`
	// DisableHostFording Disable host forwarding.
	DisableHostFording bool `json:"disableHostFording,omitempty" yaml:"disableHostFording"`
	// InterceptErrors intercepts backend errors based on the status codes
	InterceptErrors []int `json:"interceptErrors,omitempty" yaml:"interceptErrors"`
	// BlockCommonExploits enable, disable block common exploits
	BlockCommonExploits bool `json:"blockCommonExploits,omitempty" yaml:"blockCommonExploits"`
	// Middlewares Defines route middleware
	Middlewares []string `json:"middlewares,omitempty" yaml:"middlewares"`
}

func (*RouteConfig) DeepCopy

func (in *RouteConfig) DeepCopy() *RouteConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteConfig.

func (*RouteConfig) DeepCopyInto

func (in *RouteConfig) DeepCopyInto(out *RouteConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RouteHealthCheck

type RouteHealthCheck struct {
	Path            string `json:"path,omitempty" yaml:"path"`
	Interval        string `json:"interval,omitempty" yaml:"interval"`
	Timeout         string `json:"timeout,omitempty" yaml:"timeout"`
	HealthyStatuses []int  `json:"healthyStatuses,omitempty" yaml:"healthyStatuses"`
}

func (*RouteHealthCheck) DeepCopy

func (in *RouteHealthCheck) DeepCopy() *RouteHealthCheck

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteHealthCheck.

func (*RouteHealthCheck) DeepCopyInto

func (in *RouteHealthCheck) DeepCopyInto(out *RouteHealthCheck)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RouteList

type RouteList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Route `json:"items"`
}

RouteList contains a list of Route.

func (*RouteList) DeepCopy

func (in *RouteList) DeepCopy() *RouteList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteList.

func (*RouteList) DeepCopyInto

func (in *RouteList) DeepCopyInto(out *RouteList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RouteList) DeepCopyObject

func (in *RouteList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RouteSpec

type RouteSpec struct {
	Gateway string        `json:"gateway"`
	Routes  []RouteConfig `json:"routes"`
}

RouteSpec defines the desired state of Route.

func (*RouteSpec) DeepCopy

func (in *RouteSpec) DeepCopy() *RouteSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteSpec.

func (*RouteSpec) DeepCopyInto

func (in *RouteSpec) DeepCopyInto(out *RouteSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RouteStatus

type RouteStatus struct {
}

RouteStatus defines the observed state of Route.

func (*RouteStatus) DeepCopy

func (in *RouteStatus) DeepCopy() *RouteStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteStatus.

func (*RouteStatus) DeepCopyInto

func (in *RouteStatus) DeepCopyInto(out *RouteStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RoutesConfig

type RoutesConfig struct {
	Routes []RouteConfig `json:"routes" yaml:"routes"`
}

func (*RoutesConfig) DeepCopy

func (in *RoutesConfig) DeepCopy() *RoutesConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoutesConfig.

func (*RoutesConfig) DeepCopyInto

func (in *RoutesConfig) DeepCopyInto(out *RoutesConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Server

type Server struct {
	// WriteTimeout defines proxy write timeout
	WriteTimeout int `json:"writeTimeout,omitempty" yaml:"writeTimeout,omitempty"`
	// ReadTimeout defines proxy read timeout
	ReadTimeout int `json:"readTimeout,omitempty" yaml:"readTimeout,omitempty"`
	// IdleTimeout defines proxy idle timeout
	IdleTimeout int `json:"idleTimeout,omitempty" yaml:"idleTimeout,omitempty"`
	// LogLevel log level, info, debug, trace, off
	LogLevel string `json:"logLevel,omitempty" yaml:"logLevel,omitempty"`
	// Cors holds proxy global cors
	Cors Cors `json:"cors,omitempty" yaml:"cors,omitempty,omitempty"`
	// InterceptErrors holds the status codes to intercept the error from backend
	InterceptErrors []int `json:"interceptErrors,omitempty" yaml:"interceptErrors,omitempty"`
	// DisableHealthCheckStatus enable and disable routes health check
	DisableHealthCheckStatus bool `json:"disableHealthCheckStatus,omitempty" yaml:"disableHealthCheckStatus"`
	// DisableKeepAlive allows enabling and disabling KeepALive server
	DisableKeepAlive bool `json:"disableKeepAlive,omitempty" yaml:"disableKeepAlive"`
	// EnableMetrics enable and disable server metrics
	EnableMetrics bool `json:"enableMetrics,omitempty" yaml:"enableMetrics"`
}

func (*Server) DeepCopy

func (in *Server) DeepCopy() *Server

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server.

func (*Server) DeepCopyInto

func (in *Server) DeepCopyInto(out *Server)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Tls

type Tls struct {
	CredentialName string `json:"credentialName"` // CredentialName fetches certs from Kubernetes secret
}

func (*Tls) DeepCopy

func (in *Tls) DeepCopy() *Tls

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tls.

func (*Tls) DeepCopyInto

func (in *Tls) DeepCopyInto(out *Tls)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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