botman

package
v8.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Overview

Package botman provides access to the Akamai Application Security Botman APIs

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrStructValidation is returned when given struct validation failed
	ErrStructValidation = errors.New("struct validation")
)

Functions

This section is empty.

Types

type AkamaiBotCategory

type AkamaiBotCategory interface {
	// GetAkamaiBotCategoryList https://techdocs.akamai.com/bot-manager/reference/get-akamai-bot-categories
	GetAkamaiBotCategoryList(ctx context.Context, params GetAkamaiBotCategoryListRequest) (*GetAkamaiBotCategoryListResponse, error)
}

The AkamaiBotCategory interface supports retrieving akamai bot categories

type AkamaiBotCategoryAction

type AkamaiBotCategoryAction interface {
	// GetAkamaiBotCategoryActionList https://techdocs.akamai.com/bot-manager/reference/get-akamai-bot-category-actions
	GetAkamaiBotCategoryActionList(ctx context.Context, params GetAkamaiBotCategoryActionListRequest) (*GetAkamaiBotCategoryActionListResponse, error)

	// GetAkamaiBotCategoryAction https://techdocs.akamai.com/bot-manager/reference/get-akamai-bot-category-action
	GetAkamaiBotCategoryAction(ctx context.Context, params GetAkamaiBotCategoryActionRequest) (map[string]interface{}, error)

	// UpdateAkamaiBotCategoryAction https://techdocs.akamai.com/bot-manager/reference/put-akamai-bot-category-action
	UpdateAkamaiBotCategoryAction(ctx context.Context, params UpdateAkamaiBotCategoryActionRequest) (map[string]interface{}, error)
}

The AkamaiBotCategoryAction interface supports retrieving and updating the actions for the akamai bot categories of a configuration

type AkamaiDefinedBot

type AkamaiDefinedBot interface {
	// GetAkamaiDefinedBotList https://techdocs.akamai.com/bot-manager/reference/get-akamai-defined-bots
	GetAkamaiDefinedBotList(ctx context.Context, params GetAkamaiDefinedBotListRequest) (*GetAkamaiDefinedBotListResponse, error)
}

The AkamaiDefinedBot interface supports retrieving akamai defined bots

type BotAnalyticsCookie

type BotAnalyticsCookie interface {

	// GetBotAnalyticsCookie https://techdocs.akamai.com/bot-manager/reference/get-bot-analytics-cookie
	GetBotAnalyticsCookie(ctx context.Context, params GetBotAnalyticsCookieRequest) (map[string]interface{}, error)

	// UpdateBotAnalyticsCookie https://techdocs.akamai.com/bot-manager/reference/put-bot-analytics-cookie
	UpdateBotAnalyticsCookie(ctx context.Context, params UpdateBotAnalyticsCookieRequest) (map[string]interface{}, error)
}

The BotAnalyticsCookie interface supports retrieving and updating bot analytics cookie settings

type BotAnalyticsCookieValues

type BotAnalyticsCookieValues interface {
	// GetBotAnalyticsCookieValues https://techdocs.akamai.com/bot-manager/reference/get-akamai-defined-bots
	GetBotAnalyticsCookieValues(ctx context.Context) (map[string]interface{}, error)
}

The BotAnalyticsCookieValues interface supports retrieving bot analytics cookie values for an account

type BotCategoryException

type BotCategoryException interface {
	// GetBotCategoryException https://techdocs.akamai.com/bot-manager/reference/get-bot-category-exception
	GetBotCategoryException(ctx context.Context, params GetBotCategoryExceptionRequest) (map[string]interface{}, error)

	// UpdateBotCategoryException https://techdocs.akamai.com/bot-manager/reference/put-bot-category-exception
	UpdateBotCategoryException(ctx context.Context, params UpdateBotCategoryExceptionRequest) (map[string]interface{}, error)
}

The BotCategoryException interface supports retrieving bot category exceptions

type BotDetection

type BotDetection interface {
	// GetBotDetectionList todo: add link
	GetBotDetectionList(ctx context.Context, params GetBotDetectionListRequest) (*GetBotDetectionListResponse, error)
}

The BotDetection interface supports retrieving bot detections

type BotDetectionAction

type BotDetectionAction interface {
	// GetBotDetectionActionList todo: add link
	GetBotDetectionActionList(ctx context.Context, params GetBotDetectionActionListRequest) (*GetBotDetectionActionListResponse, error)
	// GetBotDetectionAction todo: add link
	GetBotDetectionAction(ctx context.Context, params GetBotDetectionActionRequest) (map[string]interface{}, error)
	// UpdateBotDetectionAction todo: add link
	UpdateBotDetectionAction(ctx context.Context, params UpdateBotDetectionActionRequest) (map[string]interface{}, error)
}

The BotDetectionAction interface supports retrieving and updating the actions for bot detections of a configuration.

type BotEndpointCoverageReport

type BotEndpointCoverageReport interface {
	// GetBotEndpointCoverageReport https://techdocs.akamai.com/bot-manager/reference/get-bot-endpoint-coverage-report
	GetBotEndpointCoverageReport(ctx context.Context, params GetBotEndpointCoverageReportRequest) (*GetBotEndpointCoverageReportResponse, error)
}

The BotEndpointCoverageReport interface supports retrieving bot endpoint coverage report for an account or a specific configuration

type BotManagementSetting

type BotManagementSetting interface {

	// GetBotManagementSetting todo: add link
	GetBotManagementSetting(ctx context.Context, params GetBotManagementSettingRequest) (map[string]interface{}, error)

	// UpdateBotManagementSetting todo: add link
	UpdateBotManagementSetting(ctx context.Context, params UpdateBotManagementSettingRequest) (map[string]interface{}, error)
}

The BotManagementSetting interface supports retrieving and updating bot management settings

type ChallengeAction

The ChallengeAction interface supports creating, retrieving, modifying and removing challenge action as well as updating google recaptcha secret key for challenge action for a configuration.

type ChallengeInjectionRules

type ChallengeInjectionRules interface {
	// GetChallengeInjectionRules https://techdocs.akamai.com/bot-manager/reference/get-challenge-injection-rules
	GetChallengeInjectionRules(ctx context.Context, params GetChallengeInjectionRulesRequest) (map[string]interface{}, error)
	// UpdateChallengeInjectionRules https://techdocs.akamai.com/bot-manager/reference/put-challenge-injection-rules
	UpdateChallengeInjectionRules(ctx context.Context, params UpdateChallengeInjectionRulesRequest) (map[string]interface{}, error)
}

The ChallengeInjectionRules interface supports retrieving and updating the challenge injection rules for a configuration

type ChallengeInterceptionRules

type ChallengeInterceptionRules interface {
	// GetChallengeInterceptionRules https://techdocs.akamai.com/bot-manager/reference/get-challenge-interception-rules
	// Deprecated: this method will be removed in a future release. Use GetChallengeInjectionRules instead.
	GetChallengeInterceptionRules(ctx context.Context, params GetChallengeInterceptionRulesRequest) (map[string]interface{}, error)
	// UpdateChallengeInterceptionRules https://techdocs.akamai.com/bot-manager/reference/put-challenge-interception-rules
	// Deprecated: this method will be removed in a future release. Use UpdateChallengeInjectionRules instead.
	UpdateChallengeInterceptionRules(ctx context.Context, params UpdateChallengeInterceptionRulesRequest) (map[string]interface{}, error)
}

The ChallengeInterceptionRules interface supports retrieving and updating the challenge interception rules for a configuration Deprecated: this interface will be removed in a future release. Use ChallengeInjectionRules instead.

type ClientFunc

type ClientFunc func(sess session.Session, opts ...Option) BotMan

ClientFunc is a botman client new method, this can be used for mocking

type ClientSideSecurity

type ClientSideSecurity interface {

	// GetClientSideSecurity https://techdocs.akamai.com/bot-manager/reference/get-client-side-security
	GetClientSideSecurity(ctx context.Context, params GetClientSideSecurityRequest) (map[string]interface{}, error)

	// UpdateClientSideSecurity https://techdocs.akamai.com/bot-manager/reference/put-client-side-security
	UpdateClientSideSecurity(ctx context.Context, params UpdateClientSideSecurityRequest) (map[string]interface{}, error)
}

