Documentation ¶
Overview ¶
Package oas 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 ¶
Constants ¶
This section is empty.
Variables ¶
var OpenAPIFS embed.FS
Functions ¶
func LoadSpec ¶
LoadSpec parses the spec resource, as a stand-in for the spec generation from oapi-codegen, to avoid double-embedding the YAML in the binary.
func MustLoadSpec ¶
Types ¶
type ConfiguredFault ¶ added in v0.13.52
type ConfiguredFault struct { Count int64 `json:"count"` FaultDescription *string `json:"faultDescription,omitempty"` Operation string `json:"operation"` Parameters *map[string]string `json:"parameters,omitempty"` }
ConfiguredFault defines model for ConfiguredFault.
type DeliveryDelay ¶ added in v0.13.52
type DeliveryDelay struct { // Delay Delivery delay, formatted as a Go Duration Delay sqltypes.Interval `json:"delay"` }
DeliveryDelay defines model for DeliveryDelay.
type ErrorType ¶ added in v0.13.52
type ErrorType string
ErrorType defines model for ErrorType.
const ( ContextCanceled ErrorType = "context.Canceled" ContextDeadlineExceeded ErrorType = "context.DeadlineExceeded" EntNotFound ErrorType = "ent.NotFound" GrpcAborted ErrorType = "grpc.Aborted" GrpcAlreadyExists ErrorType = "grpc.AlreadyExists" GrpcCanceled ErrorType = "grpc.Canceled" GrpcDataLoss ErrorType = "grpc.DataLoss" GrpcDeadlineExceeded ErrorType = "grpc.DeadlineExceeded" GrpcFailedPrecondition ErrorType = "grpc.FailedPrecondition" GrpcInternal ErrorType = "grpc.Internal" GrpcInvalidArgument ErrorType = "grpc.InvalidArgument" GrpcNotFound ErrorType = "grpc.NotFound" GrpcOutOfRange ErrorType = "grpc.OutOfRange" GrpcPermissionDenied ErrorType = "grpc.PermissionDenied" GrpcResourceExhausted ErrorType = "grpc.ResourceExhausted" GrpcUnauthenticated ErrorType = "grpc.Unauthenticated" GrpcUnimplemented ErrorType = "grpc.Unimplemented" GrpcUnknown ErrorType = "grpc.Unknown" )
Defines values for ErrorType.
type FaultDescription ¶ added in v0.13.52
type FaultDescription struct { Count *int64 `json:"count,omitempty"` Error ErrorType `json:"error"` Operation string `json:"operation"` Parameters *map[string]string `json:"parameters,omitempty"` }
FaultDescription defines model for FaultDescription.
type PostFaultsInjectJSONRequestBody ¶ added in v0.13.52
type PostFaultsInjectJSONRequestBody = FaultDescription
PostFaultsInjectJSONRequestBody defines body for PostFaultsInject for application/json ContentType.
type PutDelaysSubscriptionJSONRequestBody ¶ added in v0.13.52
type PutDelaysSubscriptionJSONRequestBody = DeliveryDelay
PutDelaysSubscriptionJSONRequestBody defines body for PutDelaysSubscription for application/json ContentType.
type UptimeResponse ¶ added in v0.13.52
type UptimeResponse struct { // StartTime Timestamp of when the application instance started StartTime time.Time `json:"startTime"` AdditionalProperties map[string]interface{} `json:"-"` }
UptimeResponse Response object for a successful uptime request
func (UptimeResponse) Get ¶ added in v0.13.52
func (a UptimeResponse) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for UptimeResponse. Returns the specified element and whether it was found
func (UptimeResponse) MarshalJSON ¶ added in v0.13.52
func (a UptimeResponse) MarshalJSON() ([]byte, error)
Override default JSON handling for UptimeResponse to handle AdditionalProperties
func (*UptimeResponse) Set ¶ added in v0.13.52
func (a *UptimeResponse) Set(fieldName string, value interface{})
Setter for additional properties for UptimeResponse
func (*UptimeResponse) UnmarshalJSON ¶ added in v0.13.52
func (a *UptimeResponse) UnmarshalJSON(b []byte) error
Override default JSON handling for UptimeResponse to handle AdditionalProperties