v1beta1

package
v3.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1beta1 is the v1beta1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder builds a scheme
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme a function to add to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: dos.GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these object.

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource.

Types

type ApDosMonitor

type ApDosMonitor struct {
	// URI is the destination to the desired protected object in the nginx.conf:
	URI string `json:"uri"`
	// +kubebuilder:validation:Enum=http1;http2;grpc;websocket
	// Protocol determines if the server listens on http1 / http2 / grpc / websocket. The default is http1.
	Protocol string `json:"protocol"`
	// Timeout determines how long (in seconds) should NGINX App Protect DoS wait for a response. Default is 10 seconds for http1/http2 and 5 seconds for grpc.
	Timeout uint64 `json:"timeout"`
}

ApDosMonitor is how NGINX App Protect DoS monitors the stress level of the protected object. The monitor requests are sent from localhost (127.0.0.1). Default value: URI - None, protocol - http1, timeout - NGINX App Protect DoS default.

func (*ApDosMonitor) DeepCopy

func (in *ApDosMonitor) DeepCopy() *ApDosMonitor

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

func (*ApDosMonitor) DeepCopyInto

func (in *ApDosMonitor) DeepCopyInto(out *ApDosMonitor)

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

type DosProtectedResource

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

	Spec DosProtectedResourceSpec `json:"spec"`
}

DosProtectedResource defines a Dos protected resource.

func (*DosProtectedResource) DeepCopy

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

func (*DosProtectedResource) DeepCopyInto

func (in *DosProtectedResource) DeepCopyInto(out *DosProtectedResource)

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

func (*DosProtectedResource) DeepCopyObject

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

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

type DosProtectedResourceList

type DosProtectedResourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []DosProtectedResource `json:"items"`
}

DosProtectedResourceList is a list of the DosProtectedResource resources.

func (*DosProtectedResourceList) DeepCopy

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

func (*DosProtectedResourceList) DeepCopyInto

func (in *DosProtectedResourceList) DeepCopyInto(out *DosProtectedResourceList)

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

func (*DosProtectedResourceList) DeepCopyObject

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

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

type DosProtectedResourceSpec

type DosProtectedResourceSpec struct {
	// Enable enables the DOS feature if set to true
	Enable bool `json:"enable"`
	// Name is the name of protected object, max of 63 characters.
	Name         string        `json:"name"`
	ApDosMonitor *ApDosMonitor `json:"apDosMonitor"`
	// DosAccessLogDest is the network address for the access logs
	DosAccessLogDest string `json:"dosAccessLogDest"`
	// ApDosPolicy is the namespace/name of a ApDosPolicy resource
	ApDosPolicy    string          `json:"apDosPolicy"`
	DosSecurityLog *DosSecurityLog `json:"dosSecurityLog"`
}

DosProtectedResourceSpec defines the properties and values a DosProtectedResource can have.

func (*DosProtectedResourceSpec) DeepCopy

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

func (*DosProtectedResourceSpec) DeepCopyInto

func (in *DosProtectedResourceSpec) DeepCopyInto(out *DosProtectedResourceSpec)

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

type DosSecurityLog

type DosSecurityLog struct {
	// Enable enables the security logging feature if set to true
	Enable bool `json:"enable"`
	// ApDosLogConf is the namespace/name of a APDosLogConf resource
	ApDosLogConf string `json:"apDosLogConf"`
	// DosLogDest is the network address of a logging service, can be either IP or DNS name.
	DosLogDest string `json:"dosLogDest"`
}

DosSecurityLog defines the security log of the DosProtectedResource.

func (*DosSecurityLog) DeepCopy

func (in *DosSecurityLog) DeepCopy() *DosSecurityLog

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

func (*DosSecurityLog) DeepCopyInto

func (in *DosSecurityLog) DeepCopyInto(out *DosSecurityLog)

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