The ClientSideSecurity interface supports retrieving and updating client side security settings

type ConditionalAction

type ConditionalAction interface {
	// GetConditionalActionList https://techdocs.akamai.com/bot-manager/reference/get-conditional-actions
	GetConditionalActionList(ctx context.Context, params GetConditionalActionListRequest) (*GetConditionalActionListResponse, error)

	// GetConditionalAction https://techdocs.akamai.com/bot-manager/reference/get-conditional-action
	GetConditionalAction(ctx context.Context, params GetConditionalActionRequest) (map[string]interface{}, error)

	// CreateConditionalAction https://techdocs.akamai.com/bot-manager/reference/post-conditional-action
	CreateConditionalAction(ctx context.Context, params CreateConditionalActionRequest) (map[string]interface{}, error)

	// UpdateConditionalAction https://techdocs.akamai.com/bot-manager/reference/put-conditional-action
	UpdateConditionalAction(ctx context.Context, params UpdateConditionalActionRequest) (map[string]interface{}, error)

	// RemoveConditionalAction https://techdocs.akamai.com/bot-manager/reference/delete-conditional-action
	RemoveConditionalAction(ctx context.Context, params RemoveConditionalActionRequest) error
}

The ConditionalAction interface supports creating, retrieving, modifying and removing conditional action for a configuration.

type CreateChallengeActionRequest

type CreateChallengeActionRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

CreateChallengeActionRequest is used to create a new challenge action for a specific configuration.

func (CreateChallengeActionRequest) Validate

func (v CreateChallengeActionRequest) Validate() error

Validate validates a CreateChallengeActionRequest.

type CreateConditionalActionRequest

type CreateConditionalActionRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

CreateConditionalActionRequest is used to create a new conditional action for a specific configuration.

func (CreateConditionalActionRequest) Validate

Validate validates a CreateConditionalActionRequest.

type CreateCustomBotCategoryRequest

type CreateCustomBotCategoryRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

CreateCustomBotCategoryRequest is used to create a new custom bot category for a specific configuration.

func (CreateCustomBotCategoryRequest) Validate

Validate validates a CreateCustomBotCategoryRequest.

type CreateCustomClientRequest

type CreateCustomClientRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

CreateCustomClientRequest is used to create a new custom client for a specific configuration.

func (CreateCustomClientRequest) Validate

func (v CreateCustomClientRequest) Validate() error

Validate validates a CreateCustomClientRequest.

type CreateCustomDefinedBotRequest

type CreateCustomDefinedBotRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

CreateCustomDefinedBotRequest is used to create a new custom defined bot for a specific configuration.

func (CreateCustomDefinedBotRequest) Validate

func (v CreateCustomDefinedBotRequest) Validate() error

Validate validates a CreateCustomDefinedBotRequest.

type CreateCustomDenyActionRequest

type CreateCustomDenyActionRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

CreateCustomDenyActionRequest is used to create a new custom deny action for a specific configuration.

func (CreateCustomDenyActionRequest) Validate

func (v CreateCustomDenyActionRequest) Validate() error

Validate validates a CreateCustomDenyActionRequest.

type CreateRecategorizedAkamaiDefinedBotRequest

type CreateRecategorizedAkamaiDefinedBotRequest struct {
	ConfigID   int64  `json:"-"`
	Version    int64  `json:"-"`
	BotID      string `json:"botId"`
	CategoryID string `json:"customBotCategoryId"`
}

CreateRecategorizedAkamaiDefinedBotRequest is used to create a new recategorized akamai defined bot for a specific configuration.

func (CreateRecategorizedAkamaiDefinedBotRequest) Validate

Validate validates a CreateRecategorizedAkamaiDefinedBotRequest.

type CreateServeAlternateActionRequest

type CreateServeAlternateActionRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

CreateServeAlternateActionRequest is used to create a new serve alternate action for a specific configuration.

func (CreateServeAlternateActionRequest) Validate

Validate validates a CreateServeAlternateActionRequest.

type CreateTransactionalEndpointRequest

type CreateTransactionalEndpointRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	JsonPayload      json.RawMessage
}

CreateTransactionalEndpointRequest is used to create a new transactional endpoint for a specific configuration.

func (CreateTransactionalEndpointRequest) Validate

Validate validates a CreateTransactionalEndpointRequest.

type CustomBotCategory

type CustomBotCategory interface {
	// GetCustomBotCategoryList https://techdocs.akamai.com/bot-manager/reference/get-custom-bot-categories
	GetCustomBotCategoryList(ctx context.Context, params GetCustomBotCategoryListRequest) (*GetCustomBotCategoryListResponse, error)

	// GetCustomBotCategory https://techdocs.akamai.com/bot-manager/reference/get-custom-bot-category
	GetCustomBotCategory(ctx context.Context, params GetCustomBotCategoryRequest) (map[string]interface{}, error)

	// CreateCustomBotCategory https://techdocs.akamai.com/bot-manager/reference/post-custom-bot-category
	CreateCustomBotCategory(ctx context.Context, params CreateCustomBotCategoryRequest) (map[string]interface{}, error)

	// UpdateCustomBotCategory https://techdocs.akamai.com/bot-manager/reference/put-custom-bot-category
	UpdateCustomBotCategory(ctx context.Context, params UpdateCustomBotCategoryRequest) (map[string]interface{}, error)

	// RemoveCustomBotCategory https://techdocs.akamai.com/bot-manager/reference/delete-custom-bot-category
	RemoveCustomBotCategory(ctx context.Context, params RemoveCustomBotCategoryRequest) error
}

The CustomBotCategory interface supports creating, retrieving, modifying and removing custom bot categories for a configuration.

type CustomBotCategoryAction

type CustomBotCategoryAction interface {
	// GetCustomBotCategoryActionList https://techdocs.akamai.com/bot-manager/reference/get-custom-bot-category-actions
	GetCustomBotCategoryActionList(ctx context.Context, params GetCustomBotCategoryActionListRequest) (*GetCustomBotCategoryActionListResponse, error)

	// GetCustomBotCategoryAction https://techdocs.akamai.com/bot-manager/reference/get-custom-bot-category-action
	GetCustomBotCategoryAction(ctx context.Context, params GetCustomBotCategoryActionRequest) (map[string]interface{}, error)

	// UpdateCustomBotCategoryAction https://techdocs.akamai.com/bot-manager/reference/put-custom-bot-category-action
	UpdateCustomBotCategoryAction(ctx context.Context, params UpdateCustomBotCategoryActionRequest) (map[string]interface{}, error)
}

The CustomBotCategoryAction interface supports retrieving and updating the actions for the custom bot categories of a configuration

type CustomBotCategorySequence

The CustomBotCategorySequence interface supports retrieving and updating custom bot category sequence

type CustomBotCategorySequenceResponse

type CustomBotCategorySequenceResponse struct {
	Sequence []string `json:"sequence"`
}

CustomBotCategorySequenceResponse is used to retrieve custom bot category sequence

type CustomClient

The CustomClient interface supports creating, retrieving, modifying and removing custom clients for a configuration.

type CustomClientSequence

type CustomClientSequence interface {
	// GetCustomClientSequence is used to retrieve the custom client sequence for a config version
	// See https://techdocs.akamai.com/bot-manager/reference/get-custom-client-sequence
	GetCustomClientSequence(ctx context.Context, params GetCustomClientSequenceRequest) (*CustomClientSequenceResponse, error)

	// UpdateCustomClientSequence is used to update the existing custom client sequence for a config version
	// See https://techdocs.akamai.com/bot-manager/reference/put-custom-client-sequence
	UpdateCustomClientSequence(ctx context.Context, params UpdateCustomClientSequenceRequest) (*CustomClientSequenceResponse, error)
}

The CustomClientSequence interface supports retrieving and updating the custom client sequence for a configuration

type CustomClientSequenceResponse

type CustomClientSequenceResponse struct {
	Sequence   []string           `json:"sequence"`
	Validation ValidationResponse `json:"validation"`
}

CustomClientSequenceResponse is used to represent custom client sequence

type CustomCode

