sulfur

package
v0.0.0-...-55e38cf Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AuthSuperUserPath = "/api/collections/_superusers/auth-with-password"
View Source
const AuthUserPath = "/api/collections/users/auth-with-password"
View Source
const DNSRecordsPath = "/api/collections/dns_records/records"
View Source
const ExportOrgBadCertificatePath = "/export/org/{org_id}/bad_certificates"
View Source
const ExportOrgSubdomainTakeoversPath = "/export/org/{org_id}/takeovers"
View Source
const ExternalReferencesPath = "/api/collections/external_references/records"
View Source
const ImportDNSRecordsPath = "/consume/dns_records"
View Source
const ImportDomainAndResolvePath = "/consume/domains/resolve"
View Source
const ImportExternalReferencesPath = "/import/external_references"
View Source
const ImportOrgCertificatesPath = "/import/org/{org_id}/assets/certs"
View Source
const ImportOrgIPAddressesPath = "/import/org/{org_id}/assets/ip_addresses"
View Source
const ImportOrgRootDomainsPath = "/import/org/{org_id}/assets/root_domains"
View Source
const OrgCertificatesPath = "/api/collections/org_certificates/records"
View Source
const OrgDomainPortsPath = "/api/collections/org_domain_ports/records"
View Source
const OrgDomainsPath = "/api/collections/org_domains/records"
View Source
const OrgIPAddressesPath = "/api/collections/org_ip_addresses/records"
View Source
const OrgIPPortsPath = "/api/collections/org_ip_ports/records"
View Source
const OrganizationsPath = "/api/collections/organizations/records"
View Source
const RootDomainsPath = "/api/collections/root_domains/records"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRequest

type AuthRequest struct {
	Identity string `json:"identity"`
	Password string `json:"password"`
}

type AuthResponse

type AuthResponse struct {
	*ErrorResponse

	Token  string `json:"token"`
	Record struct {
		CollectionId    string `json:"collectionId"`
		CollectionName  string `json:"collectionName"`
		Id              string `json:"id"`
		Email           string `json:"email"`
		EmailVisibility bool   `json:"emailVisibility"`
		Verified        bool   `json:"verified"`
		Name            string `json:"name"`
		Avatar          string `json:"avatar"`
		Created         string `json:"created"`
		Updated         string `json:"updated"`
	} `json:"record"`
}

type BadCertificate

type BadCertificate struct {
	CollectionId     string `json:"collectionId,omitempty"`
	CollectionName   string `json:"collectionName,omitempty"`
	Id               string `json:"id"`
	ArtifactId       string `json:"artifact_id"`
	Domain           string `json:"domain"`
	IpAddress        string `json:"ip_address"`
	Fingerprint      string `json:"fingerprint"`
	Subject          string `json:"subject"`
	AlternativeNames string `json:"alternative_names"`
	ExternalId       string `json:"external_id,omitempty"`
	ExternalName     string `json:"external_name,omitempty"`
	Organization     string `json:"organization"`
	Certificate      string `json:"certificate"`
	RootDomain       string `json:"root_domain"`
}

type BadCertsListResponse

type BadCertsListResponse struct {
	Page       int              `json:"page"`
	PerPage    int              `json:"perPage"`
	TotalPages int              `json:"totalPages"`
	TotalItems int              `json:"totalItems"`
	Items      []BadCertificate `json:"items"`
}

type DNSRecord

type DNSRecord struct {
	CollectionId      string `json:"collectionId"`
	CollectionName    string `json:"collectionName"`
	Id                string `json:"id"`
	Name              string `json:"name"`
	Type              string `json:"type"`
	Value             string `json:"value"`
	TTL               int    `json:"ttl"`
	ResolveError      string `json:"resolve_error"`
	ResolveErrorCount int    `json:"resolve_error_count"`
	LastResolved      string `json:"last_resolved"`
	LastSeen          string `json:"last_seen"`
	RootDomain        string `json:"root_domain"`
	ExternalReference string `json:"external_reference"`
	Created           string `json:"created"`
	Updated           string `json:"updated"`
	Expand            struct {
		RootDomain RootDomain `json:"root_domain"`
	} `json:"expand"`
}

type DNSRecordListResponse

type DNSRecordListResponse struct {
	Page       int         `json:"page"`
	PerPage    int         `json:"perPage"`
	TotalPages int         `json:"totalPages"`
	TotalItems int         `json:"totalItems"`
	Items      []DNSRecord `json:"items"`
}

type ErrorResponse

