scanner

package
v1.2210.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Post
	LoginUri = "/v1/login"
	// Post
	TriggerAudit = "/v1/audit_plans/%s/trigger"
	// Post
	FullUpload = "/v1/audit_plans/%s/sqls/full"
	// Post
	PartialUpload = "/v1/audit_plans/%s/sqls/partial"
	// Get										%v=report_id
	GetAuditReport = "/v2/audit_plans/%s/report/%v/?page_index=%d&page_size=%d"
)

%s = audit plan name

View Source
const (
	DefaultTimeout = time.Second * 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditPlanSQLReq

type AuditPlanSQLReq = v1.AuditPlanSQLReqV1

type BaseRes

type BaseRes = controller.BaseRes

type Client

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

func NewSQLEClient

func NewSQLEClient(timeout time.Duration, host, port string) *Client

func (*Client) GetAuditReportReq

func (sc *Client) GetAuditReportReq(auditPlanName string, reportID string) error

func (*Client) TriggerAuditReq

func (sc *Client) TriggerAuditReq(auditPlanName string) (string, error)

func (*Client) UploadReq

func (sc *Client) UploadReq(uri string, auditPlanName string, sqlList []AuditPlanSQLReq) error

func (*Client) WithToken

func (sc *Client) WithToken(token string) *Client

type FullSyncAuditPlanSQLsReq

type FullSyncAuditPlanSQLsReq = v1.FullSyncAuditPlanSQLsReqV1

type GetAuditPlanReportSQLsRes

type GetAuditPlanReportSQLsRes = v2.GetAuditPlanReportSQLsResV2

type PartialSyncAuditPlanSQLsReq

type PartialSyncAuditPlanSQLsReq = v1.PartialSyncAuditPlanSQLsReqV1

type TriggerAuditPlanRes

type TriggerAuditPlanRes = v1.TriggerAuditPlanResV1

Jump to

Keyboard shortcuts

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