type CustomCode interface {
	GetCustomCode(ctx context.Context, params GetCustomCodeRequest) (map[string]interface{}, error)

	UpdateCustomCode(ctx context.Context, params UpdateCustomCodeRequest) (map[string]interface{}, error)
}

The CustomCode interface supports retrieving and updating custom code

type CustomDefinedBot

The CustomDefinedBot interface supports creating, retrieving, modifying and removing custom defined bots for a configuration.

type CustomDenyAction

The CustomDenyAction interface supports creating, retrieving, modifying and removing custom deny action for a configuration.

type Error

type Error struct {
	Type       string  `json:"type"`
	Title      string  `json:"title"`
	Detail     string  `json:"detail"`
	Errors     []Error `json:"errors,omitempty"`
	StatusCode int     `json:"status,omitempty"`
}

Error is a botman error interface.

func (*Error) Error

func (e *Error) Error() string

Error returns a string formatted using a given title, type, and detail information.

func (*Error) Is

func (e *Error) Is(target error) bool

Is handles error comparisons.

type GetAkamaiBotCategoryActionListRequest

type GetAkamaiBotCategoryActionListRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	CategoryID       string
}

GetAkamaiBotCategoryActionListRequest is used to retrieve the akamai bot category actions for a policy.

func (GetAkamaiBotCategoryActionListRequest) Validate

Validate validates a GetAkamaiBotCategoryActionListRequest.

type GetAkamaiBotCategoryActionListResponse

type GetAkamaiBotCategoryActionListResponse struct {
	Actions []map[string]interface{} `json:"actions"`
}

GetAkamaiBotCategoryActionListResponse is returned from a call to GetAkamaiBotCategoryActionList.

type GetAkamaiBotCategoryActionRequest

type GetAkamaiBotCategoryActionRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	CategoryID       string
}

GetAkamaiBotCategoryActionRequest is used to retrieve the action for an akamai bot category.

func (GetAkamaiBotCategoryActionRequest) Validate

Validate validates a GetAkamaiBotCategoryActionRequest.

type GetAkamaiBotCategoryListRequest

type GetAkamaiBotCategoryListRequest struct {
	CategoryName string
}

GetAkamaiBotCategoryListRequest is used to retrieve the akamai bot category actions for a policy.

type GetAkamaiBotCategoryListResponse

type GetAkamaiBotCategoryListResponse struct {
	Categories []map[string]interface{} `json:"categories"`
}

GetAkamaiBotCategoryListResponse is returned from a call to GetAkamaiBotCategoryList.

type GetAkamaiDefinedBotListRequest

type GetAkamaiDefinedBotListRequest struct {
	BotName string
}

GetAkamaiDefinedBotListRequest is used to retrieve the akamai bot category actions for a policy.

type GetAkamaiDefinedBotListResponse

type GetAkamaiDefinedBotListResponse struct {
	Bots []map[string]interface{} `json:"bots"`
}

GetAkamaiDefinedBotListResponse is returned from a call to GetAkamaiDefinedBotList.

type GetBotAnalyticsCookieRequest

type GetBotAnalyticsCookieRequest struct {
	ConfigID int64
	Version  int64
}

GetBotAnalyticsCookieRequest is used to retrieve the bot analytics cookie settings

func (GetBotAnalyticsCookieRequest) Validate

func (v GetBotAnalyticsCookieRequest) Validate() error

Validate validates a GetBotAnalyticsCookieRequest.

type GetBotCategoryExceptionRequest

type GetBotCategoryExceptionRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
}

GetBotCategoryExceptionRequest is used to retrieve bot category exceptions

func (GetBotCategoryExceptionRequest) Validate

Validate validates a GetBotCategoryExceptionRequest.

type GetBotDetectionActionListRequest

type GetBotDetectionActionListRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	DetectionID      string
}

GetBotDetectionActionListRequest is used to retrieve the bot detection actions for a configuration.

func (GetBotDetectionActionListRequest) Validate

Validate validates a GetBotDetectionActionListRequest.

type GetBotDetectionActionListResponse

type GetBotDetectionActionListResponse struct {
	Actions []map[string]interface{} `json:"actions"`
}

GetBotDetectionActionListResponse is used to retrieve the bot detection actions for a configuration.

type GetBotDetectionActionRequest

type GetBotDetectionActionRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	DetectionID      string
}

GetBotDetectionActionRequest is used to retrieve the action for a bot detection.

func (GetBotDetectionActionRequest) Validate

func (v GetBotDetectionActionRequest) Validate() error

Validate validates a GetBotDetectionActionRequest.

type GetBotDetectionListRequest

type GetBotDetectionListRequest struct {
	DetectionName string
}

GetBotDetectionListRequest is used to retrieve the akamai bot category actions for a policy.

type GetBotDetectionListResponse

type GetBotDetectionListResponse struct {
	Detections []map[string]interface{} `json:"detections"`
}

GetBotDetectionListResponse is returned from a call to GetBotDetectionList.

type GetBotEndpointCoverageReportRequest

type GetBotEndpointCoverageReportRequest struct {
	ConfigID    int64
	Version     int64
	OperationID string
}

GetBotEndpointCoverageReportRequest is used to retrieve the akamai bot category actions for a policy.

func (GetBotEndpointCoverageReportRequest) Validate

Validate validates GetBotEndpointCoverageReportRequest

type GetBotEndpointCoverageReportResponse

type GetBotEndpointCoverageReportResponse struct {
	Operations []map[string]interface{} `json:"operations"`
}

GetBotEndpointCoverageReportResponse is returned from a call to GetBotEndpointCoverageReport.

type GetBotManagementSettingRequest

type GetBotManagementSettingRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
}

GetBotManagementSettingRequest is used to retrieve the bot management settings

func (GetBotManagementSettingRequest) Validate

Validate validates a GetBotManagementSettingRequest.

type GetChallengeActionListRequest

type GetChallengeActionListRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

GetChallengeActionListRequest is used to retrieve challenge actions for a configuration.

func (GetChallengeActionListRequest) Validate

func (v GetChallengeActionListRequest) Validate() error

Validate validates a GetChallengeActionListRequest.

type GetChallengeActionListResponse

type GetChallengeActionListResponse struct {
	ChallengeActions []map[string]interface{} `json:"challengeActions"`
}

GetChallengeActionListResponse is used to retrieve challenge actions for a configuration.

type GetChallengeActionRequest

type GetChallengeActionRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

GetChallengeActionRequest is used to retrieve a specific challenge action

func (GetChallengeActionRequest) Validate

func (v GetChallengeActionRequest) Validate() error

Validate validates a GetChallengeActionRequest.

type GetChallengeInjectionRulesRequest

type GetChallengeInjectionRulesRequest struct {
	ConfigID int64
	Version  int64
}

GetChallengeInjectionRulesRequest is used to retrieve challenge injection rules

func (GetChallengeInjectionRulesRequest) Validate

Validate validates a GetChallengeInjectionRulesRequest.

type GetChallengeInterceptionRulesRequest

type GetChallengeInterceptionRulesRequest struct {
	ConfigID int64
	Version  int64
}

GetChallengeInterceptionRulesRequest is used to retrieve challenge interception rules Deprecated: this struct will be removed in a future release. Use GetChallengeInjectionRulesRequest instead.

func (GetChallengeInterceptionRulesRequest) Validate

Validate validates a GetChallengeInterceptionRulesRequest.

type GetClientSideSecurityRequest

type GetClientSideSecurityRequest struct {
	ConfigID int64 `json:"configId"`
	Version  int64 `json:"version"`
}

GetClientSideSecurityRequest is used to retrieve client side security settings

func (GetClientSideSecurityRequest) Validate

func (v GetClientSideSecurityRequest) Validate() error

Validate validates a GetClientSideSecurityRequest.

type GetConditionalActionListRequest

type GetConditionalActionListRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

GetConditionalActionListRequest is used to retrieve conditional actions for a configuration.

func (GetConditionalActionListRequest) Validate

Validate validates a GetConditionalActionListRequest.

type GetConditionalActionListResponse

type GetConditionalActionListResponse struct {
	ConditionalActions []map[string]interface{} `json:"conditionalActions"`
}

GetConditionalActionListResponse is used to retrieve conditional actions for a configuration.

type GetConditionalActionRequest

type GetConditionalActionRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

