package
0.0.0-20230225192705-cd9fc012625a
Repository: https://github.com/pladdy/cabby.git
Documentation: pkg.go.dev
# Functions
CompareAPIRoot compares two APIRoots.
CompareCollection compares two Collections.
CompareDiscovery compares two Discoverys.
CompareError compares two Errors.
CompareManifestEntry compares two manifest entries.
CompareObject compares two objects.
CompareStatus compares two objects.
CompareUser compares two Users.
GenerateObject generates a STIX object given a type.
LastLog given a buffer of logs returns the last log statement.
NewDataStore structure.
# Constants
APIRootPath for tests.
CollectionID for tests.
ObjectID for tests.
Port for testing server.
StatusID for status tests.
UserEmail for tests.
UserPassword for tests.
# Variables
APIRoot mock.
BaseURL for tests.
Collection mock.
Collections mock.
CollectionsInAPIRoot mock.
Context mock.
Discovery mock; the handler mutates the returned path into a URL.
DiscoveryDataStore mock; the service just returns an API root path.
ErrorResourceNotFound mock.
Manifest mock.
ManifestEntry mock.
Object mock.
Objects mock.
Status mock.
User mock.
UserCollectionList mock.
Versions mock.
# Structs
APIRootService is a mock implementation.
CollectionService is a mock implementation.
DataStore for tests.
DiscoveryService is a mock implementation.
ErrorLog for service errors.
ManifestService is a mock implementation.
MigrationService is a mock implementation.
ObjectService is a mock implementation.
RequestLog from http service.
StatusService is a mock implementation.
UserService is a mock implementation.
VersionsService mock implementation.