webtamperprotection_rules

package
v0.0.0-...-d823fe1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestOpts golangsdk.RequestOpts = golangsdk.RequestOpts{
	MoreHeaders: map[string]string{"Content-Type": "application/json", "X-Language": "en-us"},
}

Functions

This section is empty.

Types

type CreateOpts

type CreateOpts struct {
	Hostname string `json:"hostname" required:"true"`
	Url      string `json:"path" required:"true"`
}

CreateOpts contains all the values needed to create a new web tamper protection rule.

func (CreateOpts) ToWebTamperCreateMap

func (opts CreateOpts) ToWebTamperCreateMap() (map[string]interface{}, error)

ToWebTamperCreateMap builds a create request body from CreateOpts.

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToWebTamperCreateMap() (map[string]interface{}, error)
}

CreateOptsBuilder allows extensions to add additional parameters to the Create request.

type CreateResult

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

CreateResult represents the result of a create operation. Call its Extract method to interpret it as a Web Tamper Protection rule.

func Create

func Create(c *golangsdk.ServiceClient, policyID string, opts CreateOptsBuilder) (r CreateResult)

Create will create a new web tamper protection rule based on the values in CreateOpts.

func (CreateResult) Extract

func (r CreateResult) Extract() (*WebTamper, error)

Extract is a function that accepts a result and extracts a web tamper protection rule.

type DeleteResult

type DeleteResult struct {
	golangsdk.ErrResult
}

DeleteResult represents the result of a delete operation. Call its ExtractErr method to determine if the request succeeded or failed.

func Delete

func Delete(c *golangsdk.ServiceClient, policyID, ruleID string) (r DeleteResult)

Delete will permanently delete a particular web tamper protection rule based on its unique ID.

type GetResult

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

GetResult represents the result of a get operation. Call its Extract method to interpret it as a Web Tamper Protection rule.

func Get

func Get(c *golangsdk.ServiceClient, policyID, ruleID string) (r GetResult)

Get retrieves a particular web tamper protection rule based on its unique ID.

func (GetResult) Extract

func (r GetResult) Extract() (*WebTamper, error)

Extract is a function that accepts a result and extracts a web tamper protection rule.

type UpdateResult

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

UpdateResult represents the result of a update operation. Call its Extract method to interpret it as a Web Tamper Protection rule.

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*WebTamper, error)

Extract is a function that accepts a result and extracts a web tamper protection rule.

type WebTamper

type WebTamper struct {
	Id        string `json:"id"`
	PolicyID  string `json:"policy_id"`
	Hostname  string `json:"hostname"`
	Url       string `json:"path"`
	TimeStamp int64  `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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