GetConditionalActionRequest is used to retrieve a specific conditional action

func (GetConditionalActionRequest) Validate

func (v GetConditionalActionRequest) Validate() error

Validate validates a GetConditionalActionRequest.

type GetCustomBotCategoryActionListRequest

type GetCustomBotCategoryActionListRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	CategoryID       string
}

GetCustomBotCategoryActionListRequest is used to retrieve the custom bot category actions for a policy.

func (GetCustomBotCategoryActionListRequest) Validate

Validate validates a GetCustomBotCategoryActionListRequest.

type GetCustomBotCategoryActionListResponse

type GetCustomBotCategoryActionListResponse struct {
	Actions []map[string]interface{} `json:"actions"`
}

GetCustomBotCategoryActionListResponse is returned from a call to GetCustomBotCategoryActionList.

type GetCustomBotCategoryActionRequest

type GetCustomBotCategoryActionRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	CategoryID       string
}

GetCustomBotCategoryActionRequest is used to retrieve the action for a custom bot category

func (GetCustomBotCategoryActionRequest) Validate

Validate validates a GetCustomBotCategoryActionRequest.

type GetCustomBotCategoryListRequest

type GetCustomBotCategoryListRequest struct {
	ConfigID   int64
	Version    int64
	CategoryID string
}

GetCustomBotCategoryListRequest is used to retrieve custom bot categories for a configuration.

func (GetCustomBotCategoryListRequest) Validate

Validate validates a GetCustomBotCategoryListRequest.

type GetCustomBotCategoryListResponse

type GetCustomBotCategoryListResponse struct {
	Categories []map[string]interface{} `json:"categories"`
}

GetCustomBotCategoryListResponse is used to retrieve custom bot categories for a configuration.

type GetCustomBotCategoryRequest

type GetCustomBotCategoryRequest struct {
	ConfigID   int64
	Version    int64
	CategoryID string
}

GetCustomBotCategoryRequest is used to retrieve a specific custom bot category

func (GetCustomBotCategoryRequest) Validate

func (v GetCustomBotCategoryRequest) Validate() error

Validate validates a GetCustomBotCategoryRequest.

type GetCustomBotCategorySequenceRequest

type GetCustomBotCategorySequenceRequest struct {
	ConfigID int64
	Version  int64
}

GetCustomBotCategorySequenceRequest is used to retrieve custom bot category sequence

func (GetCustomBotCategorySequenceRequest) Validate

Validate validates a GetCustomBotCategorySequenceRequest.

type GetCustomClientListRequest

type GetCustomClientListRequest struct {
	ConfigID       int64
	Version        int64
	CustomClientID string
}

GetCustomClientListRequest is used to retrieve the custom clients for a configuration.

func (GetCustomClientListRequest) Validate

func (v GetCustomClientListRequest) Validate() error

Validate validates a GetCustomClientsRequest.

type GetCustomClientListResponse

type GetCustomClientListResponse struct {
	CustomClients []map[string]interface{} `json:"customClients"`
}

GetCustomClientListResponse is used to retrieve the custom clients for a configuration.

type GetCustomClientRequest

type GetCustomClientRequest struct {
	ConfigID       int64
	Version        int64
	CustomClientID string
}

GetCustomClientRequest is used to retrieve a specific custom client.

func (GetCustomClientRequest) Validate

func (v GetCustomClientRequest) Validate() error

Validate validates a GetCustomClientRequest.

type GetCustomClientSequenceRequest

type GetCustomClientSequenceRequest struct {
	ConfigID int64
	Version  int64
}

GetCustomClientSequenceRequest is used to retrieve custom client sequence

func (GetCustomClientSequenceRequest) Validate

Validate validates a GetCustomClientSequenceRequest.

type GetCustomCodeRequest

type GetCustomCodeRequest struct {
	ConfigID int64
	Version  int64
}

GetCustomCodeRequest is used to retrieve custom code

func (GetCustomCodeRequest) Validate

func (v GetCustomCodeRequest) Validate() error

Validate validates a GetCustomCodeRequest.

type GetCustomDefinedBotListRequest

type GetCustomDefinedBotListRequest struct {
	ConfigID int64
	Version  int64
	BotID    string
}

GetCustomDefinedBotListRequest is used to retrieve the custom defined bots for a configuration.

func (GetCustomDefinedBotListRequest) Validate

Validate validates a GetCustomDefinedBotsRequest.

type GetCustomDefinedBotListResponse

type GetCustomDefinedBotListResponse struct {
	Bots []map[string]interface{} `json:"bots"`
}

GetCustomDefinedBotListResponse is used to retrieve the custom defined bots for a configuration.

type GetCustomDefinedBotRequest

type GetCustomDefinedBotRequest struct {
	ConfigID int64
	Version  int64
	BotID    string
}

GetCustomDefinedBotRequest is used to retrieve a specific custom defined bot.

func (GetCustomDefinedBotRequest) Validate

func (v GetCustomDefinedBotRequest) Validate() error

Validate validates a GetCustomDefinedBotRequest.

type GetCustomDenyActionListRequest

type GetCustomDenyActionListRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

GetCustomDenyActionListRequest is used to retrieve custom deny actions for a configuration.

func (GetCustomDenyActionListRequest) Validate

Validate validates a GetCustomDenyActionListRequest.

type GetCustomDenyActionListResponse

type GetCustomDenyActionListResponse struct {
	CustomDenyActions []map[string]interface{} `json:"customDenyActions"`
}

GetCustomDenyActionListResponse is used to retrieve custom deny actions for a configuration.

type GetCustomDenyActionRequest

type GetCustomDenyActionRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

GetCustomDenyActionRequest is used to retrieve a specific custom deny action

func (GetCustomDenyActionRequest) Validate

func (v GetCustomDenyActionRequest) Validate() error

Validate validates a GetCustomDenyActionRequest.

type GetJavascriptInjectionRequest

type GetJavascriptInjectionRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
}

GetJavascriptInjectionRequest is used to retrieve javascript injection settings

func (GetJavascriptInjectionRequest) Validate

func (v GetJavascriptInjectionRequest) Validate() error

Validate validates a GetJavascriptInjectionRequest.

type GetRecategorizedAkamaiDefinedBotListRequest

type GetRecategorizedAkamaiDefinedBotListRequest struct {
	ConfigID int64
	Version  int64
	BotID    string
}

GetRecategorizedAkamaiDefinedBotListRequest is used to retrieve the recategorized akamai defined bots for a configuration.

func (GetRecategorizedAkamaiDefinedBotListRequest) Validate

Validate validates a GetRecategorizedAkamaiDefinedBotsRequest.

type GetRecategorizedAkamaiDefinedBotListResponse

type GetRecategorizedAkamaiDefinedBotListResponse struct {
	Bots []RecategorizedAkamaiDefinedBotResponse `json:"recategorizedBots"`
}

GetRecategorizedAkamaiDefinedBotListResponse is used to retrieve the recategorized akamai defined bots for a configuration.

type GetRecategorizedAkamaiDefinedBotRequest

type GetRecategorizedAkamaiDefinedBotRequest struct {
	ConfigID int64
	Version  int64
	BotID    string
}

GetRecategorizedAkamaiDefinedBotRequest is used to retrieve a specific recategorized akamai defined bot

func (GetRecategorizedAkamaiDefinedBotRequest) Validate

Validate validates a GetRecategorizedAkamaiDefinedBotRequest.

type GetResponseActionListRequest

type GetResponseActionListRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

GetResponseActionListRequest is used to retrieve the akamai bot category actions for a policy.

func (GetResponseActionListRequest) Validate

func (v GetResponseActionListRequest) Validate() error

Validate validates a GetAkamaiBotCategoryActionListRequest.

type GetResponseActionListResponse

type GetResponseActionListResponse struct {
	ResponseActions []map[string]interface{} `json:"responseActions"`
}

GetResponseActionListResponse is returned from a call to GetResponseActionList.

type GetServeAlternateActionListRequest

type GetServeAlternateActionListRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

GetServeAlternateActionListRequest is used to retrieve serve alternate actions for a configuration.

func (GetServeAlternateActionListRequest) Validate

Validate validates a GetServeAlternateActionListRequest.

type GetServeAlternateActionListResponse