type ErrorResponse struct {
	Status  int    `json:"status"`
	Message string `json:"message"`
	Data    struct {
		Identity struct {
			Code    string `json:"code"`
			Message string `json:"message"`
		} `json:"identity"`
	} `json:"data"`
}

type ExternalReference

type ExternalReference struct {
	CollectionId   string `json:"collectionId"`
	CollectionName string `json:"collectionName"`
	Id             string `json:"id"`
	Name           string `json:"name"`
	Value          string `json:"value"`
}

type ExternalReferenceResponse

type ExternalReferenceResponse struct {
	Page       int         `json:"page"`
	PerPage    int         `json:"perPage"`
	TotalPages int         `json:"totalPages"`
	TotalItems int         `json:"totalItems"`
	Items      []DNSRecord `json:"items"`
}

type IPAddress

type IPAddress struct {
	Address                   string `json:"address"`
	CollectionId              string `json:"collectionId"`
	CollectionName            string `json:"collectionName"`
	Created                   string `json:"created"`
	Id                        string `json:"id"`
	Is6                       bool   `json:"is_6"`
	IsEphemeral               bool   `json:"is_ephemeral"`
	IsGlobalUnicast           bool   `json:"is_global_unicast"`
	IsInterfaceLocalMulticast bool   `json:"is_interface_local_multicast"`
	IsLinkLocalMulticast      bool   `json:"is_link_local_multicast"`
	IsLinkLocalUnicast        bool   `json:"is_link_local_unicast"`
	IsLoopback                bool   `json:"is_loopback"`
	IsMulticast               bool   `json:"is_multicast"`
	IsPrivate                 bool   `json:"is_private"`
	IsShared                  bool   `json:"is_shared"`
	IsUnspecified             bool   `json:"is_unspecified"`
	LastSeen                  string `json:"last_seen"`
	LastSimplePortScan        string `json:"last_simple_port_scan"`
	Updated                   string `json:"updated"`
}

type OrgCertificate

type OrgCertificate struct {
	CollectionId            string `json:"collectionId"`
	CollectionName          string `json:"collectionName"`
	Created                 string `json:"created"`
	Id                      string `json:"id"`
	Serial                  string `json:"serial"`
	Issuer                  string `json:"issuer"`
	NotBefore               string `json:"not_before"`
	NotAfter                string `json:"not_after"`
	Subject                 string `json:"subject"`
	SubjectAlternativeNames string `json:"subject_alternative_names"`
	ExternalReference       string `json:"external_reference"`
	LastSeen                string `json:"last_seen"`
	Organization            string `json:"organization"`
	Updated                 string `json:"updated"`
	Expand                  struct {
		Organization      Organization      `json:"organization"`
		ExternalReference ExternalReference `json:"external_reference"`
	} `json:"expand"`
}

type OrgCertificateImport

type OrgCertificateImport struct {
	Serial                  string    `json:"serial"`
	Issuer                  string    `json:"issuer"`
	NotBefore               time.Time `json:"not_before"`
	NotAfter                time.Time `json:"not_after"`
	Subject                 string    `json:"subject"`
	SubjectAlternativeNames []string  `json:"subject_alternative_names"`
	ExternalReference       string    `json:"external_reference"`
	LastSeen                string    `json:"last_seen"`
}

type OrgCertificatesListResponse

type OrgCertificatesListResponse struct {
	Items      []OrgCertificate `json:"items"`
	Page       int              `json:"page"`
	PerPage    int              `json:"perPage"`
	TotalItems int              `json:"totalItems"`
	TotalPages int              `json:"totalPages"`
}

type OrgDomain

type OrgDomain struct {
	CollectionId   string `json:"collectionId"`
	CollectionName string `json:"collectionName"`
	Created        string `json:"created"`
	Description    string `json:"description"`
	Expand         struct {
		Organization Organization `json:"organization"`
		RootDomain   RootDomain   `json:"root_domain"`
	} `json:"expand"`
	Id           string `json:"id"`
	LastSeen     string `json:"last_seen"`
	Organization string `json:"organization"`
	Registrar    string `json:"registrar"`
	RootDomain   string `json:"root_domain"`
	Updated      string `json:"updated"`
}

type OrgDomainPort

type OrgDomainPort struct {
	CollectionId   string `json:"collectionId"`
	CollectionName string `json:"collectionName"`
	Id             string `json:"id"`
	Organization   string `json:"organization"`
	Domain         string `json:"domain"`
	RootDomain     string `json:"root_domain"`
	Port           int    `json:"port"`
	Total          int    `json:"total"`
	Service        string `json:"service"`
	LastSeen       string `json:"last_seen"`
	Created        string `json:"created"`
}

