security_policy_settings

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddRemoveURLFromList []string = []string{
	"ADD_TO_LIST",
	"REMOVE_FROM_LIST",
}

TODO: because there isn't an endpoint to get all Urls, we need to have all action types here.

Functions

This section is empty.

Types

type ListUrls

type ListUrls struct {
	White []string `json:"whitelistUrls,omitempty"`
	Black []string `json:"blacklistUrls,omitempty"`
}

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) GetBlackListUrls

func (service *Service) GetBlackListUrls() (*ListUrls, error)

func (*Service) GetListUrls

func (service *Service) GetListUrls() (*ListUrls, error)

func (*Service) GetWhiteListUrls

func (service *Service) GetWhiteListUrls() (*ListUrls, error)

func (*Service) UpdateBlackListUrls

func (service *Service) UpdateBlackListUrls(list ListUrls) (*ListUrls, error)

func (*Service) UpdateListUrls

func (service *Service) UpdateListUrls(listUrls ListUrls) (*ListUrls, error)

func (*Service) UpdateWhiteListUrls

func (service *Service) UpdateWhiteListUrls(list ListUrls) (*ListUrls, error)

Jump to

Keyboard shortcuts

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