1package types
2
3import v2 "github.com/sensu/sensu-go/api/core/v2"
4
5type (
6	AdhocRequest        = v2.AdhocRequest
7	Asset               = v2.Asset
8	ByExecuted          = v2.ByExecuted
9	Check               = v2.Check
10	CheckConfig         = v2.CheckConfig
11	CheckHistory        = v2.CheckHistory
12	CheckRequest        = v2.CheckRequest
13	Claims              = v2.Claims
14	ClusterHealth       = v2.ClusterHealth
15	ClusterRole         = v2.ClusterRole
16	ClusterRoleBinding  = v2.ClusterRoleBinding
17	Deregistration      = v2.Deregistration
18	Entity              = v2.Entity
19	Event               = v2.Event
20	EventFilter         = v2.EventFilter
21	Extension           = v2.Extension
22	Handler             = v2.Handler
23	HandlerSocket       = v2.HandlerSocket
24	HealthResponse      = v2.HealthResponse
25	Hook                = v2.Hook
26	HookConfig          = v2.HookConfig
27	HookList            = v2.HookList
28	KeepaliveRecord     = v2.KeepaliveRecord
29	MetricPoint         = v2.MetricPoint
30	MetricTag           = v2.MetricTag
31	Metrics             = v2.Metrics
32	Mutator             = v2.Mutator
33	Namespace           = v2.Namespace
34	Network             = v2.Network
35	NetworkInterface    = v2.NetworkInterface
36	ObjectMeta          = v2.ObjectMeta
37	ProxyRequests       = v2.ProxyRequests
38	Resource            = v2.Resource
39	Role                = v2.Role
40	RoleBinding         = v2.RoleBinding
41	RoleRef             = v2.RoleRef
42	Rule                = v2.Rule
43	Silenced            = v2.Silenced
44	Subject             = v2.Subject
45	System              = v2.System
46	TLSOptions          = v2.TLSOptions
47	TimeWindowDays      = v2.TimeWindowDays
48	TimeWindowTimeRange = v2.TimeWindowTimeRange
49	TimeWindowWhen      = v2.TimeWindowWhen
50	Tokens              = v2.Tokens
51	TypeMeta            = v2.TypeMeta
52	User                = v2.User
53)
54
55type (
56	ConstrainedResource = v2.ConstrainedResource
57	MultitenantResource = v2.MultitenantResource
58)
59
60const (
61	// AccessTokenString is the key name used to retrieve the access token string
62	AccessTokenString = v2.AccessTokenString
63
64	// AccessTokenClaims contains the key name to retrieve the access token claims
65	AccessTokenClaims = v2.AccessTokenClaims
66
67	// ClaimsKey contains key name to retrieve the jwt claims from context
68	ClaimsKey = v2.ClaimsKey
69
70	// NamespaceKey contains the key name to retrieve the namespace from context
71	NamespaceKey = v2.NamespaceKey
72
73	// PageContinueKey contains the continue token used in pagination
74	PageContinueKey = v2.PageContinueKey
75
76	// PageSizeKey contains the page size used in pagination
77	PageSizeKey = v2.PageSizeKey
78
79	// RefreshTokenClaims contains the key name to retrieve the refresh token claims
80	RefreshTokenClaims = v2.RefreshTokenClaims
81
82	// RefreshTokenString contains the key name to retrieve the refresh token string
83	RefreshTokenString = v2.RefreshTokenString
84
85	// AuthorizationAttributesKey is the key name used to store authorization
86	// attributes extracted from a request = v2.//
87	AuthorizationAttributesKey = v2.AuthorizationAttributesKey
88
89	// StoreKey contains the key name to retrieve the etcd store from within a context = v2.//
90	StoreKey = v2.StoreKey
91
92	// ResourceAll represents all possible resources
93	ResourceAll = v2.ResourceAll
94
95	// VerbAll represents all possible verbs
96	VerbAll = v2.VerbAll
97
98	// GroupType represents a group object in a subject
99	GroupType = v2.GroupType
100
101	// UserType represents a user object in a subject
102	UserType = v2.UserType
103
104	// LocalSelfUserResource represents a local user trying to view itself
105	// or change its password
106	LocalSelfUserResource = v2.LocalSelfUserResource
107
108	// HandlerPipeType represents handlers that pipes event data // into arbitrary
109	// commands via STDIN
110	HandlerPipeType = v2.HandlerPipeType
111
112	// HandlerSetType represents handlers that groups event handlers, making it
113	// easy to manage groups of actions that should be executed for certain v2
114	// of events.
115	HandlerSetType = v2.HandlerSetType
116
117	// HandlerTCPType represents handlers that send event data to a remote TCP
118	// socket
119	HandlerTCPType = v2.HandlerTCPType
120
121	// HandlerUDPType represents handlers that send event data to a remote UDP
122	// socket
123	HandlerUDPType = v2.HandlerUDPType
124
125	// HandlerGRPCType is a special kind of handler that represents an extension
126	HandlerGRPCType = v2.HandlerGRPCType
127
128	// EventFilterActionAllow is an action to allow events to pass through to the pipeline
129	EventFilterActionAllow = v2.EventFilterActionAllow
130
131	// EventFilterActionDeny is an action to deny events from passing through to the pipeline
132	EventFilterActionDeny = v2.EventFilterActionDeny
133
134	// DefaultEventFilterAction is the default action for filters
135	DefaultEventFilterAction = v2.DefaultEventFilterAction
136
137	// EntityAgentClass is the name of the class given to agent entities.
138	EntityAgentClass = v2.EntityAgentClass
139
140	// EntityProxyClass is the name of the class given to proxy entities.
141	EntityProxyClass = v2.EntityProxyClass
142
143	// EntityBackendClass is the name of the class given to backend entities.
144	EntityBackendClass = v2.EntityBackendClass
145
146	// Redacted is filled in for fields that contain sensitive information
147	Redacted = v2.Redacted
148
149	EventFailingState = v2.EventFailingState
150
151	// EventFlappingState indicates a rapid change in check result status
152	EventFlappingState = v2.EventFlappingState
153
154	// EventPassingState indicates successful check result status
155	EventPassingState = v2.EventPassingState
156
157	// CheckRequestType is the message type string for check request.
158	CheckRequestType = v2.CheckRequestType
159
160	// DefaultSplayCoverage is the default splay coverage for proxy check requests
161	DefaultSplayCoverage = v2.DefaultSplayCoverage
162
163	// NagiosOutputMetricFormat is the accepted string to represent the output metric format of
164	// Nagios Perf Data
165	NagiosOutputMetricFormat = v2.NagiosOutputMetricFormat
166
167	// GraphiteOutputMetricFormat is the accepted string to represent the output metric format of
168	// Graphite Plain Text
169	GraphiteOutputMetricFormat = v2.GraphiteOutputMetricFormat
170
171	// OpenTSDBOutputMetricFormat is the accepted string to represent the output metric format of
172	// OpenTSDB Line
173	OpenTSDBOutputMetricFormat = v2.OpenTSDBOutputMetricFormat
174
175	// InfluxDBOutputMetricFormat is the accepted string to represent the output metric format of
176	// InfluxDB Line
177	InfluxDBOutputMetricFormat = v2.InfluxDBOutputMetricFormat
178
179	// CoreEdition represents the Sensu Core Edition (CE)
180	CoreEdition = v2.CoreEdition
181
182	// EditionHeader represents the HTTP header containing the edition value
183	EditionHeader = v2.EditionHeader
184
185	// NamespaceTypeAll matches all actions
186	NamespaceTypeAll = v2.NamespaceTypeAll
187
188	DefaultKeepaliveTimeout = v2.DefaultKeepaliveTimeout
189)
190
191// Test fixture
192var (
193	FixtureCheckRequest       = v2.FixtureCheckRequest
194	FixtureCheckConfig        = v2.FixtureCheckConfig
195	FixtureCheck              = v2.FixtureCheck
196	FixtureProxyRequests      = v2.FixtureProxyRequests
197	FixtureNamespace          = v2.FixtureNamespace
198	FixtureMetrics            = v2.FixtureMetrics
199	FixtureMetricPoint        = v2.FixtureMetricPoint
200	FixtureMetricTag          = v2.FixtureMetricTag
201	FixtureHandler            = v2.FixtureHandler
202	FixtureSocketHandler      = v2.FixtureSocketHandler
203	FixtureSetHandler         = v2.FixtureSetHandler
204	FixtureUser               = v2.FixtureUser
205	FixtureHealthResponse     = v2.FixtureHealthResponse
206	FixtureEvent              = v2.FixtureEvent
207	FixtureEventFilter        = v2.FixtureEventFilter
208	FixtureDenyEventFilter    = v2.FixtureDenyEventFilter
209	FixtureExtension          = v2.FixtureExtension
210	FixtureMutator            = v2.FixtureMutator
211	FixtureAsset              = v2.FixtureAsset
212	FixtureSubject            = v2.FixtureSubject
213	FixtureRule               = v2.FixtureRule
214	FixtureRole               = v2.FixtureRole
215	FixtureRoleRef            = v2.FixtureRoleRef
216	FixtureRoleBinding        = v2.FixtureRoleBinding
217	FixtureClusterRole        = v2.FixtureClusterRole
218	FixtureClusterRoleBinding = v2.FixtureClusterRoleBinding
219	FixtureEntity             = v2.FixtureEntity
220	FixtureHookConfig         = v2.FixtureHookConfig
221	FixtureHook               = v2.FixtureHook
222	FixtureHookList           = v2.FixtureHookList
223	FixtureSilenced           = v2.FixtureSilenced
224	FixtureAdhocRequest       = v2.FixtureAdhocRequest
225	FixtureTokens             = v2.FixtureTokens
226)
227
228// Misc functions and vars
229var (
230	SetContextFromResource      = v2.SetContextFromResource
231	NewKeepaliveRecord          = v2.NewKeepaliveRecord
232	GetEntitySubscription       = v2.GetEntitySubscription
233	OutputMetricFormats         = v2.OutputMetricFormats
234	ContextNamespace            = v2.ContextNamespace
235	NewCheck                    = v2.NewCheck
236	CommonCoreResources         = v2.CommonCoreResources
237	SilencedName                = v2.SilencedName
238	FakeHandlerCommand          = v2.FakeHandlerCommand
239	FakeMutatorCommand          = v2.FakeMutatorCommand
240	ValidateName                = v2.ValidateName
241	SortCheckConfigsByPredicate = v2.SortCheckConfigsByPredicate
242	SortCheckConfigsByName      = v2.SortCheckConfigsByName
243	SortEntitiesByPredicate     = v2.SortEntitiesByPredicate
244	SortEntitiesByID            = v2.SortEntitiesByID
245	SortEntitiesByLastSeen      = v2.SortEntitiesByLastSeen
246	SortEventFiltersByPredicate = v2.SortEventFiltersByPredicate
247	SortEventFiltersByName      = v2.SortEventFiltersByName
248	SortHandlersByPredicate     = v2.SortHandlersByPredicate
249	SortHandlersByName          = v2.SortHandlersByName
250	SortSilencedByPredicate     = v2.SortSilencedByPredicate
251	SortSilencedByName          = v2.SortSilencedByName
252	SortSilencedByBegin         = v2.SortSilencedByBegin
253	DefaultRedactFields         = v2.DefaultRedactFields
254	EventsBySeverity            = v2.EventsBySeverity
255	EventsByTimestamp           = v2.EventsByTimestamp
256	EventsByLastOk              = v2.EventsByLastOk
257	EventFilterAllActions       = v2.EventFilterAllActions
258	ValidateOutputMetricFormat  = v2.ValidateOutputMetricFormat
259)
260