Documentation ¶
Index ¶
- func Provider() *schema.Provider
- type APIRequest
- type BarracudaWAF
- func (b *BarracudaWAF) APICall(options *APIRequest) ([]byte, error)
- func (b *BarracudaWAF) CreateBarracudaWAFResource(name string, request *APIRequest) error
- func (b *BarracudaWAF) DeleteBarracudaWAFResource(name string, request *APIRequest) error
- func (b *BarracudaWAF) GetAuthToken() (*BarracudaWAF, error)
- func (b *BarracudaWAF) GetBarracudaWAFResource(name string, request *APIRequest) (*WAFResouceData, error)
- func (b *BarracudaWAF) UpdateBarracudaWAFResource(name string, request *APIRequest) error
- func (b *BarracudaWAF) UpdateBarracudaWAFSubResource(name string, resourceEndpoint string, request *APIRequest) error
- type Config
- type RequestError
- type WAFResouceData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIRequest ¶
APIRequest : builds API request for resource.
type BarracudaWAF ¶
type BarracudaWAF struct { Host string User string Password string Token string UserAgent string //specifies the caller of the request Transport *http.Transport }
BarracudaWAF : container for barracuda's WAF session state.
func NewSession ¶
func NewSession(host, port, user, passwd string) *BarracudaWAF
NewSession : Barracuda WAF system connection.
func (*BarracudaWAF) APICall ¶
func (b *BarracudaWAF) APICall(options *APIRequest) ([]byte, error)
APICall : is used to query the Barracuda WAF web API.
func (*BarracudaWAF) CreateBarracudaWAFResource ¶
func (b *BarracudaWAF) CreateBarracudaWAFResource(name string, request *APIRequest) error
CreateBarracudaWAFResource : Creates Barracuda WAF resource
func (*BarracudaWAF) DeleteBarracudaWAFResource ¶
func (b *BarracudaWAF) DeleteBarracudaWAFResource(name string, request *APIRequest) error
DeleteBarracudaWAFResource : Delete Barracuda WAF resource
func (*BarracudaWAF) GetAuthToken ¶
func (b *BarracudaWAF) GetAuthToken() (*BarracudaWAF, error)
GetAuthToken : Check Token for Authentication Barracuda WAF APIs
func (*BarracudaWAF) GetBarracudaWAFResource ¶
func (b *BarracudaWAF) GetBarracudaWAFResource(name string, request *APIRequest) (*WAFResouceData, error)
GetBarracudaWAFResource : Updates Barracuda WAF resource
func (*BarracudaWAF) UpdateBarracudaWAFResource ¶
func (b *BarracudaWAF) UpdateBarracudaWAFResource(name string, request *APIRequest) error
UpdateBarracudaWAFResource : Updates Barracuda WAF resource
func (*BarracudaWAF) UpdateBarracudaWAFSubResource ¶
func (b *BarracudaWAF) UpdateBarracudaWAFSubResource(name string, resourceEndpoint string, request *APIRequest) error
UpdateBarracudaWAFSubResource : Updates Barracuda WAF sub resource
type Config ¶
Config : container for Barracuda WAF session
func (*Config) Client ¶
func (c *Config) Client() (*BarracudaWAF, error)
Client : Barracuda WAF Client for REST API calls for resource crud
type RequestError ¶
type RequestError struct { Message string `json:"msg,omitempty"` Token string `json:"token,omitempty"` }
RequestError : contains information about any error from a request.
func (*RequestError) Error ¶
func (r *RequestError) Error() error
Error : returns the error message.
Source Files ¶
- barracudawaf.go
- config.go
- provider.go
- resource_barracudawaf_access_rules.go
- resource_barracudawaf_action_policies.go
- resource_barracudawaf_adaptive_profiling_rules.go
- resource_barracudawaf_administrator_roles.go
- resource_barracudawaf_allow_deny_clients.go
- resource_barracudawaf_attack_patterns.go
- resource_barracudawaf_attack_types.go
- resource_barracudawaf_authorization_policies.go
- resource_barracudawaf_auto_system_acls.go
- resource_barracudawaf_bonds.go
- resource_barracudawaf_bot_spam_patterns.go
- resource_barracudawaf_bot_spam_types.go
- resource_barracudawaf_client_certificate_crls.go
- resource_barracudawaf_configuration_checkpoints.go
- resource_barracudawaf_content_rule_servers.go
- resource_barracudawaf_content_rules.go
- resource_barracudawaf_credential_servers.go
- resource_barracudawaf_custom_parameter_classes.go
- resource_barracudawaf_ddos_policies.go
- resource_barracudawaf_export_configuration.go
- resource_barracudawaf_external_ldap_services.go
- resource_barracudawaf_external_radius_services.go
- resource_barracudawaf_form_spam_forms.go
- resource_barracudawaf_geo_pools.go
- resource_barracudawaf_global_acls.go
- resource_barracudawaf_header_acls.go
- resource_barracudawaf_http_request_rewrite_rules.go
- resource_barracudawaf_http_response_rewrite_rules.go
- resource_barracudawaf_identity_theft_patterns.go
- resource_barracudawaf_identity_types.go
- resource_barracudawaf_input_patterns.go
- resource_barracudawaf_input_types.go
- resource_barracudawaf_json_key_profiles.go
- resource_barracudawaf_json_profiles.go
- resource_barracudawaf_json_security_policies.go
- resource_barracudawaf_kerberos_services.go
- resource_barracudawaf_ldap_services.go
- resource_barracudawaf_local_groups.go
- resource_barracudawaf_local_users.go
- resource_barracudawaf_network_acls.go
- resource_barracudawaf_network_interfaces.go
- resource_barracudawaf_openidc_identity_providers.go
- resource_barracudawaf_openidc_services.go
- resource_barracudawaf_parameter_optimizers.go
- resource_barracudawaf_parameter_profiles.go
- resource_barracudawaf_preferred_clients.go
- resource_barracudawaf_protected_data_types.go
- resource_barracudawaf_radius_services.go
- resource_barracudawaf_rate_control_pools.go
- resource_barracudawaf_reports.go
- resource_barracudawaf_response_body_rewrite_rules.go
- resource_barracudawaf_response_pages.go
- resource_barracudawaf_rsa_securid_services.go
- resource_barracudawaf_saml_identity_providers.go
- resource_barracudawaf_saml_services.go
- resource_barracudawaf_secure_browsing_policies.go
- resource_barracudawaf_security_policies.go
- resource_barracudawaf_self_signed_certificate.go
- resource_barracudawaf_servers.go
- resource_barracudawaf_service_groups.go
- resource_barracudawaf_services.go
- resource_barracudawaf_session_identifiers.go
- resource_barracudawaf_signed_certificate.go
- resource_barracudawaf_syslog_servers.go
- resource_barracudawaf_trusted_ca_certificate.go
- resource_barracudawaf_trusted_host_groups.go
- resource_barracudawaf_trusted_hosts.go
- resource_barracudawaf_trusted_server_certificate.go
- resource_barracudawaf_url_acls.go
- resource_barracudawaf_url_encryption_rules.go
- resource_barracudawaf_url_optimizers.go
- resource_barracudawaf_url_policies.go
- resource_barracudawaf_url_profiles.go
- resource_barracudawaf_url_translations.go
- resource_barracudawaf_users.go
- resource_barracudawaf_vlans.go
- resource_barracudawaf_vsites.go
- resource_barracudawaf_web_scraping_policies.go
- resource_barracudawaf_whitelisted_bots.go