diff options
Diffstat (limited to 'pkg/icingadb/v1/v1.go')
-rw-r--r-- | pkg/icingadb/v1/v1.go | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkg/icingadb/v1/v1.go b/pkg/icingadb/v1/v1.go new file mode 100644 index 0000000..af19fdf --- /dev/null +++ b/pkg/icingadb/v1/v1.go @@ -0,0 +1,58 @@ +package v1 + +import ( + "github.com/icinga/icingadb/pkg/contracts" +) + +var StateFactories = []contracts.EntityFactoryFunc{NewHostState, NewServiceState} + +var ConfigFactories = []contracts.EntityFactoryFunc{ + NewActionUrl, + NewCheckcommand, + NewCheckcommandArgument, + NewCheckcommandCustomvar, + NewCheckcommandEnvvar, + NewComment, + NewDowntime, + NewEndpoint, + NewEventcommand, + NewEventcommandArgument, + NewEventcommandCustomvar, + NewEventcommandEnvvar, + NewHost, + NewHostCustomvar, + NewHostgroup, + NewHostgroupCustomvar, + NewHostgroupMember, + NewIconImage, + NewNotesUrl, + NewNotification, + NewNotificationcommand, + NewNotificationcommandArgument, + NewNotificationcommandCustomvar, + NewNotificationcommandEnvvar, + NewNotificationCustomvar, + NewNotificationRecipient, + NewNotificationUser, + NewNotificationUsergroup, + NewService, + NewServiceCustomvar, + NewServicegroup, + NewServicegroupCustomvar, + NewServicegroupMember, + NewTimeperiod, + NewTimeperiodCustomvar, + NewTimeperiodOverrideExclude, + NewTimeperiodOverrideInclude, + NewTimeperiodRange, + NewUser, + NewUserCustomvar, + NewUsergroup, + NewUsergroupCustomvar, + NewUsergroupMember, + NewZone, +} + +// contextKey is an unexported type for context keys defined in this package. +// This prevents collisions with keys defined in other packages. +type contextKey int |