incapsula

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImpervaCertUpload

type ImpervaCertUpload struct {
	Certificate string `json:"certificate"`
	PrivateKey  string `json:"private_key"`
	Passphrase  string `json:"passphrase,omitempty"`
	AuthType    string `json:"auth_type"`
}

type IncapsulaResponse

type IncapsulaResponse struct {
	Res        int    `json:"res"`
	ResMessage string `json:"res_message"`
}

Incapsula response contains the response from Incapsula API

type IncapsulaStore

type IncapsulaStore struct {
	ID              string `json:"api_id"`
	SiteID          string `json:"site_id"`
	Key             string `json:"api_key"`
	AuthType        string `json:"auth_type"`
	SecretName      string
	SecretNamespace string
}

func (*IncapsulaStore) FromConfig added in v1.1.0

func (*IncapsulaStore) GetApiKey

func (s *IncapsulaStore) GetApiKey(ctx context.Context) error

func (*IncapsulaStore) GetIncapsulaSiteStatus

func (s *IncapsulaStore) GetIncapsulaSiteStatus() (string, error)

func (*IncapsulaStore) Sync added in v1.1.0

func (*IncapsulaStore) UploadIncapsulaCert

func (s *IncapsulaStore) UploadIncapsulaCert(cert *tlssecret.Certificate) error

UploadIncapsulaCert syncs a certificate with Incapsula site

Jump to

Keyboard shortcuts

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