Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, urlFiltering *URLFilteringDefinition) (definitionId string, err error)
- func (c *Client) Delete(ctx context.Context, urlFilteringId string) error
- func (c *Client) DeleteByName(ctx context.Context, urlFilteringName string) error
- func (c *Client) Get(ctx context.Context, id string) (*URLFilteringDefinition, error)
- func (c *Client) GetByName(ctx context.Context, name string) (*URLFilteringDefinition, error)
- func (c *Client) List(ctx context.Context) ([]*URLFilteringListRespStructure, error)
- type Definition
- type Reference
- type URLFilteringDefinition
- type URLFilteringListRespStructure
- type UrlRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteByName ¶
type Definition ¶
type Definition struct { WebCategoriesAction string `json:"webCategoriesAction"` WebCategories []string `json:"webCategories"` WebReputation string `json:"webReputation"` UrlAllowlist UrlRef `json:"urlWhiteList"` UrlDenylist UrlRef `json:"urlBlackList"` BlockPageAction string `json:"blockPageAction"` BlockPageContents string `json:"blockPageContents"` EnableAlerts bool `json:"enableAlerts"` Alerts []string `json:"alerts"` Logging []string `json:"logging"` TargetVpns []string `json:"targetVpns"` }
type URLFilteringDefinition ¶
type URLFilteringDefinition struct { Name string `json:"name"` Type string `json:"type"` Description string `json:"description"` Definition Definition `json:"definition"` }
type URLFilteringListRespStructure ¶
type URLFilteringListRespStructure struct { Name string `json:"name"` DefinitionID string `json:"definitionId"` Type string `json:"type"` Description string `json:"description"` Owner string `json:"owner"` LastUpdated int64 `json:"lastUpdated"` InfoTag string `json:"infoTag"` Mode string `json:"mode"` Optimized string `json:"optimized"` ReferenceCount int `json:"referenceCount"` References []Reference `json:"references"` }
Click to show internal directories.
Click to hide internal directories.