Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificatesResult ¶
type CertificatesResult struct {
Meta *responsemeta.ResponseMeta
Certificates []*assets.Certificate
// PartialError contains any error encountered after the first successful batch.
// When present, the result contains partial data and the error should be reported to the user.
PartialError cenclierrors.CencliError
}
type HostsResult ¶
type HostsResult struct {
Meta *responsemeta.ResponseMeta
Hosts []*assets.Host
// PartialError contains any error encountered after the first successful batch.
// When present, the result contains partial data and the error should be reported to the user.
PartialError cenclierrors.CencliError
}
type Service ¶
type Service interface {
GetHosts(ctx context.Context, orgID mo.Option[identifiers.OrganizationID], hostIDs []assets.HostID, atTime mo.Option[time.Time]) (HostsResult, cenclierrors.CencliError)
GetCertificates(ctx context.Context, orgID mo.Option[identifiers.OrganizationID], certificateIDs []assets.CertificateID) (CertificatesResult, cenclierrors.CencliError)
GetWebProperties(ctx context.Context, orgID mo.Option[identifiers.OrganizationID], webPropertyIDs []assets.WebPropertyID, atTime mo.Option[time.Time]) (WebPropertiesResult, cenclierrors.CencliError)
}
Service provides asset view capabilities. Currently, this is just a thin wrapper around the SDK, but leaves room for future enhancements.
type WebPropertiesResult ¶
type WebPropertiesResult struct {
Meta *responsemeta.ResponseMeta
WebProperties []*assets.WebProperty
// PartialError contains any error encountered after the first successful batch.
// When present, the result contains partial data and the error should be reported to the user.
PartialError cenclierrors.CencliError
}
Click to show internal directories.
Click to hide internal directories.