Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateHistoryResult ¶
type CertificateHistoryResult struct {
Meta *responsemeta.ResponseMeta
Ranges []*components.HostObservationRange
// PartialError contains any error encountered after the first successful page.
// When present, the result contains partial data and the error should be reported to the user.
PartialError cenclierrors.CencliError
}
type HostHistoryResult ¶
type HostHistoryResult struct {
Meta *responsemeta.ResponseMeta
Events []*components.HostTimelineEvent
// PartialError contains any error encountered after the first successful page.
// When present, the result contains partial data and the error should be reported to the user.
PartialError cenclierrors.CencliError
}
type Service ¶
type Service interface {
GetHostHistory(
ctx context.Context,
orgID mo.Option[identifiers.OrganizationID],
host assets.HostID,
fromTime time.Time,
toTime time.Time,
) (HostHistoryResult, cenclierrors.CencliError)
GetCertificateHistory(
ctx context.Context,
orgID mo.Option[identifiers.OrganizationID],
certificateID assets.CertificateID,
fromTime time.Time,
toTime time.Time,
) (CertificateHistoryResult, cenclierrors.CencliError)
GetWebPropertyHistory(
ctx context.Context,
orgID mo.Option[identifiers.OrganizationID],
webPropertyID assets.WebPropertyID,
fromTime time.Time,
toTime time.Time,
) (WebPropertyHistoryResult, cenclierrors.CencliError)
}
Service provides history fetching capabilities.
type WebPropertyHistoryResult ¶
type WebPropertyHistoryResult struct {
Meta *responsemeta.ResponseMeta
Snapshots []*WebPropertySnapshot
// PartialError contains any error encountered after the first successful page.
// When present, the result contains partial data and the error should be reported to the user.
PartialError cenclierrors.CencliError
}
type WebPropertySnapshot ¶
type WebPropertySnapshot struct {
Time time.Time `json:"time"`
Data *components.Webproperty `json:"data"`
Exists bool `json:"exists"`
}
WebPropertySnapshot represents a web property at a specific point in time
Click to show internal directories.
Click to hide internal directories.