type GetServeAlternateActionListResponse struct {
	ServeAlternateActions []map[string]interface{} `json:"serveAlternateActions"`
}

GetServeAlternateActionListResponse is used to retrieve serve alternate actions for a configuration.

type GetServeAlternateActionRequest

type GetServeAlternateActionRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

GetServeAlternateActionRequest is used to retrieve a specific serve alternate action

func (GetServeAlternateActionRequest) Validate

Validate validates a GetServeAlternateActionRequest.

type GetTransactionalEndpointListRequest

type GetTransactionalEndpointListRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	OperationID      string
}

GetTransactionalEndpointListRequest is used to retrieve the transactional endpoint for a configuration.

func (GetTransactionalEndpointListRequest) Validate

Validate validates a GetTransactionalEndpointListRequest.

type GetTransactionalEndpointListResponse

type GetTransactionalEndpointListResponse struct {
	Operations []map[string]interface{} `json:"operations"`
}

GetTransactionalEndpointListResponse is used to retrieve the transactional endpoints for a configuration.

type GetTransactionalEndpointProtectionRequest

type GetTransactionalEndpointProtectionRequest struct {
	ConfigID int64
	Version  int64
}

GetTransactionalEndpointProtectionRequest is used to retrieve transactional endpoint protection settings

func (GetTransactionalEndpointProtectionRequest) Validate

Validate validates a GetTransactionalEndpointProtectionRequest.

type GetTransactionalEndpointRequest

type GetTransactionalEndpointRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	OperationID      string
}

GetTransactionalEndpointRequest is used to retrieve a specific transactional endpoint.

func (GetTransactionalEndpointRequest) Validate

Validate validates a GetTransactionalEndpointRequest.

type JavascriptInjection

type JavascriptInjection interface {
	// GetJavascriptInjection https://techdocs.akamai.com/bot-manager/reference/get-javascript-injection
	GetJavascriptInjection(ctx context.Context, params GetJavascriptInjectionRequest) (map[string]interface{}, error)
	// UpdateJavascriptInjection https://techdocs.akamai.com/bot-manager/reference/put-javascript-injection
	UpdateJavascriptInjection(ctx context.Context, params UpdateJavascriptInjectionRequest) (map[string]interface{}, error)
}

The JavascriptInjection interface supports retrieving and updating the javascript injection settings for a configuration

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) CreateChallengeAction

func (p *Mock) CreateChallengeAction(ctx context.Context, params CreateChallengeActionRequest) (map[string]interface{}, error)

func (*Mock) CreateConditionalAction

func (p *Mock) CreateConditionalAction(ctx context.Context, params CreateConditionalActionRequest) (map[string]interface{}, error)

func (*Mock) CreateCustomBotCategory

func (p *Mock) CreateCustomBotCategory(ctx context.Context, params CreateCustomBotCategoryRequest) (map[string]interface{}, error)

func (*Mock) CreateCustomClient

func (p *Mock) CreateCustomClient(ctx context.Context, params CreateCustomClientRequest) (map[string]interface{}, error)

func (*Mock) CreateCustomDefinedBot

func (p *Mock) CreateCustomDefinedBot(ctx context.Context, params CreateCustomDefinedBotRequest) (map[string]interface{}, error)

func (*Mock) CreateCustomDenyAction

func (p *Mock) CreateCustomDenyAction(ctx context.Context, params CreateCustomDenyActionRequest) (map[string]interface{}, error)

func (*Mock) CreateServeAlternateAction

func (p *Mock) CreateServeAlternateAction(ctx context.Context, params CreateServeAlternateActionRequest) (map[string]interface{}, error)

func (*Mock) CreateTransactionalEndpoint

func (p *Mock) CreateTransactionalEndpoint(ctx context.Context, params CreateTransactionalEndpointRequest) (map[string]interface{}, error)

func (*Mock) GetAkamaiBotCategoryAction

func (p *Mock) GetAkamaiBotCategoryAction(ctx context.Context, params GetAkamaiBotCategoryActionRequest) (map[string]interface{}, error)

func (*Mock) GetAkamaiDefinedBotList

func (p *Mock) GetAkamaiDefinedBotList(ctx context.Context, params GetAkamaiDefinedBotListRequest) (*GetAkamaiDefinedBotListResponse, error)

func (*Mock) GetBotAnalyticsCookie

func (p *Mock) GetBotAnalyticsCookie(ctx context.Context, params GetBotAnalyticsCookieRequest) (map[string]interface{}, error)

func (*Mock) GetBotAnalyticsCookieValues

func (p *Mock) GetBotAnalyticsCookieValues(ctx context.Context) (map[string]interface{}, error)

func (*Mock) GetBotCategoryException

func (p *Mock) GetBotCategoryException(ctx context.Context, params GetBotCategoryExceptionRequest) (map[string]interface{}, error)

func (*Mock) GetBotDetectionAction

func (p *Mock) GetBotDetectionAction(ctx context.Context, params GetBotDetectionActionRequest) (map[string]interface{}, error)

func (*Mock) GetBotDetectionList

func (p *Mock) GetBotDetectionList(ctx context.Context, params GetBotDetectionListRequest) (*GetBotDetectionListResponse, error)

func (*Mock) GetBotManagementSetting

func (p *Mock) GetBotManagementSetting(ctx context.Context, params GetBotManagementSettingRequest) (map[string]interface{}, error)

func (*Mock) GetChallengeAction

func (p *Mock) GetChallengeAction(ctx context.Context, params GetChallengeActionRequest) (map[string]interface{}, error)

func (*Mock) GetChallengeActionList

func (p *Mock) GetChallengeActionList(ctx context.Context, params GetChallengeActionListRequest) (*GetChallengeActionListResponse, error)

func (*Mock) GetChallengeInjectionRules

func (p *Mock) GetChallengeInjectionRules(ctx context.Context, params GetChallengeInjectionRulesRequest) (map[string]interface{}, error)

func (*Mock) GetChallengeInterceptionRules

func (p *Mock) GetChallengeInterceptionRules(ctx context.Context, params GetChallengeInterceptionRulesRequest) (map[string]interface{}, error)

func (*Mock) GetClientSideSecurity

func (p *Mock) GetClientSideSecurity(ctx context.Context, params GetClientSideSecurityRequest) (map[string]interface{}, error)

func (*Mock) GetConditionalAction

func (p *Mock) GetConditionalAction(ctx context.Context, params GetConditionalActionRequest) (map[string]interface{}, error)

func (*Mock) GetCustomBotCategory

func (p *Mock) GetCustomBotCategory(ctx context.Context, params GetCustomBotCategoryRequest) (map[string]interface{}, error)

func (*Mock) GetCustomBotCategoryAction

func (p *Mock) GetCustomBotCategoryAction(ctx context.Context, params GetCustomBotCategoryActionRequest) (map[string]interface{}, error)

func (*Mock) GetCustomClient

func (p *Mock) GetCustomClient(ctx context.Context, params GetCustomClientRequest) (map[string]interface{}, error)

func (*Mock) GetCustomClientList

func (p *Mock) GetCustomClientList(ctx context.Context, params GetCustomClientListRequest) (*GetCustomClientListResponse, error)

func (*Mock) GetCustomClientSequence

func (p *Mock) GetCustomClientSequence(ctx context.Context, params GetCustomClientSequenceRequest) (*CustomClientSequenceResponse, error)

func (*Mock) GetCustomCode

func (p *Mock) GetCustomCode(ctx context.Context, params GetCustomCodeRequest) (map[string]interface{}, error)

func (*Mock) GetCustomDefinedBot

func (p *Mock) GetCustomDefinedBot(ctx context.Context, params GetCustomDefinedBotRequest) (map[string]interface{}, error)

func (*Mock) GetCustomDefinedBotList

func (p *Mock) GetCustomDefinedBotList(ctx context.Context, params GetCustomDefinedBotListRequest) (*GetCustomDefinedBotListResponse, error)

func (*Mock) GetCustomDenyAction

func (p *Mock) GetCustomDenyAction(ctx context.Context, params GetCustomDenyActionRequest) (map[string]interface{}, error)

func (*Mock) GetCustomDenyActionList

