Documentation
¶
Overview ¶
Package generated provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AlarmEventNotification
- type AlarmEventNotificationNotificationEventType
- type AlarmEventRecord
- type AlarmEventRecordModifications
- type AlarmServiceConfiguration
- type AlarmSubscriptionInfo
- type AlarmSubscriptionInfoFilter
- type Alert
- type AlertmanagerNotification
- type AlertmanagerNotificationStatus
- type AmNotification200Response
- type AmNotification400Response
- type AmNotification500Response
- type AmNotificationJSONRequestBody
- type AmNotificationRequestObject
- type AmNotificationResponseObject
- type CreateSubscription201JSONResponse
- type CreateSubscription400ApplicationProblemPlusJSONResponse
- type CreateSubscription409ApplicationProblemPlusJSONResponse
- type CreateSubscription500ApplicationProblemPlusJSONResponse
- type CreateSubscriptionJSONRequestBody
- type CreateSubscriptionRequestObject
- type CreateSubscriptionResponseObject
- type DeleteSubscription200Response
- type DeleteSubscription400ApplicationProblemPlusJSONResponse
- type DeleteSubscription404ApplicationProblemPlusJSONResponse
- type DeleteSubscription500ApplicationProblemPlusJSONResponse
- type DeleteSubscriptionRequestObject
- type DeleteSubscriptionResponseObject
- type GetAlarm200JSONResponse
- type GetAlarm400ApplicationProblemPlusJSONResponse
- type GetAlarm404ApplicationProblemPlusJSONResponse
- type GetAlarm500ApplicationProblemPlusJSONResponse
- type GetAlarmRequestObject
- type GetAlarmResponseObject
- type GetAlarms200JSONResponse
- type GetAlarms400ApplicationProblemPlusJSONResponse
- type GetAlarms403ApplicationProblemPlusJSONResponse
- type GetAlarms500ApplicationProblemPlusJSONResponse
- type GetAlarmsParams
- type GetAlarmsRequestObject
- type GetAlarmsResponseObject
- type GetAllVersions200JSONResponse
- type GetAllVersions400ApplicationProblemPlusJSONResponse
- type GetAllVersions500ApplicationProblemPlusJSONResponse
- type GetAllVersionsRequestObject
- type GetAllVersionsResponseObject
- type GetMinorVersions200JSONResponse
- type GetMinorVersions400ApplicationProblemPlusJSONResponse
- type GetMinorVersions500ApplicationProblemPlusJSONResponse
- type GetMinorVersionsRequestObject
- type GetMinorVersionsResponseObject
- type GetServiceConfiguration200JSONResponse
- type GetServiceConfiguration400ApplicationProblemPlusJSONResponse
- type GetServiceConfiguration500ApplicationProblemPlusJSONResponse
- type GetServiceConfigurationRequestObject
- type GetServiceConfigurationResponseObject
- type GetSubscription200JSONResponse
- type GetSubscription400ApplicationProblemPlusJSONResponse
- type GetSubscription404ApplicationProblemPlusJSONResponse
- type GetSubscription500ApplicationProblemPlusJSONResponse
- type GetSubscriptionRequestObject
- type GetSubscriptionResponseObject
- type GetSubscriptions200JSONResponse
- type GetSubscriptions400ApplicationProblemPlusJSONResponse
- type GetSubscriptions500ApplicationProblemPlusJSONResponse
- type GetSubscriptionsParams
- type GetSubscriptionsRequestObject
- type GetSubscriptionsResponseObject
- type HardwareAlert
- type HwNotification200Response
- type HwNotification400Response
- type HwNotification500Response
- type HwNotificationJSONRequestBody
- type HwNotificationRequestObject
- type HwNotificationResponseObject
- type InvalidParamFormatError
- type MiddlewareFunc
- type PatchAlarm200JSONResponse
- type PatchAlarm400ApplicationProblemPlusJSONResponse
- type PatchAlarm404ApplicationProblemPlusJSONResponse
- type PatchAlarm409ApplicationProblemPlusJSONResponse
- type PatchAlarm412ApplicationProblemPlusJSONResponse
- type PatchAlarm500ApplicationProblemPlusJSONResponse
- type PatchAlarmApplicationMergePatchPlusJSONRequestBody
- type PatchAlarmRequestObject
- type PatchAlarmResponseObject
- type PatchAlarmServiceConfiguration200JSONResponse
- type PatchAlarmServiceConfiguration400ApplicationProblemPlusJSONResponse
- type PatchAlarmServiceConfiguration412ApplicationProblemPlusJSONResponse
- type PatchAlarmServiceConfiguration500ApplicationProblemPlusJSONResponse
- type PatchAlarmServiceConfigurationApplicationMergePatchPlusJSONRequestBody
- type PatchAlarmServiceConfigurationRequestObject
- type PatchAlarmServiceConfigurationResponseObject
- type PerceivedSeverity
- type RequiredHeaderError
- type RequiredParamError
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AmNotification(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteSubscription(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAlarm(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAlarms(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAllVersions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMinorVersions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetServiceConfiguration(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSubscriptions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) HwNotification(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PatchAlarm(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PatchAlarmServiceConfiguration(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateAlarmServiceConfiguration(w http.ResponseWriter, r *http.Request)
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UpdateAlarmServiceConfiguration200JSONResponse
- type UpdateAlarmServiceConfiguration400ApplicationProblemPlusJSONResponse
- type UpdateAlarmServiceConfiguration412ApplicationProblemPlusJSONResponse
- type UpdateAlarmServiceConfiguration500ApplicationProblemPlusJSONResponse
- type UpdateAlarmServiceConfigurationJSONRequestBody
- type UpdateAlarmServiceConfigurationRequestObject
- type UpdateAlarmServiceConfigurationResponseObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type AlarmEventNotification ¶
type AlarmEventNotification struct { // AlarmAcknowledgeTime Date/Time stamp value when any value of the AlarmEventRecord has been modified. AlarmAcknowledgeTime *time.Time `json:"alarmAcknowledgeTime,omitempty"` // AlarmAcknowledged Boolean value indicating of a management system has acknowledged the alarm. AlarmAcknowledged bool `json:"alarmAcknowledged"` // AlarmChangedTime Date/Time stamp value when any value of the AlarmEventRecord has been modified. AlarmChangedTime time.Time `json:"alarmChangedTime"` // AlarmDefinitionID A reference to the Alarm Definition record in the Alarm Dictionary associated with the referenced ResourceType. AlarmDefinitionID openapi_types.UUID `json:"alarmDefinitionID"` // AlarmEventRecordId The URL to the AlarmEventRecord object. AlarmEventRecordId openapi_types.UUID `json:"alarmEventRecordId"` // AlarmRaisedTime Date/Time stamp value when the AlarmEventRecord has been created. AlarmRaisedTime time.Time `json:"alarmRaisedTime"` // ConsumerSubscriptionId The value provided by the consumer in the subscription. ConsumerSubscriptionId *openapi_types.UUID `json:"consumerSubscriptionId,omitempty"` // Extensions These are unspecified (not standardized) properties (keys) which are tailored by the vendor or // operator to extend the information provided about the O-Cloud Alarm. Extensions map[string]string `json:"extensions"` // GlobalCloudID The global cloud identifier assigned by the SMO.e GlobalCloudID openapi_types.UUID `json:"globalCloudID"` // NotificationEventType Notification event type values NotificationEventType AlarmEventNotificationNotificationEventType `json:"notificationEventType"` // ObjectRef The URL to the AlarmEventRecord object. ObjectRef *string `json:"objectRef,omitempty"` // PerceivedSeverity This is an enumerated set of values which identify the perceived severity of the alarm. PerceivedSeverity PerceivedSeverity `json:"perceivedSeverity"` // ProbableCauseID A reference to the ProbableCause of the Alarm. ProbableCauseID openapi_types.UUID `json:"probableCauseID"` // ResourceID A reference to the resource instance which caused the alarm. ResourceID openapi_types.UUID `json:"resourceID"` // ResourceTypeID A reference to the type of resource which caused the alarm. ResourceTypeID openapi_types.UUID `json:"resourceTypeID"` }
AlarmEventNotification Alarm Event Notification sent to subscribers
type AlarmEventNotificationNotificationEventType ¶
type AlarmEventNotificationNotificationEventType int
AlarmEventNotificationNotificationEventType Notification event type values
const ( AlarmEventNotificationNotificationEventTypeACKNOWLEDGE AlarmEventNotificationNotificationEventType = 3 AlarmEventNotificationNotificationEventTypeCHANGE AlarmEventNotificationNotificationEventType = 1 AlarmEventNotificationNotificationEventTypeCLEAR AlarmEventNotificationNotificationEventType = 2 AlarmEventNotificationNotificationEventTypeNEW AlarmEventNotificationNotificationEventType = 0 )
Defines values for AlarmEventNotificationNotificationEventType.
type AlarmEventRecord ¶
type AlarmEventRecord struct { // AlarmAcknowledged When a system acknowledges an alarm, it is then set to TRUE. AlarmAcknowledged bool `json:"alarmAcknowledged"` // AlarmAcknowledgedTime This field is populated with a Date/Time stamp value when the alarm condition is acknowledged. AlarmAcknowledgedTime *time.Time `json:"alarmAcknowledgedTime,omitempty"` // AlarmChangedTime This field is populated with a Date/Time stamp value when any value // of the AlarmEventRecord is modified. AlarmChangedTime *time.Time `json:"alarmChangedTime,omitempty"` // AlarmClearedTime This field is populated with a Date/Time stamp value when the alarm condition is cleared. AlarmClearedTime *time.Time `json:"alarmClearedTime,omitempty"` // AlarmDefinitionID A reference to the Alarm Definition record in the Alarm Dictionary associated with the referenced Resource Type. AlarmDefinitionID openapi_types.UUID `json:"alarmDefinitionID"` // AlarmEventRecordId Identifier of an entry in the AlarmEventRecord. // Locally unique within the scope of an O-Cloud instance. AlarmEventRecordId openapi_types.UUID `json:"alarmEventRecordId"` // AlarmRaisedTime This field is populated with a Date/Time stamp value when the AlarmEventRecord is created. AlarmRaisedTime time.Time `json:"alarmRaisedTime"` // Extensions These are unspecified (not standardized) properties (keys) which are tailored by the vendor or // operator to extend the information provided about the O-Cloud Alarm. Extensions map[string]string `json:"extensions"` // PerceivedSeverity This is an enumerated set of values which identify the perceived severity of the alarm. PerceivedSeverity PerceivedSeverity `json:"perceivedSeverity"` // ProbableCauseID A reference to the ProbableCause of the Alarm. ProbableCauseID openapi_types.UUID `json:"probableCauseID"` // ResourceID A reference to the resource which caused the alarm. ResourceID openapi_types.UUID `json:"resourceID"` // ResourceTypeID A reference to the type of resource which caused the alarm. ResourceTypeID openapi_types.UUID `json:"resourceTypeID"` }
AlarmEventRecord defines model for AlarmEventRecord.
type AlarmEventRecordModifications ¶
type AlarmEventRecordModifications struct { // AlarmAcknowledged Acknowledge an alarm. AlarmAcknowledged *bool `json:"alarmAcknowledged,omitempty"` // PerceivedSeverity This is an enumerated set of values which identify the perceived severity of the alarm. PerceivedSeverity *PerceivedSeverity `json:"perceivedSeverity,omitempty"` }
AlarmEventRecordModifications defines model for AlarmEventRecordModifications.
type AlarmServiceConfiguration ¶
type AlarmServiceConfiguration struct { // Extensions List of metadata key-value pairs used to associate meaningful metadata to the related alarm service Extensions *map[string]string `json:"extensions,omitempty"` // RetentionPeriod Number of days for alarm history to be retained. // This value has cannot be set lower than 1 (day). RetentionPeriod int `json:"retentionPeriod"` }
AlarmServiceConfiguration defines model for AlarmServiceConfiguration.
type AlarmSubscriptionInfo ¶
type AlarmSubscriptionInfo struct { // AlarmSubscriptionId Identifier for the Alarm Subscription. This identifier is allocated by the O-Cloud. AlarmSubscriptionId *openapi_types.UUID `json:"alarmSubscriptionId,omitempty"` // Callback The fully qualified URI to a consumer procedure which can process a Post of the AlarmEventNotification. Callback string `json:"callback"` // ConsumerSubscriptionId Identifier for the consumer of events sent due to the Subscription. ConsumerSubscriptionId *openapi_types.UUID `json:"consumerSubscriptionId,omitempty"` // Filter Criteria for events which do not need to be reported or will be filtered by the subscription // notification service. Therefore, if a filter is not provided then all events are reported. // It can be filtered by criteria based on the type of notification of fields of the // AlarmEventRecord. Filter *AlarmSubscriptionInfoFilter `json:"filter,omitempty"` }
AlarmSubscriptionInfo defines model for AlarmSubscriptionInfo.
type AlarmSubscriptionInfoFilter ¶
type AlarmSubscriptionInfoFilter string
AlarmSubscriptionInfoFilter Criteria for events which do not need to be reported or will be filtered by the subscription notification service. Therefore, if a filter is not provided then all events are reported. It can be filtered by criteria based on the type of notification of fields of the AlarmEventRecord.
const ( AlarmSubscriptionInfoFilterACKNOWLEDGE AlarmSubscriptionInfoFilter = "ACKNOWLEDGE" AlarmSubscriptionInfoFilterCHANGE AlarmSubscriptionInfoFilter = "CHANGE" AlarmSubscriptionInfoFilterCLEAR AlarmSubscriptionInfoFilter = "CLEAR" AlarmSubscriptionInfoFilterNEW AlarmSubscriptionInfoFilter = "NEW" )
Defines values for AlarmSubscriptionInfoFilter.
type Alert ¶
type Alert struct { Annotations *map[string]string `json:"annotations,omitempty"` EndsAt *time.Time `json:"endsAt,omitempty"` // Fingerprint Fingerprint to identify the alert Fingerprint *string `json:"fingerprint,omitempty"` // GeneratorURL Identifies the entity that caused the alert GeneratorURL *string `json:"generatorURL,omitempty"` Labels *map[string]string `json:"labels,omitempty"` StartsAt *time.Time `json:"startsAt,omitempty"` // Status Alertmanager notification status Status *AlertmanagerNotificationStatus `json:"status,omitempty"` }
Alert defines model for Alert.
type AlertmanagerNotification ¶
type AlertmanagerNotification struct { Alerts []Alert `json:"alerts"` CommonAnnotations *map[string]string `json:"commonAnnotations,omitempty"` CommonLabels *map[string]string `json:"commonLabels,omitempty"` // ExternalURL Backlink to the Alertmanager ExternalURL *string `json:"externalURL,omitempty"` // GroupKey Key identifying the group of alerts (e.g. to deduplicate) GroupKey string `json:"groupKey"` GroupLabels *map[string]string `json:"groupLabels,omitempty"` Receiver string `json:"receiver"` // Status Alertmanager notification status Status AlertmanagerNotificationStatus `json:"status"` // Subscriber Optional subscriber information, if a subscriber is found Subscriber *struct { // CallbackUrl URL to call for notifying the subscriber CallbackUrl *string `json:"callbackUrl,omitempty"` } `json:"subscriber,omitempty"` // TruncatedAlerts How many alerts have been truncated due to "max_alerts" TruncatedAlerts *int `json:"truncatedAlerts,omitempty"` Version string `json:"version"` }
AlertmanagerNotification Alertmanager notification payload as described here https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
type AlertmanagerNotificationStatus ¶
type AlertmanagerNotificationStatus string
AlertmanagerNotificationStatus Alertmanager notification status
const ( Firing AlertmanagerNotificationStatus = "firing" Resolved AlertmanagerNotificationStatus = "resolved" )
Defines values for AlertmanagerNotificationStatus.
type AmNotification200Response ¶
type AmNotification200Response struct { }
func (AmNotification200Response) VisitAmNotificationResponse ¶
func (response AmNotification200Response) VisitAmNotificationResponse(w http.ResponseWriter) error
type AmNotification400Response ¶
type AmNotification400Response struct { }
func (AmNotification400Response) VisitAmNotificationResponse ¶
func (response AmNotification400Response) VisitAmNotificationResponse(w http.ResponseWriter) error
type AmNotification500Response ¶
type AmNotification500Response struct { }
func (AmNotification500Response) VisitAmNotificationResponse ¶
func (response AmNotification500Response) VisitAmNotificationResponse(w http.ResponseWriter) error
type AmNotificationJSONRequestBody ¶
type AmNotificationJSONRequestBody = AlertmanagerNotification
AmNotificationJSONRequestBody defines body for AmNotification for application/json ContentType.
type AmNotificationRequestObject ¶
type AmNotificationRequestObject struct {
Body *AmNotificationJSONRequestBody
}
type AmNotificationResponseObject ¶
type AmNotificationResponseObject interface {
VisitAmNotificationResponse(w http.ResponseWriter) error
}
type CreateSubscription201JSONResponse ¶
type CreateSubscription201JSONResponse AlarmSubscriptionInfo
func (CreateSubscription201JSONResponse) VisitCreateSubscriptionResponse ¶
func (response CreateSubscription201JSONResponse) VisitCreateSubscriptionResponse(w http.ResponseWriter) error
type CreateSubscription400ApplicationProblemPlusJSONResponse ¶
type CreateSubscription400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (CreateSubscription400ApplicationProblemPlusJSONResponse) VisitCreateSubscriptionResponse ¶
func (response CreateSubscription400ApplicationProblemPlusJSONResponse) VisitCreateSubscriptionResponse(w http.ResponseWriter) error
type CreateSubscription409ApplicationProblemPlusJSONResponse ¶
type CreateSubscription409ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (CreateSubscription409ApplicationProblemPlusJSONResponse) VisitCreateSubscriptionResponse ¶
func (response CreateSubscription409ApplicationProblemPlusJSONResponse) VisitCreateSubscriptionResponse(w http.ResponseWriter) error
type CreateSubscription500ApplicationProblemPlusJSONResponse ¶
type CreateSubscription500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (CreateSubscription500ApplicationProblemPlusJSONResponse) VisitCreateSubscriptionResponse ¶
func (response CreateSubscription500ApplicationProblemPlusJSONResponse) VisitCreateSubscriptionResponse(w http.ResponseWriter) error
type CreateSubscriptionJSONRequestBody ¶
type CreateSubscriptionJSONRequestBody = AlarmSubscriptionInfo
CreateSubscriptionJSONRequestBody defines body for CreateSubscription for application/json ContentType.
type CreateSubscriptionRequestObject ¶
type CreateSubscriptionRequestObject struct {
Body *CreateSubscriptionJSONRequestBody
}
type CreateSubscriptionResponseObject ¶
type CreateSubscriptionResponseObject interface {
VisitCreateSubscriptionResponse(w http.ResponseWriter) error
}
type DeleteSubscription200Response ¶
type DeleteSubscription200Response struct { }
func (DeleteSubscription200Response) VisitDeleteSubscriptionResponse ¶
func (response DeleteSubscription200Response) VisitDeleteSubscriptionResponse(w http.ResponseWriter) error
type DeleteSubscription400ApplicationProblemPlusJSONResponse ¶
type DeleteSubscription400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (DeleteSubscription400ApplicationProblemPlusJSONResponse) VisitDeleteSubscriptionResponse ¶
func (response DeleteSubscription400ApplicationProblemPlusJSONResponse) VisitDeleteSubscriptionResponse(w http.ResponseWriter) error
type DeleteSubscription404ApplicationProblemPlusJSONResponse ¶
type DeleteSubscription404ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (DeleteSubscription404ApplicationProblemPlusJSONResponse) VisitDeleteSubscriptionResponse ¶
func (response DeleteSubscription404ApplicationProblemPlusJSONResponse) VisitDeleteSubscriptionResponse(w http.ResponseWriter) error
type DeleteSubscription500ApplicationProblemPlusJSONResponse ¶
type DeleteSubscription500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (DeleteSubscription500ApplicationProblemPlusJSONResponse) VisitDeleteSubscriptionResponse ¶
func (response DeleteSubscription500ApplicationProblemPlusJSONResponse) VisitDeleteSubscriptionResponse(w http.ResponseWriter) error
type DeleteSubscriptionRequestObject ¶
type DeleteSubscriptionRequestObject struct {
AlarmSubscriptionId openapi_types.UUID `json:"alarmSubscriptionId"`
}
type DeleteSubscriptionResponseObject ¶
type DeleteSubscriptionResponseObject interface {
VisitDeleteSubscriptionResponse(w http.ResponseWriter) error
}
type GetAlarm200JSONResponse ¶
type GetAlarm200JSONResponse AlarmEventRecord
func (GetAlarm200JSONResponse) VisitGetAlarmResponse ¶
func (response GetAlarm200JSONResponse) VisitGetAlarmResponse(w http.ResponseWriter) error
type GetAlarm400ApplicationProblemPlusJSONResponse ¶
type GetAlarm400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetAlarm400ApplicationProblemPlusJSONResponse) VisitGetAlarmResponse ¶
func (response GetAlarm400ApplicationProblemPlusJSONResponse) VisitGetAlarmResponse(w http.ResponseWriter) error
type GetAlarm404ApplicationProblemPlusJSONResponse ¶
type GetAlarm404ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetAlarm404ApplicationProblemPlusJSONResponse) VisitGetAlarmResponse ¶
func (response GetAlarm404ApplicationProblemPlusJSONResponse) VisitGetAlarmResponse(w http.ResponseWriter) error
type GetAlarm500ApplicationProblemPlusJSONResponse ¶
type GetAlarm500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetAlarm500ApplicationProblemPlusJSONResponse) VisitGetAlarmResponse ¶
func (response GetAlarm500ApplicationProblemPlusJSONResponse) VisitGetAlarmResponse(w http.ResponseWriter) error
type GetAlarmRequestObject ¶
type GetAlarmRequestObject struct {
AlarmEventRecordId openapi_types.UUID `json:"alarmEventRecordId"`
}
type GetAlarmResponseObject ¶
type GetAlarmResponseObject interface {
VisitGetAlarmResponse(w http.ResponseWriter) error
}
type GetAlarms200JSONResponse ¶
type GetAlarms200JSONResponse []AlarmEventRecord
func (GetAlarms200JSONResponse) VisitGetAlarmsResponse ¶
func (response GetAlarms200JSONResponse) VisitGetAlarmsResponse(w http.ResponseWriter) error
type GetAlarms400ApplicationProblemPlusJSONResponse ¶
type GetAlarms400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetAlarms400ApplicationProblemPlusJSONResponse) VisitGetAlarmsResponse ¶
func (response GetAlarms400ApplicationProblemPlusJSONResponse) VisitGetAlarmsResponse(w http.ResponseWriter) error
type GetAlarms403ApplicationProblemPlusJSONResponse ¶
type GetAlarms403ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetAlarms403ApplicationProblemPlusJSONResponse) VisitGetAlarmsResponse ¶
func (response GetAlarms403ApplicationProblemPlusJSONResponse) VisitGetAlarmsResponse(w http.ResponseWriter) error
type GetAlarms500ApplicationProblemPlusJSONResponse ¶
type GetAlarms500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetAlarms500ApplicationProblemPlusJSONResponse) VisitGetAlarmsResponse ¶
func (response GetAlarms500ApplicationProblemPlusJSONResponse) VisitGetAlarmsResponse(w http.ResponseWriter) error
type GetAlarmsParams ¶
type GetAlarmsParams struct { // AllFields This URI query parameter requests that all complex attributes are included in the response. // // “` // all_fields // “` AllFields *externalRef0.AllFields `form:"all_fields,omitempty" json:"all_fields,omitempty"` // ExcludeFields Comma separated list of field references to exclude from the result. // // Each field reference is a field name, or a sequence of field names separated by slashes. For // example, to exclude the `country` subfield of the `extensions` field: // // “` // exclude_fields=extensions/country // “` // // When this parameter isn't used no field will be excluded. // // Fields in this list will be excluded even if they are explicitly included using the // `fields` parameter. ExcludeFields *externalRef0.ExcludeFields `form:"exclude_fields,omitempty" json:"exclude_fields,omitempty"` // Fields Comma separated list of field references to include in the result. // // Each field reference is a field name, or a sequence of field names separated by slashes. For // example, to get the `name` field and the `country` subfield of the `extensions` field: // // “` // fields=name,extensions/country // “` // // When this parameter isn't used all the fields will be returned. Fields *externalRef0.Fields `form:"fields,omitempty" json:"fields,omitempty"` // Filter Search criteria. // // Contains one or more search criteria, separated by semicolons. Each search criteria is a // tuple containing an operator, a field reference and one or more values. The operator can // be any of the following strings: // // | Operator | Meaning | // |----------|-------------------------------------------------------------| // | `cont` | Matches if the field contains the value | // | `eq` | Matches if the field is equal to the value | // | `gt` | Matches if the field is greater than the value | // | `gte` | Matches if the field is greater than or equal to the value | // | `in` | Matches if the field is one of the values | // | `lt` | Matches if the field is less than the value | // | `lte` | Matches if the field is less than or equal to the the value | // | `ncont` | Matches if the field does not contain the value | // | `neq` | Matches if the field is not equal to the value | // | `nin` | Matches if the field is not one of the values | // // The field reference is the name of one of the fields of the object, or a sequence of // name of fields separated by slashes. For example, to use the `country` sub-field inside // the `extensions` field: // // “` // filter=(eq,extensions/country,EQ) // “` // // The values are the arguments of the operator. For example, the `eq` operator compares // checks if the value of the field is equal to the value. // // The `in` and `nin` operators support multiple values. For example, to check if the `country` // sub-field inside the `extensions` field is either `ES` or `US: // // “` // filter=(in,extensions/country,ES,US) // “` // // When values contain commas, slashes or spaces they need to be surrounded by single quotes. // For example, to check if the `name` field is the string `my cluster`: // // “` // filter=(eq,name,'my cluster') // “` // // When multiple criteria separated by semicolons are used, all of them must match for the // complete condition to match. For example, the following will check if the `name` is // `my cluster` *and* the `country` extension is `ES`: // // “` // filter=(eq,name,'my cluster');(eq,extensions/country,ES) // “` // // When this parameter isn't used all the results will be returned. Filter *externalRef0.Filter `form:"filter,omitempty" json:"filter,omitempty"` }
GetAlarmsParams defines parameters for GetAlarms.
type GetAlarmsRequestObject ¶
type GetAlarmsRequestObject struct {
Params GetAlarmsParams
}
type GetAlarmsResponseObject ¶
type GetAlarmsResponseObject interface {
VisitGetAlarmsResponse(w http.ResponseWriter) error
}
type GetAllVersions200JSONResponse ¶
type GetAllVersions200JSONResponse externalRef0.APIVersions
func (GetAllVersions200JSONResponse) VisitGetAllVersionsResponse ¶
func (response GetAllVersions200JSONResponse) VisitGetAllVersionsResponse(w http.ResponseWriter) error
type GetAllVersions400ApplicationProblemPlusJSONResponse ¶
type GetAllVersions400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetAllVersions400ApplicationProblemPlusJSONResponse) VisitGetAllVersionsResponse ¶
func (response GetAllVersions400ApplicationProblemPlusJSONResponse) VisitGetAllVersionsResponse(w http.ResponseWriter) error
type GetAllVersions500ApplicationProblemPlusJSONResponse ¶
type GetAllVersions500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetAllVersions500ApplicationProblemPlusJSONResponse) VisitGetAllVersionsResponse ¶
func (response GetAllVersions500ApplicationProblemPlusJSONResponse) VisitGetAllVersionsResponse(w http.ResponseWriter) error
type GetAllVersionsRequestObject ¶
type GetAllVersionsRequestObject struct { }
type GetAllVersionsResponseObject ¶
type GetAllVersionsResponseObject interface {
VisitGetAllVersionsResponse(w http.ResponseWriter) error
}
type GetMinorVersions200JSONResponse ¶
type GetMinorVersions200JSONResponse externalRef0.APIVersions
func (GetMinorVersions200JSONResponse) VisitGetMinorVersionsResponse ¶
func (response GetMinorVersions200JSONResponse) VisitGetMinorVersionsResponse(w http.ResponseWriter) error
type GetMinorVersions400ApplicationProblemPlusJSONResponse ¶
type GetMinorVersions400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetMinorVersions400ApplicationProblemPlusJSONResponse) VisitGetMinorVersionsResponse ¶
func (response GetMinorVersions400ApplicationProblemPlusJSONResponse) VisitGetMinorVersionsResponse(w http.ResponseWriter) error
type GetMinorVersions500ApplicationProblemPlusJSONResponse ¶
type GetMinorVersions500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetMinorVersions500ApplicationProblemPlusJSONResponse) VisitGetMinorVersionsResponse ¶
func (response GetMinorVersions500ApplicationProblemPlusJSONResponse) VisitGetMinorVersionsResponse(w http.ResponseWriter) error
type GetMinorVersionsRequestObject ¶
type GetMinorVersionsRequestObject struct { }
type GetMinorVersionsResponseObject ¶
type GetMinorVersionsResponseObject interface {
VisitGetMinorVersionsResponse(w http.ResponseWriter) error
}
type GetServiceConfiguration200JSONResponse ¶
type GetServiceConfiguration200JSONResponse AlarmServiceConfiguration
func (GetServiceConfiguration200JSONResponse) VisitGetServiceConfigurationResponse ¶
func (response GetServiceConfiguration200JSONResponse) VisitGetServiceConfigurationResponse(w http.ResponseWriter) error
type GetServiceConfiguration400ApplicationProblemPlusJSONResponse ¶
type GetServiceConfiguration400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetServiceConfiguration400ApplicationProblemPlusJSONResponse) VisitGetServiceConfigurationResponse ¶
func (response GetServiceConfiguration400ApplicationProblemPlusJSONResponse) VisitGetServiceConfigurationResponse(w http.ResponseWriter) error
type GetServiceConfiguration500ApplicationProblemPlusJSONResponse ¶
type GetServiceConfiguration500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetServiceConfiguration500ApplicationProblemPlusJSONResponse) VisitGetServiceConfigurationResponse ¶
func (response GetServiceConfiguration500ApplicationProblemPlusJSONResponse) VisitGetServiceConfigurationResponse(w http.ResponseWriter) error
type GetServiceConfigurationRequestObject ¶
type GetServiceConfigurationRequestObject struct { }
type GetServiceConfigurationResponseObject ¶
type GetServiceConfigurationResponseObject interface {
VisitGetServiceConfigurationResponse(w http.ResponseWriter) error
}
type GetSubscription200JSONResponse ¶
type GetSubscription200JSONResponse AlarmSubscriptionInfo
func (GetSubscription200JSONResponse) VisitGetSubscriptionResponse ¶
func (response GetSubscription200JSONResponse) VisitGetSubscriptionResponse(w http.ResponseWriter) error
type GetSubscription400ApplicationProblemPlusJSONResponse ¶
type GetSubscription400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetSubscription400ApplicationProblemPlusJSONResponse) VisitGetSubscriptionResponse ¶
func (response GetSubscription400ApplicationProblemPlusJSONResponse) VisitGetSubscriptionResponse(w http.ResponseWriter) error
type GetSubscription404ApplicationProblemPlusJSONResponse ¶
type GetSubscription404ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetSubscription404ApplicationProblemPlusJSONResponse) VisitGetSubscriptionResponse ¶
func (response GetSubscription404ApplicationProblemPlusJSONResponse) VisitGetSubscriptionResponse(w http.ResponseWriter) error
type GetSubscription500ApplicationProblemPlusJSONResponse ¶
type GetSubscription500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetSubscription500ApplicationProblemPlusJSONResponse) VisitGetSubscriptionResponse ¶
func (response GetSubscription500ApplicationProblemPlusJSONResponse) VisitGetSubscriptionResponse(w http.ResponseWriter) error
type GetSubscriptionRequestObject ¶
type GetSubscriptionRequestObject struct {
AlarmSubscriptionId openapi_types.UUID `json:"alarmSubscriptionId"`
}
type GetSubscriptionResponseObject ¶
type GetSubscriptionResponseObject interface {
VisitGetSubscriptionResponse(w http.ResponseWriter) error
}
type GetSubscriptions200JSONResponse ¶
type GetSubscriptions200JSONResponse []AlarmSubscriptionInfo
func (GetSubscriptions200JSONResponse) VisitGetSubscriptionsResponse ¶
func (response GetSubscriptions200JSONResponse) VisitGetSubscriptionsResponse(w http.ResponseWriter) error
type GetSubscriptions400ApplicationProblemPlusJSONResponse ¶
type GetSubscriptions400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetSubscriptions400ApplicationProblemPlusJSONResponse) VisitGetSubscriptionsResponse ¶
func (response GetSubscriptions400ApplicationProblemPlusJSONResponse) VisitGetSubscriptionsResponse(w http.ResponseWriter) error
type GetSubscriptions500ApplicationProblemPlusJSONResponse ¶
type GetSubscriptions500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (GetSubscriptions500ApplicationProblemPlusJSONResponse) VisitGetSubscriptionsResponse ¶
func (response GetSubscriptions500ApplicationProblemPlusJSONResponse) VisitGetSubscriptionsResponse(w http.ResponseWriter) error
type GetSubscriptionsParams ¶
type GetSubscriptionsParams struct { // AllFields This URI query parameter requests that all complex attributes are included in the response. // // “` // all_fields // “` AllFields *externalRef0.AllFields `form:"all_fields,omitempty" json:"all_fields,omitempty"` // ExcludeFields Comma separated list of field references to exclude from the result. // // Each field reference is a field name, or a sequence of field names separated by slashes. For // example, to exclude the `country` subfield of the `extensions` field: // // “` // exclude_fields=extensions/country // “` // // When this parameter isn't used no field will be excluded. // // Fields in this list will be excluded even if they are explicitly included using the // `fields` parameter. ExcludeFields *externalRef0.ExcludeFields `form:"exclude_fields,omitempty" json:"exclude_fields,omitempty"` // Fields Comma separated list of field references to include in the result. // // Each field reference is a field name, or a sequence of field names separated by slashes. For // example, to get the `name` field and the `country` subfield of the `extensions` field: // // “` // fields=name,extensions/country // “` // // When this parameter isn't used all the fields will be returned. Fields *externalRef0.Fields `form:"fields,omitempty" json:"fields,omitempty"` // Filter Search criteria. // // Contains one or more search criteria, separated by semicolons. Each search criteria is a // tuple containing an operator, a field reference and one or more values. The operator can // be any of the following strings: // // | Operator | Meaning | // |----------|-------------------------------------------------------------| // | `cont` | Matches if the field contains the value | // | `eq` | Matches if the field is equal to the value | // | `gt` | Matches if the field is greater than the value | // | `gte` | Matches if the field is greater than or equal to the value | // | `in` | Matches if the field is one of the values | // | `lt` | Matches if the field is less than the value | // | `lte` | Matches if the field is less than or equal to the the value | // | `ncont` | Matches if the field does not contain the value | // | `neq` | Matches if the field is not equal to the value | // | `nin` | Matches if the field is not one of the values | // // The field reference is the name of one of the fields of the object, or a sequence of // name of fields separated by slashes. For example, to use the `country` sub-field inside // the `extensions` field: // // “` // filter=(eq,extensions/country,EQ) // “` // // The values are the arguments of the operator. For example, the `eq` operator compares // checks if the value of the field is equal to the value. // // The `in` and `nin` operators support multiple values. For example, to check if the `country` // sub-field inside the `extensions` field is either `ES` or `US: // // “` // filter=(in,extensions/country,ES,US) // “` // // When values contain commas, slashes or spaces they need to be surrounded by single quotes. // For example, to check if the `name` field is the string `my cluster`: // // “` // filter=(eq,name,'my cluster') // “` // // When multiple criteria separated by semicolons are used, all of them must match for the // complete condition to match. For example, the following will check if the `name` is // `my cluster` *and* the `country` extension is `ES`: // // “` // filter=(eq,name,'my cluster');(eq,extensions/country,ES) // “` // // When this parameter isn't used all the results will be returned. Filter *externalRef0.Filter `form:"filter,omitempty" json:"filter,omitempty"` }
GetSubscriptionsParams defines parameters for GetSubscriptions.
type GetSubscriptionsRequestObject ¶
type GetSubscriptionsRequestObject struct {
Params GetSubscriptionsParams
}
type GetSubscriptionsResponseObject ¶
type GetSubscriptionsResponseObject interface {
VisitGetSubscriptionsResponse(w http.ResponseWriter) error
}
type HardwareAlert ¶
type HardwareAlert = map[string]interface{}
HardwareAlert Placeholder for hardware alert schema
type HwNotification200Response ¶
type HwNotification200Response struct { }
func (HwNotification200Response) VisitHwNotificationResponse ¶
func (response HwNotification200Response) VisitHwNotificationResponse(w http.ResponseWriter) error
type HwNotification400Response ¶
type HwNotification400Response struct { }
func (HwNotification400Response) VisitHwNotificationResponse ¶
func (response HwNotification400Response) VisitHwNotificationResponse(w http.ResponseWriter) error
type HwNotification500Response ¶
type HwNotification500Response struct { }
func (HwNotification500Response) VisitHwNotificationResponse ¶
func (response HwNotification500Response) VisitHwNotificationResponse(w http.ResponseWriter) error
type HwNotificationJSONRequestBody ¶
type HwNotificationJSONRequestBody = HardwareAlert
HwNotificationJSONRequestBody defines body for HwNotification for application/json ContentType.
type HwNotificationRequestObject ¶
type HwNotificationRequestObject struct { HwVendorName string `json:"hwVendorName"` Body *HwNotificationJSONRequestBody }
type HwNotificationResponseObject ¶
type HwNotificationResponseObject interface {
VisitHwNotificationResponse(w http.ResponseWriter) error
}
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type PatchAlarm200JSONResponse ¶
type PatchAlarm200JSONResponse AlarmEventRecordModifications
func (PatchAlarm200JSONResponse) VisitPatchAlarmResponse ¶
func (response PatchAlarm200JSONResponse) VisitPatchAlarmResponse(w http.ResponseWriter) error
type PatchAlarm400ApplicationProblemPlusJSONResponse ¶
type PatchAlarm400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (PatchAlarm400ApplicationProblemPlusJSONResponse) VisitPatchAlarmResponse ¶
func (response PatchAlarm400ApplicationProblemPlusJSONResponse) VisitPatchAlarmResponse(w http.ResponseWriter) error
type PatchAlarm404ApplicationProblemPlusJSONResponse ¶
type PatchAlarm404ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (PatchAlarm404ApplicationProblemPlusJSONResponse) VisitPatchAlarmResponse ¶
func (response PatchAlarm404ApplicationProblemPlusJSONResponse) VisitPatchAlarmResponse(w http.ResponseWriter) error
type PatchAlarm409ApplicationProblemPlusJSONResponse ¶
type PatchAlarm409ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (PatchAlarm409ApplicationProblemPlusJSONResponse) VisitPatchAlarmResponse ¶
func (response PatchAlarm409ApplicationProblemPlusJSONResponse) VisitPatchAlarmResponse(w http.ResponseWriter) error
type PatchAlarm412ApplicationProblemPlusJSONResponse ¶
type PatchAlarm412ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (PatchAlarm412ApplicationProblemPlusJSONResponse) VisitPatchAlarmResponse ¶
func (response PatchAlarm412ApplicationProblemPlusJSONResponse) VisitPatchAlarmResponse(w http.ResponseWriter) error
type PatchAlarm500ApplicationProblemPlusJSONResponse ¶
type PatchAlarm500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (PatchAlarm500ApplicationProblemPlusJSONResponse) VisitPatchAlarmResponse ¶
func (response PatchAlarm500ApplicationProblemPlusJSONResponse) VisitPatchAlarmResponse(w http.ResponseWriter) error
type PatchAlarmApplicationMergePatchPlusJSONRequestBody ¶
type PatchAlarmApplicationMergePatchPlusJSONRequestBody = AlarmEventRecordModifications
PatchAlarmApplicationMergePatchPlusJSONRequestBody defines body for PatchAlarm for application/merge-patch+json ContentType.
type PatchAlarmRequestObject ¶
type PatchAlarmRequestObject struct { AlarmEventRecordId openapi_types.UUID `json:"alarmEventRecordId"` Body *PatchAlarmApplicationMergePatchPlusJSONRequestBody }
type PatchAlarmResponseObject ¶
type PatchAlarmResponseObject interface {
VisitPatchAlarmResponse(w http.ResponseWriter) error
}
type PatchAlarmServiceConfiguration200JSONResponse ¶
type PatchAlarmServiceConfiguration200JSONResponse AlarmServiceConfiguration
func (PatchAlarmServiceConfiguration200JSONResponse) VisitPatchAlarmServiceConfigurationResponse ¶
func (response PatchAlarmServiceConfiguration200JSONResponse) VisitPatchAlarmServiceConfigurationResponse(w http.ResponseWriter) error
type PatchAlarmServiceConfiguration400ApplicationProblemPlusJSONResponse ¶
type PatchAlarmServiceConfiguration400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (PatchAlarmServiceConfiguration400ApplicationProblemPlusJSONResponse) VisitPatchAlarmServiceConfigurationResponse ¶
func (response PatchAlarmServiceConfiguration400ApplicationProblemPlusJSONResponse) VisitPatchAlarmServiceConfigurationResponse(w http.ResponseWriter) error
type PatchAlarmServiceConfiguration412ApplicationProblemPlusJSONResponse ¶
type PatchAlarmServiceConfiguration412ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (PatchAlarmServiceConfiguration412ApplicationProblemPlusJSONResponse) VisitPatchAlarmServiceConfigurationResponse ¶
func (response PatchAlarmServiceConfiguration412ApplicationProblemPlusJSONResponse) VisitPatchAlarmServiceConfigurationResponse(w http.ResponseWriter) error
type PatchAlarmServiceConfiguration500ApplicationProblemPlusJSONResponse ¶
type PatchAlarmServiceConfiguration500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (PatchAlarmServiceConfiguration500ApplicationProblemPlusJSONResponse) VisitPatchAlarmServiceConfigurationResponse ¶
func (response PatchAlarmServiceConfiguration500ApplicationProblemPlusJSONResponse) VisitPatchAlarmServiceConfigurationResponse(w http.ResponseWriter) error
type PatchAlarmServiceConfigurationApplicationMergePatchPlusJSONRequestBody ¶
type PatchAlarmServiceConfigurationApplicationMergePatchPlusJSONRequestBody = AlarmServiceConfiguration
PatchAlarmServiceConfigurationApplicationMergePatchPlusJSONRequestBody defines body for PatchAlarmServiceConfiguration for application/merge-patch+json ContentType.
type PatchAlarmServiceConfigurationRequestObject ¶
type PatchAlarmServiceConfigurationRequestObject struct {
Body *PatchAlarmServiceConfigurationApplicationMergePatchPlusJSONRequestBody
}
type PatchAlarmServiceConfigurationResponseObject ¶
type PatchAlarmServiceConfigurationResponseObject interface {
VisitPatchAlarmServiceConfigurationResponse(w http.ResponseWriter) error
}
type PerceivedSeverity ¶
type PerceivedSeverity int
PerceivedSeverity This is an enumerated set of values which identify the perceived severity of the alarm.
const ( CLEARED PerceivedSeverity = 5 CRITICAL PerceivedSeverity = 0 INDETERMINATE PerceivedSeverity = 4 MAJOR PerceivedSeverity = 1 MINOR PerceivedSeverity = 2 WARNING PerceivedSeverity = 3 )
Defines values for PerceivedSeverity.
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ServeMux ¶
type ServeMux interface { HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) ServeHTTP(w http.ResponseWriter, r *http.Request) }
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface { // Receive Alertmanager notifications // (POST /internal/v1/caas-alerts/alertmanager) AmNotification(w http.ResponseWriter, r *http.Request) // Receive hardware alerts // (POST /internal/v1/hardware-alerts/{hwVendorName}) HwNotification(w http.ResponseWriter, r *http.Request, hwVendorName string) // Get API versions // (GET /o2ims-infrastructureMonitoring/api_versions) GetAllVersions(w http.ResponseWriter, r *http.Request) // Retrieve the alarm service configuration // (GET /o2ims-infrastructureMonitoring/v1/alarmServiceConfiguration) GetServiceConfiguration(w http.ResponseWriter, r *http.Request) // Modify individual fields of the Alarm Service Configuration. // (PATCH /o2ims-infrastructureMonitoring/v1/alarmServiceConfiguration) PatchAlarmServiceConfiguration(w http.ResponseWriter, r *http.Request) // Modify all fields of the Alarm Service Configuration. // (PUT /o2ims-infrastructureMonitoring/v1/alarmServiceConfiguration) UpdateAlarmServiceConfiguration(w http.ResponseWriter, r *http.Request) // Retrieve the list of alarm subscriptions // (GET /o2ims-infrastructureMonitoring/v1/alarmSubscriptions) GetSubscriptions(w http.ResponseWriter, r *http.Request, params GetSubscriptionsParams) // Create a new alarm subscription // (POST /o2ims-infrastructureMonitoring/v1/alarmSubscriptions) CreateSubscription(w http.ResponseWriter, r *http.Request) // Delete exactly one subscription // (DELETE /o2ims-infrastructureMonitoring/v1/alarmSubscriptions/{alarmSubscriptionId}) DeleteSubscription(w http.ResponseWriter, r *http.Request, alarmSubscriptionId openapi_types.UUID) // Retrieve exactly one subscription // (GET /o2ims-infrastructureMonitoring/v1/alarmSubscriptions/{alarmSubscriptionId}) GetSubscription(w http.ResponseWriter, r *http.Request, alarmSubscriptionId openapi_types.UUID) // Retrieve the list of alarms // (GET /o2ims-infrastructureMonitoring/v1/alarms) GetAlarms(w http.ResponseWriter, r *http.Request, params GetAlarmsParams) // Retrieve exactly one alarm // (GET /o2ims-infrastructureMonitoring/v1/alarms/{alarmEventRecordId}) GetAlarm(w http.ResponseWriter, r *http.Request, alarmEventRecordId openapi_types.UUID) // Modify an individual alarm record // (PATCH /o2ims-infrastructureMonitoring/v1/alarms/{alarmEventRecordId}) PatchAlarm(w http.ResponseWriter, r *http.Request, alarmEventRecordId openapi_types.UUID) // Get minor API versions // (GET /o2ims-infrastructureMonitoring/v1/api_versions) GetMinorVersions(w http.ResponseWriter, r *http.Request) }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AmNotification ¶
func (siw *ServerInterfaceWrapper) AmNotification(w http.ResponseWriter, r *http.Request)
AmNotification operation middleware
func (*ServerInterfaceWrapper) CreateSubscription ¶
func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r *http.Request)
CreateSubscription operation middleware
func (*ServerInterfaceWrapper) DeleteSubscription ¶
func (siw *ServerInterfaceWrapper) DeleteSubscription(w http.ResponseWriter, r *http.Request)
DeleteSubscription operation middleware
func (*ServerInterfaceWrapper) GetAlarm ¶
func (siw *ServerInterfaceWrapper) GetAlarm(w http.ResponseWriter, r *http.Request)
GetAlarm operation middleware
func (*ServerInterfaceWrapper) GetAlarms ¶
func (siw *ServerInterfaceWrapper) GetAlarms(w http.ResponseWriter, r *http.Request)
GetAlarms operation middleware
func (*ServerInterfaceWrapper) GetAllVersions ¶
func (siw *ServerInterfaceWrapper) GetAllVersions(w http.ResponseWriter, r *http.Request)
GetAllVersions operation middleware
func (*ServerInterfaceWrapper) GetMinorVersions ¶
func (siw *ServerInterfaceWrapper) GetMinorVersions(w http.ResponseWriter, r *http.Request)
GetMinorVersions operation middleware
func (*ServerInterfaceWrapper) GetServiceConfiguration ¶
func (siw *ServerInterfaceWrapper) GetServiceConfiguration(w http.ResponseWriter, r *http.Request)
GetServiceConfiguration operation middleware
func (*ServerInterfaceWrapper) GetSubscription ¶
func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *http.Request)
GetSubscription operation middleware
func (*ServerInterfaceWrapper) GetSubscriptions ¶
func (siw *ServerInterfaceWrapper) GetSubscriptions(w http.ResponseWriter, r *http.Request)
GetSubscriptions operation middleware
func (*ServerInterfaceWrapper) HwNotification ¶
func (siw *ServerInterfaceWrapper) HwNotification(w http.ResponseWriter, r *http.Request)
HwNotification operation middleware
func (*ServerInterfaceWrapper) PatchAlarm ¶
func (siw *ServerInterfaceWrapper) PatchAlarm(w http.ResponseWriter, r *http.Request)
PatchAlarm operation middleware
func (*ServerInterfaceWrapper) PatchAlarmServiceConfiguration ¶
func (siw *ServerInterfaceWrapper) PatchAlarmServiceConfiguration(w http.ResponseWriter, r *http.Request)
PatchAlarmServiceConfiguration operation middleware
func (*ServerInterfaceWrapper) UpdateAlarmServiceConfiguration ¶
func (siw *ServerInterfaceWrapper) UpdateAlarmServiceConfiguration(w http.ResponseWriter, r *http.Request)
UpdateAlarmServiceConfiguration operation middleware
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct { BaseURL string BaseRouter ServeMux Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct { RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface { // Receive Alertmanager notifications // (POST /internal/v1/caas-alerts/alertmanager) AmNotification(ctx context.Context, request AmNotificationRequestObject) (AmNotificationResponseObject, error) // Receive hardware alerts // (POST /internal/v1/hardware-alerts/{hwVendorName}) HwNotification(ctx context.Context, request HwNotificationRequestObject) (HwNotificationResponseObject, error) // Get API versions // (GET /o2ims-infrastructureMonitoring/api_versions) GetAllVersions(ctx context.Context, request GetAllVersionsRequestObject) (GetAllVersionsResponseObject, error) // Retrieve the alarm service configuration // (GET /o2ims-infrastructureMonitoring/v1/alarmServiceConfiguration) GetServiceConfiguration(ctx context.Context, request GetServiceConfigurationRequestObject) (GetServiceConfigurationResponseObject, error) // Modify individual fields of the Alarm Service Configuration. // (PATCH /o2ims-infrastructureMonitoring/v1/alarmServiceConfiguration) PatchAlarmServiceConfiguration(ctx context.Context, request PatchAlarmServiceConfigurationRequestObject) (PatchAlarmServiceConfigurationResponseObject, error) // Modify all fields of the Alarm Service Configuration. // (PUT /o2ims-infrastructureMonitoring/v1/alarmServiceConfiguration) UpdateAlarmServiceConfiguration(ctx context.Context, request UpdateAlarmServiceConfigurationRequestObject) (UpdateAlarmServiceConfigurationResponseObject, error) // Retrieve the list of alarm subscriptions // (GET /o2ims-infrastructureMonitoring/v1/alarmSubscriptions) GetSubscriptions(ctx context.Context, request GetSubscriptionsRequestObject) (GetSubscriptionsResponseObject, error) // Create a new alarm subscription // (POST /o2ims-infrastructureMonitoring/v1/alarmSubscriptions) CreateSubscription(ctx context.Context, request CreateSubscriptionRequestObject) (CreateSubscriptionResponseObject, error) // Delete exactly one subscription // (DELETE /o2ims-infrastructureMonitoring/v1/alarmSubscriptions/{alarmSubscriptionId}) DeleteSubscription(ctx context.Context, request DeleteSubscriptionRequestObject) (DeleteSubscriptionResponseObject, error) // Retrieve exactly one subscription // (GET /o2ims-infrastructureMonitoring/v1/alarmSubscriptions/{alarmSubscriptionId}) GetSubscription(ctx context.Context, request GetSubscriptionRequestObject) (GetSubscriptionResponseObject, error) // Retrieve the list of alarms // (GET /o2ims-infrastructureMonitoring/v1/alarms) GetAlarms(ctx context.Context, request GetAlarmsRequestObject) (GetAlarmsResponseObject, error) // Retrieve exactly one alarm // (GET /o2ims-infrastructureMonitoring/v1/alarms/{alarmEventRecordId}) GetAlarm(ctx context.Context, request GetAlarmRequestObject) (GetAlarmResponseObject, error) // Modify an individual alarm record // (PATCH /o2ims-infrastructureMonitoring/v1/alarms/{alarmEventRecordId}) PatchAlarm(ctx context.Context, request PatchAlarmRequestObject) (PatchAlarmResponseObject, error) // Get minor API versions // (GET /o2ims-infrastructureMonitoring/v1/api_versions) GetMinorVersions(ctx context.Context, request GetMinorVersionsRequestObject) (GetMinorVersionsResponseObject, error) }
StrictServerInterface represents all server handlers.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateAlarmServiceConfiguration200JSONResponse ¶
type UpdateAlarmServiceConfiguration200JSONResponse AlarmServiceConfiguration
func (UpdateAlarmServiceConfiguration200JSONResponse) VisitUpdateAlarmServiceConfigurationResponse ¶
func (response UpdateAlarmServiceConfiguration200JSONResponse) VisitUpdateAlarmServiceConfigurationResponse(w http.ResponseWriter) error
type UpdateAlarmServiceConfiguration400ApplicationProblemPlusJSONResponse ¶
type UpdateAlarmServiceConfiguration400ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (UpdateAlarmServiceConfiguration400ApplicationProblemPlusJSONResponse) VisitUpdateAlarmServiceConfigurationResponse ¶
func (response UpdateAlarmServiceConfiguration400ApplicationProblemPlusJSONResponse) VisitUpdateAlarmServiceConfigurationResponse(w http.ResponseWriter) error
type UpdateAlarmServiceConfiguration412ApplicationProblemPlusJSONResponse ¶
type UpdateAlarmServiceConfiguration412ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (UpdateAlarmServiceConfiguration412ApplicationProblemPlusJSONResponse) VisitUpdateAlarmServiceConfigurationResponse ¶
func (response UpdateAlarmServiceConfiguration412ApplicationProblemPlusJSONResponse) VisitUpdateAlarmServiceConfigurationResponse(w http.ResponseWriter) error
type UpdateAlarmServiceConfiguration500ApplicationProblemPlusJSONResponse ¶
type UpdateAlarmServiceConfiguration500ApplicationProblemPlusJSONResponse externalRef0.ProblemDetails
func (UpdateAlarmServiceConfiguration500ApplicationProblemPlusJSONResponse) VisitUpdateAlarmServiceConfigurationResponse ¶
func (response UpdateAlarmServiceConfiguration500ApplicationProblemPlusJSONResponse) VisitUpdateAlarmServiceConfigurationResponse(w http.ResponseWriter) error
type UpdateAlarmServiceConfigurationJSONRequestBody ¶
type UpdateAlarmServiceConfigurationJSONRequestBody = AlarmServiceConfiguration
UpdateAlarmServiceConfigurationJSONRequestBody defines body for UpdateAlarmServiceConfiguration for application/json ContentType.
type UpdateAlarmServiceConfigurationRequestObject ¶
type UpdateAlarmServiceConfigurationRequestObject struct {
Body *UpdateAlarmServiceConfigurationJSONRequestBody
}
type UpdateAlarmServiceConfigurationResponseObject ¶
type UpdateAlarmServiceConfigurationResponseObject interface {
VisitUpdateAlarmServiceConfigurationResponse(w http.ResponseWriter) error
}