urlfiltering

package
v0.0.0-...-ceada53 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(c *client.Client) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, urlFiltering *URLFilteringDefinition) (definitionId string, err error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, urlFilteringId string) error

func (*Client) DeleteByName

func (c *Client) DeleteByName(ctx context.Context, urlFilteringName string) error

func (*Client) Get

func (*Client) GetByName

func (c *Client) GetByName(ctx context.Context, name string) (*URLFilteringDefinition, error)

func (*Client) List

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 Reference

type Reference struct {
	ID       string `json:"id"`
	Property string `json:"property"`
}

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"`
}

type UrlRef

type UrlRef struct {
	Ref string `json:"ref"`
}

Jump to

Keyboard shortcuts

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