func (p *Mock) GetCustomDenyActionList(ctx context.Context, params GetCustomDenyActionListRequest) (*GetCustomDenyActionListResponse, error)

func (*Mock) GetJavascriptInjection

func (p *Mock) GetJavascriptInjection(ctx context.Context, params GetJavascriptInjectionRequest) (map[string]interface{}, error)

func (*Mock) GetResponseActionList

func (p *Mock) GetResponseActionList(ctx context.Context, params GetResponseActionListRequest) (*GetResponseActionListResponse, error)

func (*Mock) GetServeAlternateAction

func (p *Mock) GetServeAlternateAction(ctx context.Context, params GetServeAlternateActionRequest) (map[string]interface{}, error)

func (*Mock) GetTransactionalEndpoint

func (p *Mock) GetTransactionalEndpoint(ctx context.Context, params GetTransactionalEndpointRequest) (map[string]interface{}, error)

func (*Mock) GetTransactionalEndpointProtection

func (p *Mock) GetTransactionalEndpointProtection(ctx context.Context, params GetTransactionalEndpointProtectionRequest) (map[string]interface{}, error)

func (*Mock) RemoveChallengeAction

func (p *Mock) RemoveChallengeAction(ctx context.Context, params RemoveChallengeActionRequest) error

func (*Mock) RemoveConditionalAction

func (p *Mock) RemoveConditionalAction(ctx context.Context, params RemoveConditionalActionRequest) error

func (*Mock) RemoveCustomBotCategory

func (p *Mock) RemoveCustomBotCategory(ctx context.Context, params RemoveCustomBotCategoryRequest) error

func (*Mock) RemoveCustomClient

func (p *Mock) RemoveCustomClient(ctx context.Context, params RemoveCustomClientRequest) error

func (*Mock) RemoveCustomDefinedBot

func (p *Mock) RemoveCustomDefinedBot(ctx context.Context, params RemoveCustomDefinedBotRequest) error

func (*Mock) RemoveCustomDenyAction

func (p *Mock) RemoveCustomDenyAction(ctx context.Context, params RemoveCustomDenyActionRequest) error

func (*Mock) RemoveRecategorizedAkamaiDefinedBot

func (p *Mock) RemoveRecategorizedAkamaiDefinedBot(ctx context.Context, params RemoveRecategorizedAkamaiDefinedBotRequest) error

func (*Mock) RemoveServeAlternateAction

func (p *Mock) RemoveServeAlternateAction(ctx context.Context, params RemoveServeAlternateActionRequest) error

func (*Mock) RemoveTransactionalEndpoint

func (p *Mock) RemoveTransactionalEndpoint(ctx context.Context, params RemoveTransactionalEndpointRequest) error

func (*Mock) UpdateAkamaiBotCategoryAction

func (p *Mock) UpdateAkamaiBotCategoryAction(ctx context.Context, params UpdateAkamaiBotCategoryActionRequest) (map[string]interface{}, error)

func (*Mock) UpdateBotAnalyticsCookie

func (p *Mock) UpdateBotAnalyticsCookie(ctx context.Context, params UpdateBotAnalyticsCookieRequest) (map[string]interface{}, error)

func (*Mock) UpdateBotCategoryException

func (p *Mock) UpdateBotCategoryException(ctx context.Context, params UpdateBotCategoryExceptionRequest) (map[string]interface{}, error)

func (*Mock) UpdateBotDetectionAction

func (p *Mock) UpdateBotDetectionAction(ctx context.Context, params UpdateBotDetectionActionRequest) (map[string]interface{}, error)

func (*Mock) UpdateBotManagementSetting

func (p *Mock) UpdateBotManagementSetting(ctx context.Context, params UpdateBotManagementSettingRequest) (map[string]interface{}, error)

func (*Mock) UpdateChallengeAction

func (p *Mock) UpdateChallengeAction(ctx context.Context, params UpdateChallengeActionRequest) (map[string]interface{}, error)

func (*Mock) UpdateChallengeInjectionRules

func (p *Mock) UpdateChallengeInjectionRules(ctx context.Context, params UpdateChallengeInjectionRulesRequest) (map[string]interface{}, error)

func (*Mock) UpdateChallengeInterceptionRules

func (p *Mock) UpdateChallengeInterceptionRules(ctx context.Context, params UpdateChallengeInterceptionRulesRequest) (map[string]interface{}, error)

func (*Mock) UpdateClientSideSecurity

func (p *Mock) UpdateClientSideSecurity(ctx context.Context, params UpdateClientSideSecurityRequest) (map[string]interface{}, error)

func (*Mock) UpdateConditionalAction

func (p *Mock) UpdateConditionalAction(ctx context.Context, params UpdateConditionalActionRequest) (map[string]interface{}, error)

func (*Mock) UpdateCustomBotCategory

func (p *Mock) UpdateCustomBotCategory(ctx context.Context, params UpdateCustomBotCategoryRequest) (map[string]interface{}, error)

func (*Mock) UpdateCustomBotCategoryAction

func (p *Mock) UpdateCustomBotCategoryAction(ctx context.Context, params UpdateCustomBotCategoryActionRequest) (map[string]interface{}, error)

func (*Mock) UpdateCustomClient

func (p *Mock) UpdateCustomClient(ctx context.Context, params UpdateCustomClientRequest) (map[string]interface{}, error)

func (*Mock) UpdateCustomClientSequence

func (p *Mock) UpdateCustomClientSequence(ctx context.Context, params UpdateCustomClientSequenceRequest) (*CustomClientSequenceResponse, error)

func (*Mock) UpdateCustomCode

func (p *Mock) UpdateCustomCode(ctx context.Context, params UpdateCustomCodeRequest) (map[string]interface{}, error)

func (*Mock) UpdateCustomDefinedBot

func (p *Mock) UpdateCustomDefinedBot(ctx context.Context, params UpdateCustomDefinedBotRequest) (map[string]interface{}, error)

func (*Mock) UpdateCustomDenyAction

func (p *Mock) UpdateCustomDenyAction(ctx context.Context, params UpdateCustomDenyActionRequest) (map[string]interface{}, error)

func (*Mock) UpdateGoogleReCaptchaSecretKey

func (p *Mock) UpdateGoogleReCaptchaSecretKey(ctx context.Context, params UpdateGoogleReCaptchaSecretKeyRequest) error

func (*Mock) UpdateJavascriptInjection

func (p *Mock) UpdateJavascriptInjection(ctx context.Context, params UpdateJavascriptInjectionRequest) (map[string]interface{}, error)

func (*Mock) UpdateServeAlternateAction

func (p *Mock) UpdateServeAlternateAction(ctx context.Context, params UpdateServeAlternateActionRequest) (map[string]interface{}, error)

func (*Mock) UpdateTransactionalEndpoint

func (p *Mock) UpdateTransactionalEndpoint(ctx context.Context, params UpdateTransactionalEndpointRequest) (map[string]interface{}, error)

func (*Mock) UpdateTransactionalEndpointProtection

func (p *Mock) UpdateTransactionalEndpointProtection(ctx context.Context, params UpdateTransactionalEndpointProtectionRequest) (map[string]interface{}, error)

type Option

type Option func(*botman)

Option defines a BotMan option

type RecategorizedAkamaiDefinedBot

The RecategorizedAkamaiDefinedBot interface supports creating, retrieving, modifying and removing recategorized akamai defined bot for a configuration.

type RecategorizedAkamaiDefinedBotResponse

type RecategorizedAkamaiDefinedBotResponse struct {
	BotID      string `json:"botId"`
	CategoryID string `json:"customBotCategoryId"`
}

RecategorizedAkamaiDefinedBotResponse is used to retrieve a specific recategorized akamai defined bot

type RemoveChallengeActionRequest

type RemoveChallengeActionRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

RemoveChallengeActionRequest is used to remove an existing challenge action

func (RemoveChallengeActionRequest) Validate

func (v RemoveChallengeActionRequest) Validate() error

Validate validates a RemoveChallengeActionRequest.

type RemoveConditionalActionRequest

type RemoveConditionalActionRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

RemoveConditionalActionRequest is used to remove an existing conditional action

func (RemoveConditionalActionRequest) Validate

Validate validates a RemoveConditionalActionRequest.

