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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(org string, scopeItems ...string)

func AddCIDR

func AddCIDR(org string, cidr *model.CIDR)

Types

type APIClient

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

func New

func New(apiEndpoint, user, pass string) *APIClient

func (*APIClient) Authenticate

func (a *APIClient) Authenticate(authReq sulfur.AuthRequest) (*sulfur.AuthResponse, error)

func (*APIClient) Do

func (a *APIClient) Do(req *http.Request) (*http.Response, error)

func (*APIClient) GetJSON

func (a *APIClient) GetJSON(path string) (*http.Response, error)

func (*APIClient) GetStruct

func (a *APIClient) GetStruct(path string, resStruc any) error

func (*APIClient) ImportDNSRecords

func (a *APIClient) ImportDNSRecords(domainsToImport []sulfur.DNSRecord) error

func (*APIClient) ImportDomainAndResolve

func (a *APIClient) ImportDomainAndResolve(domainsToImport []string) error

func (*APIClient) ImportExternalReferences

func (a *APIClient) ImportExternalReferences(externalReferencesToImport []sulfur.ExternalReference) error

func (*APIClient) ImportOrgCertificates

func (a *APIClient) ImportOrgCertificates(orgId string, certificatesToImport []sulfur.OrgCertificateImport) error

func (*APIClient) ImportOrgIPAddresses

func (a *APIClient) ImportOrgIPAddresses(orgId string, ipAddresses []sulfur.OrgIPAddressImport) error

func (*APIClient) ImportOrgRootDomains

func (a *APIClient) ImportOrgRootDomains(orgId string, domainsToImport []sulfur.OrgRootDomain) error

func (*APIClient) ListDNSRecords

func (a *APIClient) ListDNSRecords() (*sulfur.DNSRecordListResponse, error)

func (*APIClient) ListExternalReferences

func (a *APIClient) ListExternalReferences() (*sulfur.ExternalReferenceResponse, error)

func (*APIClient) ListOrgBadCertificates

func (a *APIClient) ListOrgBadCertificates(orgId string) ([]sulfur.BadCertificate, error)

func (*APIClient) ListOrgCertificates

func (a *APIClient) ListOrgCertificates(orgId string) (*sulfur.OrgCertificatesListResponse, error)

func (*APIClient) ListOrgDomainPorts

func (a *APIClient) ListOrgDomainPorts(orgId string) ([]sulfur.OrgDomainPort, error)

func (*APIClient) ListOrgDomains

func (a *APIClient) ListOrgDomains(orgId string) (*sulfur.OrgDomainsListResponse, error)

func (*APIClient) ListOrgIPAddresses

func (a *APIClient) ListOrgIPAddresses(orgId string) ([]sulfur.OrgIPAddress, error)

func (*APIClient) ListOrgIPPorts

func (a *APIClient) ListOrgIPPorts(orgId string) ([]sulfur.OrgIPPort, error)

func (*APIClient) ListOrgSubDomainTakeovers

func (a *APIClient) ListOrgSubDomainTakeovers(orgId string) ([]sulfur.SubdomainTakeover, error)

func (*APIClient) ListOrganizations

func (a *APIClient) ListOrganizations() (*sulfur.OrganizationListResponse, error)

func (*APIClient) ListRootDomains

func (a *APIClient) ListRootDomains() (*sulfur.RootDomainsListResponse, error)

func (*APIClient) PostJSON

func (a *APIClient) PostJSON(path string, body []byte) (*http.Response, error)

func (*APIClient) PostStruct

func (a *APIClient) PostStruct(path string, structData any, resStruc any) error

Jump to

Keyboard shortcuts

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