type OrgDomainPortListResponse

type OrgDomainPortListResponse struct {
	Page       int             `json:"page"`
	PerPage    int             `json:"perPage"`
	TotalPages int             `json:"totalPages"`
	TotalItems int             `json:"totalItems"`
	Items      []OrgDomainPort `json:"items"`
}

type OrgDomainsListResponse

type OrgDomainsListResponse struct {
	Items      []OrgDomain `json:"items"`
	Page       int         `json:"page"`
	PerPage    int         `json:"perPage"`
	TotalItems int         `json:"totalItems"`
	TotalPages int         `json:"totalPages"`
}

type OrgIPAddress

type OrgIPAddress struct {
	CollectionId   string `json:"collectionId"`
	CollectionName string `json:"collectionName"`
	Created        string `json:"created"`
	Expand         struct {
		IpAddress    IPAddress    `json:"ip_address"`
		Organization Organization `json:"organization"`
	} `json:"expand"`
	Id                string `json:"id"`
	IpAddress         string `json:"ip_address"`
	ExternalReference string `json:"external_reference"`
	LastSeen          string `json:"last_seen"`
	Organization      string `json:"organization"`
	Updated           string `json:"updated"`
}

type OrgIPAddressImport

type OrgIPAddressImport struct {
	IpAddress         string `json:"ip_address"`
	ExternalReference string `json:"external_reference"`
}

type OrgIPPort

type OrgIPPort struct {
	CollectionId   string `json:"collectionId"`
	CollectionName string `json:"collectionName"`
	Id             string `json:"id"`
	Organization   string `json:"organization"`
	Address        string `json:"address"`
	Port           int    `json:"port"`
	LastSeen       string `json:"last_seen"`
	DnsNames       string `json:"dns_names"`
}

type OrgIPPortListResponse

type OrgIPPortListResponse struct {
	Page       int         `json:"page"`
	PerPage    int         `json:"perPage"`
	TotalPages int         `json:"totalPages"`
	TotalItems int         `json:"totalItems"`
	Items      []OrgIPPort `json:"items"`
}

type OrgIpAddressesListResponse

type OrgIpAddressesListResponse struct {
	Items      []OrgIPAddress `json:"items"`
	Page       int            `json:"page"`
	PerPage    int            `json:"perPage"`
	TotalItems int            `json:"totalItems"`
	TotalPages int            `json:"totalPages"`
}

type OrgRootDomain

type OrgRootDomain struct {
	Domain    string `json:"domain"`
	Registrar string `json:"registrar"`
}

type Organization

type Organization struct {
	CollectionId   string `json:"collectionId"`
	CollectionName string `json:"collectionName"`
	Id             string `json:"id"`
	Name           string `json:"name"`
	Description    string `json:"description"`
	Created        string `json:"created"`
	Updated        string `json:"updated"`
}

type OrganizationListResponse

type OrganizationListResponse struct {
	Page       int            `json:"page"`
	PerPage    int            `json:"perPage"`
	TotalPages int            `json:"totalPages"`
	TotalItems int            `json:"totalItems"`
	Items      []Organization `json:"items"`
}

type RootDomain

type RootDomain struct {
	CollectionId   string `json:"collectionId"`
	CollectionName string `json:"collectionName"`
	Id             string `json:"id"`
	Domain         string `json:"domain"`
	LastSeen       string `json:"last_seen"`
	Created        string `json:"created"`
	Updated        string `json:"updated"`
}

type RootDomainsListResponse

type RootDomainsListResponse struct {
	Page       int          `json:"page"`
	PerPage    int          `json:"perPage"`
	TotalPages int          `json:"totalPages"`
	TotalItems int          `json:"totalItems"`
	Items      []RootDomain `json:"items"`
}

type SubdomainTakeover

type SubdomainTakeover struct {
	CollectionId   string `json:"collectionId"`
	CollectionName string `json:"collectionName"`
	Id             string `json:"id"`
	OrgId          string `json:"org_id"`
	OrgName        string `json:"org_name"`
	Domain         string `json:"domain"`
	IpAddress      string `json:"ip_address"`
	LastResolved   string `json:"last_resolved"`
}

type SubdomainTakeoversListResponse

type SubdomainTakeoversListResponse struct {
	Page       int                 `json:"page"`
	PerPage    int                 `json:"perPage"`
	TotalPages int                 `json:"totalPages"`
	TotalItems int                 `json:"totalItems"`
	Items      []SubdomainTakeover `json:"items"`
}

Jump to

Keyboard shortcuts

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