Documentation ¶
Index ¶
- Constants
- type Client
- type HashType
- type PasswordStatus
- type UserBreachedBulkRequest
- type UserBreachedBulkResult
- type UserBreachedData
- type UserBreachedRequest
- type UserBreachedResult
- type UserPasswordBreachedBulkRequest
- type UserPasswordBreachedBulkResult
- type UserPasswordBreachedData
- type UserPasswordBreachedRequest
- type UserPasswordBreachedResult
Constants ¶
View Source
const ( PSbreached PasswordStatus = 0 PSunbreached = 1 PSinconclusive = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { UserBreached(ctx context.Context, req *UserBreachedRequest) (*pangea.PangeaResponse[UserBreachedResult], error) UserBreachedBulk(ctx context.Context, req *UserBreachedBulkRequest) (*pangea.PangeaResponse[UserBreachedBulkResult], error) PasswordBreached(ctx context.Context, req *UserPasswordBreachedRequest) (*pangea.PangeaResponse[UserPasswordBreachedResult], error) PasswordBreachedBulk(ctx context.Context, req *UserPasswordBreachedBulkRequest) (*pangea.PangeaResponse[UserPasswordBreachedBulkResult], error) // Base service methods pangea.BaseServicer }
type PasswordStatus ¶
type PasswordStatus int
func IsPasswordBreached ¶
func IsPasswordBreached(r *pangea.PangeaResponse[UserPasswordBreachedResult], h string) (PasswordStatus, error)
type UserBreachedBulkRequest ¶ added in v3.5.0
type UserBreachedBulkRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest Emails []string `json:"emails,omitempty"` Usernames []string `json:"usernames,omitempty"` PhoneNumbers []string `json:"phone_numbers,omitempty"` IPs []string `json:"ips,omitempty"` Start string `json:"start,omitempty"` End string `json:"end,omitempty"` Verbose *bool `json:"verbose,omitempty"` Raw *bool `json:"raw,omitempty"` Provider string `json:"provider,omitempty"` }
type UserBreachedBulkResult ¶ added in v3.5.0
type UserBreachedBulkResult struct { Data map[string]UserBreachedData `json:"data"` Parameters interface{} `json:"parameters,omitempty"` RawData interface{} `json:"raw_data,omitempty"` }
type UserBreachedData ¶
type UserBreachedRequest ¶
type UserBreachedRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest Email string `json:"email,omitempty"` Username string `json:"username,omitempty"` PhoneNumber string `json:"phone_number,omitempty"` IP string `json:"ip,omitempty"` Start string `json:"start,omitempty"` End string `json:"end,omitempty"` Verbose *bool `json:"verbose,omitempty"` Raw *bool `json:"raw,omitempty"` Provider string `json:"provider,omitempty"` }
type UserBreachedResult ¶
type UserBreachedResult struct { Data UserBreachedData `json:"data"` Parameters interface{} `json:"parameters,omitempty"` RawData interface{} `json:"raw_data,omitempty"` }
type UserPasswordBreachedBulkRequest ¶ added in v3.5.0
type UserPasswordBreachedBulkRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest HashType HashType `json:"hash_type,omitempty"` HashPrefixes []string `json:"hash_prefixes,omitempty"` Verbose *bool `json:"verbose,omitempty"` Raw *bool `json:"raw,omitempty"` Provider string `json:"provider,omitempty"` }
type UserPasswordBreachedBulkResult ¶ added in v3.5.0
type UserPasswordBreachedRequest ¶
type UserPasswordBreachedRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest HashType HashType `json:"hash_type,omitempty"` HashPrefix string `json:"hash_prefix,omitempty"` Verbose *bool `json:"verbose,omitempty"` Raw *bool `json:"raw,omitempty"` Provider string `json:"provider,omitempty"` }
type UserPasswordBreachedResult ¶
type UserPasswordBreachedResult struct { Data UserPasswordBreachedData `json:"data"` Parameters map[string]any `json:"parameters,omitempty"` RawData map[string]any `json:"raw_data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.