Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServiceHandler ¶
type ServiceHandler interface {
// contains filtered or unexported methods
}
func NewGoodIndexTxtWriter ¶
func NewGoodIndexTxtWriter() ServiceHandler
type TrustedProvider ¶
type TrustedProvider struct { *httptest.Server PMD *csaf.ProviderMetadata Keyring openpgp.EntityList // contains filtered or unexported fields }
func NewTrustedProvider ¶
func NewTrustedProvider( feeds map[csaf.TLPLabel][]*csaf.Advisory, idxw ServiceHandler, fns ...func(*csaf.ProviderMetadata), ) (p *TrustedProvider)
TODO: convert into functional-style options?
func (*TrustedProvider) DocumentAny ¶
func (p *TrustedProvider) DocumentAny() (m map[string]interface{})
DocumentAny returns the csaf.ProviderMetadata as "any" (actually a map[string]interface{}) so that it can be used in csaf.LoadedProviderMetadata.
func (*TrustedProvider) Domain ¶
func (p *TrustedProvider) Domain() string
func (*TrustedProvider) WellKnownProviderURL ¶
func (p *TrustedProvider) WellKnownProviderURL() string
WellKnownProviderURL returns the URL of the provider-metadata.json at the well-known address.
Click to show internal directories.
Click to hide internal directories.