type RemoveCustomBotCategoryRequest

type RemoveCustomBotCategoryRequest struct {
	ConfigID   int64
	Version    int64
	CategoryID string
}

RemoveCustomBotCategoryRequest is used to remove an existing custom bot category

func (RemoveCustomBotCategoryRequest) Validate

Validate validates a RemoveCustomBotCategoryRequest.

type RemoveCustomClientRequest

type RemoveCustomClientRequest struct {
	ConfigID       int64
	Version        int64
	CustomClientID string
}

RemoveCustomClientRequest is used to remove an existing custom client.

func (RemoveCustomClientRequest) Validate

func (v RemoveCustomClientRequest) Validate() error

Validate validates a RemoveCustomClientRequest.

type RemoveCustomDefinedBotRequest

type RemoveCustomDefinedBotRequest struct {
	ConfigID int64
	Version  int64
	BotID    string
}

RemoveCustomDefinedBotRequest is used to remove an existing custom defined bot.

func (RemoveCustomDefinedBotRequest) Validate

func (v RemoveCustomDefinedBotRequest) Validate() error

Validate validates a RemoveCustomDefinedBotRequest.

type RemoveCustomDenyActionRequest

type RemoveCustomDenyActionRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

RemoveCustomDenyActionRequest is used to remove an existing custom deny action

func (RemoveCustomDenyActionRequest) Validate

func (v RemoveCustomDenyActionRequest) Validate() error

Validate validates a RemoveCustomDenyActionRequest.

type RemoveRecategorizedAkamaiDefinedBotRequest

type RemoveRecategorizedAkamaiDefinedBotRequest struct {
	ConfigID int64
	Version  int64
	BotID    string
}

RemoveRecategorizedAkamaiDefinedBotRequest is used to remove an existing recategorized akamai defined bot

func (RemoveRecategorizedAkamaiDefinedBotRequest) Validate

Validate validates a RemoveRecategorizedAkamaiDefinedBotRequest.

type RemoveServeAlternateActionRequest

type RemoveServeAlternateActionRequest struct {
	ConfigID int64
	Version  int64
	ActionID string
}

RemoveServeAlternateActionRequest is used to remove an existing serve alternate action

func (RemoveServeAlternateActionRequest) Validate

Validate validates a RemoveServeAlternateActionRequest.

type RemoveTransactionalEndpointRequest

type RemoveTransactionalEndpointRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	OperationID      string
}

RemoveTransactionalEndpointRequest is used to remove an existing transactional endpoint

func (RemoveTransactionalEndpointRequest) Validate

Validate validates a RemoveTransactionalEndpointRequest.

type ResponseAction

type ResponseAction interface {
	// GetResponseActionList https://techdocs.akamai.com/bot-manager/reference/get-response-actions
	GetResponseActionList(ctx context.Context, params GetResponseActionListRequest) (*GetResponseActionListResponse, error)
}

The ResponseAction interface supports retrieving response actions of a configuration

type ServeAlternateAction

type ServeAlternateAction interface {
	// GetServeAlternateActionList https://techdocs.akamai.com/bot-manager/reference/get-serve-alternate-actions
	GetServeAlternateActionList(ctx context.Context, params GetServeAlternateActionListRequest) (*GetServeAlternateActionListResponse, error)

	// GetServeAlternateAction https://techdocs.akamai.com/bot-manager/reference/get-serve-alternate-action
	GetServeAlternateAction(ctx context.Context, params GetServeAlternateActionRequest) (map[string]interface{}, error)

	// CreateServeAlternateAction https://techdocs.akamai.com/bot-manager/reference/post-serve-alternate-action
	CreateServeAlternateAction(ctx context.Context, params CreateServeAlternateActionRequest) (map[string]interface{}, error)

	// UpdateServeAlternateAction https://techdocs.akamai.com/bot-manager/reference/put-serve-alternate-action
	UpdateServeAlternateAction(ctx context.Context, params UpdateServeAlternateActionRequest) (map[string]interface{}, error)

	// RemoveServeAlternateAction https://techdocs.akamai.com/bot-manager/reference/delete-serve-alternate-action
	RemoveServeAlternateAction(ctx context.Context, params RemoveServeAlternateActionRequest) error
}

The ServeAlternateAction interface supports creating, retrieving, modifying and removing serve alternate action for a configuration.

type TransactionalEndpoint

type TransactionalEndpoint interface {
	// GetTransactionalEndpointList https://techdocs.akamai.com/bot-manager/reference/get-transactional-endpoints
	GetTransactionalEndpointList(ctx context.Context, params GetTransactionalEndpointListRequest) (*GetTransactionalEndpointListResponse, error)

	// GetTransactionalEndpoint https://techdocs.akamai.com/bot-manager/reference/get-transactional-endpoint
	GetTransactionalEndpoint(ctx context.Context, params GetTransactionalEndpointRequest) (map[string]interface{}, error)

	// CreateTransactionalEndpoint https://techdocs.akamai.com/bot-manager/reference/post-transactional-endpoint
	CreateTransactionalEndpoint(ctx context.Context, params CreateTransactionalEndpointRequest) (map[string]interface{}, error)

	// UpdateTransactionalEndpoint https://techdocs.akamai.com/bot-manager/reference/put-transactional-endpoint
	UpdateTransactionalEndpoint(ctx context.Context, params UpdateTransactionalEndpointRequest) (map[string]interface{}, error)

	// RemoveTransactionalEndpoint https://techdocs.akamai.com/bot-manager/reference/delete-transactional-endpoint
	RemoveTransactionalEndpoint(ctx context.Context, params RemoveTransactionalEndpointRequest) error
}

The TransactionalEndpoint interface supports creating, retrieving, modifying and removing transactional endpoints for a configuration.

type TransactionalEndpointProtection

type TransactionalEndpointProtection interface {

	// GetTransactionalEndpointProtection https://techdocs.akamai.com/bot-manager/reference/get-transactional-endpoint-protection
	GetTransactionalEndpointProtection(ctx context.Context, params GetTransactionalEndpointProtectionRequest) (map[string]interface{}, error)

	// UpdateTransactionalEndpointProtection https://techdocs.akamai.com/bot-manager/reference/put-transactional-endpoint-protection
	UpdateTransactionalEndpointProtection(ctx context.Context, params UpdateTransactionalEndpointProtectionRequest) (map[string]interface{}, error)
}

The TransactionalEndpointProtection interface supports retrieving and updating transactional endpoint protection settings for a configuration.

type UpdateAkamaiBotCategoryActionRequest

type UpdateAkamaiBotCategoryActionRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	CategoryID       string
	JsonPayload      json.RawMessage
}

UpdateAkamaiBotCategoryActionRequest is used to modify an akamai bot category action.

func (UpdateAkamaiBotCategoryActionRequest) Validate

Validate validates an UpdateAkamaiBotCategoryActionRequest.

type UpdateBotAnalyticsCookieRequest

type UpdateBotAnalyticsCookieRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

UpdateBotAnalyticsCookieRequest is used to modify bot analytics cookie settings

func (UpdateBotAnalyticsCookieRequest) Validate

Validate validates an UpdateBotAnalyticsCookieRequest.

type UpdateBotCategoryExceptionRequest

type UpdateBotCategoryExceptionRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	JsonPayload      json.RawMessage
}

UpdateBotCategoryExceptionRequest is used to update bot category exceptions

func (UpdateBotCategoryExceptionRequest) Validate

Validate validates an UpdateBotCategoryExceptionRequest.

type UpdateBotDetectionActionRequest

type UpdateBotDetectionActionRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	DetectionID      string
	JsonPayload      json.RawMessage
}

UpdateBotDetectionActionRequest is used to modify a bot detection action.

func (UpdateBotDetectionActionRequest) Validate

Validate validates an UpdateBotDetectionActionRequest.

type UpdateBotManagementSettingRequest

type UpdateBotManagementSettingRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	JsonPayload      json.RawMessage
}

UpdateBotManagementSettingRequest is used to modify bot management settings

func (UpdateBotManagementSettingRequest) Validate

Validate validates an UpdateBotManagementSettingRequest.

type UpdateChallengeActionRequest

type UpdateChallengeActionRequest struct {
	ConfigID    int64
	Version     int64
	ActionID    string
	JsonPayload json.RawMessage
}

