waf

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: UPL-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheObj

type CacheObj struct {
	WAF  *waf.WebAppFirewall
	Age  time.Time
	ETag string
}

type Client

type Client struct {
	WafClient client.WafInterface
	Mu        sync.Mutex
	Cache     map[string]*CacheObj
}

func New

func New(wafClient *waf.WafClient) *Client

func (Client) CreateFirewall

func (W Client) CreateFirewall(lbId *string, compartmentID *string, policyId *string, ingressClassName string) (waf.CreateWebAppFirewallResponse, error)

CreateFirewall Creates the firewall from loadBalancerId, CompartmentId, PolicyId and ingressClassName

func (Client) CreateWebAppFirewall

func (W Client) CreateWebAppFirewall(ctx context.Context, request waf.CreateWebAppFirewallRequest) (response waf.CreateWebAppFirewallResponse, err error)

func (Client) DeleteWebAppFirewall

func (W Client) DeleteWebAppFirewall(ctx context.Context, request waf.DeleteWebAppFirewallRequest) (response waf.DeleteWebAppFirewallResponse, err error)

func (Client) DeleteWebAppFirewallWithId

func (W Client) DeleteWebAppFirewallWithId(id string)

func (Client) GetFireWallId

func (W Client) GetFireWallId(kubeClient kubernetes.Interface, ic *networkingv1.IngressClass, compartmentId *string, lbId *string) (response waf.CreateWebAppFirewallResponse, conflictError error, throwableError error, updateRequired bool)

func (Client) GetWebAppFirewall

func (W Client) GetWebAppFirewall(ctx context.Context, request waf.GetWebAppFirewallRequest) (response waf.GetWebAppFirewallResponse, err error)

func (Client) GetWebAppFirewallWithId

func (W Client) GetWebAppFirewallWithId(id string) (string, error)

func (Client) GetWebAppFirewallWithIdBurstCache

func (W Client) GetWebAppFirewallWithIdBurstCache(id string) (string, error)

Jump to

Keyboard shortcuts

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