history

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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.

func New

func New(client client.Client) Service

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

Jump to

Keyboard shortcuts

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