UpdateChallengeActionRequest is used to update an existing challenge action

func (UpdateChallengeActionRequest) Validate

func (v UpdateChallengeActionRequest) Validate() error

Validate validates an UpdateChallengeActionRequest.

type UpdateChallengeInjectionRulesRequest

type UpdateChallengeInjectionRulesRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

UpdateChallengeInjectionRulesRequest is used to modify challenge injection rules

func (UpdateChallengeInjectionRulesRequest) Validate

Validate validates an UpdateChallengeInjectionRulesRequest.

type UpdateChallengeInterceptionRulesRequest

type UpdateChallengeInterceptionRulesRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

UpdateChallengeInterceptionRulesRequest is used to modify challenge interception rules Deprecated: this struct will be removed in a future release. Use UpdateChallengeInjectionRulesRequest instead.

func (UpdateChallengeInterceptionRulesRequest) Validate

Validate validates an UpdateChallengeInterceptionRulesRequest.

type UpdateClientSideSecurityRequest

type UpdateClientSideSecurityRequest struct {
	ConfigID    int64           `json:"-"`
	Version     int64           `json:"-"`
	JsonPayload json.RawMessage `json:"-"`
}

UpdateClientSideSecurityRequest is used to modify client side security settings

func (UpdateClientSideSecurityRequest) Validate

Validate validates an UpdateClientSideSecurityRequest.

type UpdateConditionalActionRequest

type UpdateConditionalActionRequest struct {
	ConfigID    int64
	Version     int64
	ActionID    string
	JsonPayload json.RawMessage
}

UpdateConditionalActionRequest is used to update an existing conditional action

func (UpdateConditionalActionRequest) Validate

Validate validates an UpdateConditionalActionRequest.

type UpdateCustomBotCategoryActionRequest

type UpdateCustomBotCategoryActionRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	CategoryID       string
	JsonPayload      json.RawMessage
}

UpdateCustomBotCategoryActionRequest is used to modify an existing custom bot category action

func (UpdateCustomBotCategoryActionRequest) Validate

Validate validates an UpdateCustomBotCategoryActionRequest.

type UpdateCustomBotCategoryRequest

type UpdateCustomBotCategoryRequest struct {
	ConfigID    int64
	Version     int64
	CategoryID  string
	JsonPayload json.RawMessage
}

UpdateCustomBotCategoryRequest is used to update an existing custom bot category

func (UpdateCustomBotCategoryRequest) Validate

Validate validates an UpdateCustomBotCategoryRequest.

type UpdateCustomBotCategorySequenceRequest

type UpdateCustomBotCategorySequenceRequest struct {
	ConfigID int64    `json:"-"`
	Version  int64    `json:"-"`
	Sequence []string `json:"sequence"`
}

UpdateCustomBotCategorySequenceRequest is used to update custom bot category sequence

func (UpdateCustomBotCategorySequenceRequest) Validate

Validate validates an UpdateCustomBotCategorySequenceRequest.

type UpdateCustomClientRequest

type UpdateCustomClientRequest struct {
	ConfigID       int64
	Version        int64
	CustomClientID string
	JsonPayload    json.RawMessage
}

UpdateCustomClientRequest is used to update details for a specific custom client.

func (UpdateCustomClientRequest) Validate

func (v UpdateCustomClientRequest) Validate() error

Validate validates an UpdateCustomClientRequest.

type UpdateCustomClientSequenceRequest

type UpdateCustomClientSequenceRequest struct {
	ConfigID int64    `json:"-"`
	Version  int64    `json:"-"`
	Sequence []string `json:"sequence"`
}

UpdateCustomClientSequenceRequest is used to modify custom client sequence

func (UpdateCustomClientSequenceRequest) Validate

Validate validates an UpdateCustomClientSequenceRequest.

type UpdateCustomCodeRequest

type UpdateCustomCodeRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

UpdateCustomCodeRequest is used to modify custom code

func (UpdateCustomCodeRequest) Validate

func (v UpdateCustomCodeRequest) Validate() error

Validate validates an UpdateCustomCodeRequest.

type UpdateCustomDefinedBotRequest

type UpdateCustomDefinedBotRequest struct {
	ConfigID    int64
	Version     int64
	BotID       string
	JsonPayload json.RawMessage
}

UpdateCustomDefinedBotRequest is used to update details for a specific custom defined bot.

func (UpdateCustomDefinedBotRequest) Validate

func (v UpdateCustomDefinedBotRequest) Validate() error

Validate validates an UpdateCustomDefinedBotRequest.

type UpdateCustomDenyActionRequest

type UpdateCustomDenyActionRequest struct {
	ConfigID    int64
	Version     int64
	ActionID    string
	JsonPayload json.RawMessage
}

UpdateCustomDenyActionRequest is used to update an existing custom deny action

func (UpdateCustomDenyActionRequest) Validate

func (v UpdateCustomDenyActionRequest) Validate() error

Validate validates an UpdateCustomDenyActionRequest.

type UpdateGoogleReCaptchaSecretKeyRequest

type UpdateGoogleReCaptchaSecretKeyRequest struct {
	ConfigID  int64  `json:"-"`
	Version   int64  `json:"-"`
	ActionID  string `json:"-"`
	SecretKey string `json:"googleReCaptchaSecretKey"`
}

UpdateGoogleReCaptchaSecretKeyRequest is used to update google reCaptcha secret key

func (UpdateGoogleReCaptchaSecretKeyRequest) Validate

Validate validates a UpdateGoogleReCaptchaSecretKeyRequest.

type UpdateJavascriptInjectionRequest

type UpdateJavascriptInjectionRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	JsonPayload      json.RawMessage
}

UpdateJavascriptInjectionRequest is used to modify javascript injection settings

func (UpdateJavascriptInjectionRequest) Validate

Validate validates an UpdateJavascriptInjectionRequest.

type UpdateRecategorizedAkamaiDefinedBotRequest

type UpdateRecategorizedAkamaiDefinedBotRequest struct {
	ConfigID   int64  `json:"-"`
	Version    int64  `json:"-"`
	BotID      string `json:"botId"`
	CategoryID string `json:"customBotCategoryId"`
}

UpdateRecategorizedAkamaiDefinedBotRequest is used to update details for a specific recategorized akamai defined bot

func (UpdateRecategorizedAkamaiDefinedBotRequest) Validate

Validate validates an UpdateRecategorizedAkamaiDefinedBotRequest.

type UpdateServeAlternateActionRequest

type UpdateServeAlternateActionRequest struct {
	ConfigID    int64
	Version     int64
	ActionID    string
	JsonPayload json.RawMessage
}

UpdateServeAlternateActionRequest is used to update an existing serve alternate action

func (UpdateServeAlternateActionRequest) Validate

Validate validates an UpdateServeAlternateActionRequest.

type UpdateTransactionalEndpointProtectionRequest

type UpdateTransactionalEndpointProtectionRequest struct {
	ConfigID    int64
	Version     int64
	JsonPayload json.RawMessage
}

UpdateTransactionalEndpointProtectionRequest is used to modify transactional endpoint protection settings

func (UpdateTransactionalEndpointProtectionRequest) Validate

Validate validates an UpdateTransactionalEndpointProtectionRequest.

type UpdateTransactionalEndpointRequest

type UpdateTransactionalEndpointRequest struct {
	ConfigID         int64
	Version          int64
	SecurityPolicyID string
	OperationID      string
	JsonPayload      json.RawMessage
}

UpdateTransactionalEndpointRequest is used to update details for a specific transactional endpoint

func (UpdateTransactionalEndpointRequest) Validate

Validate validates an UpdateTransactionalEndpointRequest.

type ValidationDetail

type ValidationDetail struct {
	Title  string `json:"title"`
	Type   string `json:"type"`
	Detail string `json:"detail"`
}

ValidationDetail is used to represent validation details

type ValidationResponse

type ValidationResponse struct {
	Errors   []ValidationDetail `json:"errors"`
	Notices  []ValidationDetail `json:"notices"`
	Warnings []ValidationDetail `json:"warnings"`
}

ValidationResponse is used to represent validation member in the botman api response

Jump to

Keyboard shortcuts

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