usp_wiz

package
v1.32.9 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WizAdapter

type WizAdapter struct {
	// contains filtered or unexported fields
}

func NewWizAdapter

func NewWizAdapter(ctx context.Context, conf WizConfig) (*WizAdapter, chan struct{}, error)

func (*WizAdapter) Close

func (a *WizAdapter) Close() error

type WizConfig

type WizConfig struct {
	ClientOptions uspclient.ClientOptions `json:"client_options" yaml:"client_options"`
	ClientID      string                  `json:"client_id" yaml:"client_id"`
	ClientSecret  string                  `json:"client_secret" yaml:"client_secret"`
	URL           string                  `json:"url" yaml:"url"`
	Query         string                  `json:"query" yaml:"query"`
	Variables     map[string]interface{}  `json:"variables" yaml:"variables"`
	TimeField     string                  `json:"time_field" yaml:"time_field"` // e.g., "createdAt", "updatedAt"
	DataPath      []string                `json:"data_path" yaml:"data_path"`   // e.g., ["data", "securityIssues", "issues"]
	IDField       string                  `json:"id_field" yaml:"id_field"`     // e.g., "id"
}

func (*WizConfig) Validate

func (c *WizConfig) Validate() error

Jump to

Keyboard shortcuts

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