Documentation
¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type Client
- type ClientOption
- type ErrorHandler
- type Handler
- type Invoker
- type IssueTypesWorkflowMapping
- func (s *IssueTypesWorkflowMapping) Decode(d *jx.Decoder) error
- func (s *IssueTypesWorkflowMapping) Encode(e *jx.Encoder)
- func (a IssueTypesWorkflowMapping) Equal(b IssueTypesWorkflowMapping, depth int) bool
- func (s *IssueTypesWorkflowMapping) GetIssueTypes() []string
- func (s *IssueTypesWorkflowMapping) GetUpdateDraftIfNeeded() OptBool
- func (s *IssueTypesWorkflowMapping) GetWorkflowId() string
- func (a IssueTypesWorkflowMapping) Hash() uint64
- func (s *IssueTypesWorkflowMapping) MarshalJSON() ([]byte, error)
- func (s *IssueTypesWorkflowMapping) SetIssueTypes(val []string)
- func (s *IssueTypesWorkflowMapping) SetUpdateDraftIfNeeded(val OptBool)
- func (s *IssueTypesWorkflowMapping) SetWorkflowId(val string)
- func (s *IssueTypesWorkflowMapping) UnmarshalJSON(data []byte) error
- type Labeler
- type Middleware
- type OperationName
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptWorkflowSchemeIssueTypeMappings
- func (o *OptWorkflowSchemeIssueTypeMappings) Decode(d *jx.Decoder) error
- func (o OptWorkflowSchemeIssueTypeMappings) Encode(e *jx.Encoder)
- func (o OptWorkflowSchemeIssueTypeMappings) Get() (v WorkflowSchemeIssueTypeMappings, ok bool)
- func (o OptWorkflowSchemeIssueTypeMappings) IsSet() bool
- func (s OptWorkflowSchemeIssueTypeMappings) MarshalJSON() ([]byte, error)
- func (o OptWorkflowSchemeIssueTypeMappings) Or(d WorkflowSchemeIssueTypeMappings) WorkflowSchemeIssueTypeMappings
- func (o *OptWorkflowSchemeIssueTypeMappings) Reset()
- func (o *OptWorkflowSchemeIssueTypeMappings) SetTo(v WorkflowSchemeIssueTypeMappings)
- func (s *OptWorkflowSchemeIssueTypeMappings) UnmarshalJSON(data []byte) error
- type OptWorkflowTransitionRuleConfiguration
- func (o *OptWorkflowTransitionRuleConfiguration) Decode(d *jx.Decoder) error
- func (o OptWorkflowTransitionRuleConfiguration) Encode(e *jx.Encoder)
- func (o OptWorkflowTransitionRuleConfiguration) Get() (v WorkflowTransitionRuleConfiguration, ok bool)
- func (o OptWorkflowTransitionRuleConfiguration) IsSet() bool
- func (s OptWorkflowTransitionRuleConfiguration) MarshalJSON() ([]byte, error)
- func (o OptWorkflowTransitionRuleConfiguration) Or(d WorkflowTransitionRuleConfiguration) WorkflowTransitionRuleConfiguration
- func (o *OptWorkflowTransitionRuleConfiguration) Reset()
- func (o *OptWorkflowTransitionRuleConfiguration) SetTo(v WorkflowTransitionRuleConfiguration)
- func (s *OptWorkflowTransitionRuleConfiguration) UnmarshalJSON(data []byte) error
- type Option
- type Route
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type UnimplementedHandler
- func (UnimplementedHandler) UpdateWorkflowMapping(ctx context.Context, req *WorkflowSchemeAssociations, ...) (r UpdateWorkflowMappingRes, _ error)
- func (UnimplementedHandler) UpdateWorkflowTransitionRules(ctx context.Context, req *WorkflowTransitionRules) (r UpdateWorkflowTransitionRulesRes, _ error)
- type UpdateWorkflowMappingBadRequest
- type UpdateWorkflowMappingParams
- type UpdateWorkflowMappingRes
- type UpdateWorkflowTransitionRulesBadRequest
- type UpdateWorkflowTransitionRulesRes
- type WorkflowScheme
- func (s *WorkflowScheme) Decode(d *jx.Decoder) error
- func (s *WorkflowScheme) Encode(e *jx.Encoder)
- func (s *WorkflowScheme) GetDefaultWorkflow() OptString
- func (s *WorkflowScheme) GetDescription() OptString
- func (s *WorkflowScheme) GetDraft() OptBool
- func (s *WorkflowScheme) GetID() OptInt
- func (s *WorkflowScheme) GetIssueTypeMappings() OptWorkflowSchemeIssueTypeMappings
- func (s *WorkflowScheme) GetName() OptString
- func (s *WorkflowScheme) GetSelf() OptString
- func (s *WorkflowScheme) MarshalJSON() ([]byte, error)
- func (s *WorkflowScheme) SetDefaultWorkflow(val OptString)
- func (s *WorkflowScheme) SetDescription(val OptString)
- func (s *WorkflowScheme) SetDraft(val OptBool)
- func (s *WorkflowScheme) SetID(val OptInt)
- func (s *WorkflowScheme) SetIssueTypeMappings(val OptWorkflowSchemeIssueTypeMappings)
- func (s *WorkflowScheme) SetName(val OptString)
- func (s *WorkflowScheme) SetSelf(val OptString)
- func (s *WorkflowScheme) UnmarshalJSON(data []byte) error
- type WorkflowSchemeAssociations
- func (s *WorkflowSchemeAssociations) Decode(d *jx.Decoder) error
- func (s *WorkflowSchemeAssociations) Encode(e *jx.Encoder)
- func (s *WorkflowSchemeAssociations) GetDefaultWorkflowId() OptString
- func (s *WorkflowSchemeAssociations) GetIssueTypeMappings() []IssueTypesWorkflowMapping
- func (s *WorkflowSchemeAssociations) MarshalJSON() ([]byte, error)
- func (s *WorkflowSchemeAssociations) SetDefaultWorkflowId(val OptString)
- func (s *WorkflowSchemeAssociations) SetIssueTypeMappings(val []IssueTypesWorkflowMapping)
- func (s *WorkflowSchemeAssociations) UnmarshalJSON(data []byte) error
- func (s *WorkflowSchemeAssociations) Validate() error
- type WorkflowSchemeIssueTypeMappings
- type WorkflowTransitionRule
- func (s *WorkflowTransitionRule) Decode(d *jx.Decoder) error
- func (s *WorkflowTransitionRule) Encode(e *jx.Encoder)
- func (a WorkflowTransitionRule) Equal(b WorkflowTransitionRule, depth int) bool
- func (s *WorkflowTransitionRule) GetConfiguration() OptWorkflowTransitionRuleConfiguration
- func (s *WorkflowTransitionRule) GetID() OptString
- func (s *WorkflowTransitionRule) GetRuleKey() string
- func (a WorkflowTransitionRule) Hash() uint64
- func (s *WorkflowTransitionRule) MarshalJSON() ([]byte, error)
- func (s *WorkflowTransitionRule) SetConfiguration(val OptWorkflowTransitionRuleConfiguration)
- func (s *WorkflowTransitionRule) SetID(val OptString)
- func (s *WorkflowTransitionRule) SetRuleKey(val string)
- func (s *WorkflowTransitionRule) UnmarshalJSON(data []byte) error
- type WorkflowTransitionRuleConfiguration
- type WorkflowTransitionRules
- func (s *WorkflowTransitionRules) Decode(d *jx.Decoder) error
- func (s *WorkflowTransitionRules) Encode(e *jx.Encoder)
- func (s *WorkflowTransitionRules) GetConditions() []WorkflowTransitionRule
- func (s *WorkflowTransitionRules) GetPostFunctions() []WorkflowTransitionRule
- func (s *WorkflowTransitionRules) GetValidators() []WorkflowTransitionRule
- func (s *WorkflowTransitionRules) GetWorkflowId() string
- func (s *WorkflowTransitionRules) MarshalJSON() ([]byte, error)
- func (s *WorkflowTransitionRules) SetConditions(val []WorkflowTransitionRule)
- func (s *WorkflowTransitionRules) SetPostFunctions(val []WorkflowTransitionRule)
- func (s *WorkflowTransitionRules) SetValidators(val []WorkflowTransitionRule)
- func (s *WorkflowTransitionRules) SetWorkflowId(val string)
- func (s *WorkflowTransitionRules) UnmarshalJSON(data []byte) error
- func (s *WorkflowTransitionRules) Validate() error
- type WorkflowTransitionRulesUpdate
- func (s *WorkflowTransitionRulesUpdate) Decode(d *jx.Decoder) error
- func (s *WorkflowTransitionRulesUpdate) Encode(e *jx.Encoder)
- func (s *WorkflowTransitionRulesUpdate) GetWorkflows() []WorkflowTransitionRules
- func (s *WorkflowTransitionRulesUpdate) MarshalJSON() ([]byte, error)
- func (s *WorkflowTransitionRulesUpdate) SetWorkflows(val []WorkflowTransitionRules)
- func (s *WorkflowTransitionRulesUpdate) UnmarshalJSON(data []byte) error
- func (s *WorkflowTransitionRulesUpdate) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) UpdateWorkflowMapping ¶
func (c *Client) UpdateWorkflowMapping(ctx context.Context, request *WorkflowSchemeAssociations, params UpdateWorkflowMappingParams) (UpdateWorkflowMappingRes, error)
UpdateWorkflowMapping invokes updateWorkflowMapping operation.
Sets workflow mappings for a workflow scheme. Uses uniqueItems on array of IssueTypesWorkflowMapping objects.
PUT /workflowscheme/{id}/workflow
func (*Client) UpdateWorkflowTransitionRules ¶
func (c *Client) UpdateWorkflowTransitionRules(ctx context.Context, request *WorkflowTransitionRules) (UpdateWorkflowTransitionRulesRes, error)
UpdateWorkflowTransitionRules invokes updateWorkflowTransitionRules operation.
Updates workflow transition rules. This operation was previously blocked because it uses uniqueItems on an array of complex WorkflowTransitionRule objects.
PUT /workflow/transitions/rules
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type Handler ¶
type Handler interface {
// UpdateWorkflowMapping implements updateWorkflowMapping operation.
//
// Sets workflow mappings for a workflow scheme. Uses uniqueItems
// on array of IssueTypesWorkflowMapping objects.
//
// PUT /workflowscheme/{id}/workflow
UpdateWorkflowMapping(ctx context.Context, req *WorkflowSchemeAssociations, params UpdateWorkflowMappingParams) (UpdateWorkflowMappingRes, error)
// UpdateWorkflowTransitionRules implements updateWorkflowTransitionRules operation.
//
// Updates workflow transition rules. This operation was previously blocked
// because it uses uniqueItems on an array of complex WorkflowTransitionRule objects.
//
// PUT /workflow/transitions/rules
UpdateWorkflowTransitionRules(ctx context.Context, req *WorkflowTransitionRules) (UpdateWorkflowTransitionRulesRes, error)
}
Handler handles operations described by OpenAPI v3 specification.
type Invoker ¶
type Invoker interface {
// UpdateWorkflowMapping invokes updateWorkflowMapping operation.
//
// Sets workflow mappings for a workflow scheme. Uses uniqueItems
// on array of IssueTypesWorkflowMapping objects.
//
// PUT /workflowscheme/{id}/workflow
UpdateWorkflowMapping(ctx context.Context, request *WorkflowSchemeAssociations, params UpdateWorkflowMappingParams) (UpdateWorkflowMappingRes, error)
// UpdateWorkflowTransitionRules invokes updateWorkflowTransitionRules operation.
//
// Updates workflow transition rules. This operation was previously blocked
// because it uses uniqueItems on an array of complex WorkflowTransitionRule objects.
//
// PUT /workflow/transitions/rules
UpdateWorkflowTransitionRules(ctx context.Context, request *WorkflowTransitionRules) (UpdateWorkflowTransitionRulesRes, error)
}
Invoker invokes operations described by OpenAPI v3 specification.
type IssueTypesWorkflowMapping ¶
type IssueTypesWorkflowMapping struct {
// The ID of the workflow.
WorkflowId string `json:"workflowId"`
// The list of issue type IDs.
IssueTypes []string `json:"issueTypes"`
// Whether to update draft.
UpdateDraftIfNeeded OptBool `json:"updateDraftIfNeeded"`
}
Ref: #/components/schemas/IssueTypesWorkflowMapping
func (*IssueTypesWorkflowMapping) Decode ¶
func (s *IssueTypesWorkflowMapping) Decode(d *jx.Decoder) error
Decode decodes IssueTypesWorkflowMapping from json.
func (*IssueTypesWorkflowMapping) Encode ¶
func (s *IssueTypesWorkflowMapping) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (IssueTypesWorkflowMapping) Equal ¶
func (a IssueTypesWorkflowMapping) Equal(b IssueTypesWorkflowMapping, depth int) bool
Equal compares two IssueTypesWorkflowMapping instances for equality. The depth parameter prevents infinite recursion on nested objects.
func (*IssueTypesWorkflowMapping) GetIssueTypes ¶
func (s *IssueTypesWorkflowMapping) GetIssueTypes() []string
GetIssueTypes returns the value of IssueTypes.
func (*IssueTypesWorkflowMapping) GetUpdateDraftIfNeeded ¶
func (s *IssueTypesWorkflowMapping) GetUpdateDraftIfNeeded() OptBool
GetUpdateDraftIfNeeded returns the value of UpdateDraftIfNeeded.
func (*IssueTypesWorkflowMapping) GetWorkflowId ¶
func (s *IssueTypesWorkflowMapping) GetWorkflowId() string
GetWorkflowId returns the value of WorkflowId.
func (IssueTypesWorkflowMapping) Hash ¶
func (a IssueTypesWorkflowMapping) Hash() uint64
Hash computes a hash value for IssueTypesWorkflowMapping using FNV-1a. Equal objects must produce equal hashes.
func (*IssueTypesWorkflowMapping) MarshalJSON ¶
func (s *IssueTypesWorkflowMapping) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IssueTypesWorkflowMapping) SetIssueTypes ¶
func (s *IssueTypesWorkflowMapping) SetIssueTypes(val []string)
SetIssueTypes sets the value of IssueTypes.
func (*IssueTypesWorkflowMapping) SetUpdateDraftIfNeeded ¶
func (s *IssueTypesWorkflowMapping) SetUpdateDraftIfNeeded(val OptBool)
SetUpdateDraftIfNeeded sets the value of UpdateDraftIfNeeded.
func (*IssueTypesWorkflowMapping) SetWorkflowId ¶
func (s *IssueTypesWorkflowMapping) SetWorkflowId(val string)
SetWorkflowId sets the value of WorkflowId.
func (*IssueTypesWorkflowMapping) UnmarshalJSON ¶
func (s *IssueTypesWorkflowMapping) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Labeler ¶
type Labeler struct {
// contains filtered or unexported fields
}
Labeler is used to allow adding custom attributes to the server request metrics.
func LabelerFromContext ¶
LabelerFromContext retrieves the Labeler from the provided context, if present.
If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.
func (*Labeler) AttributeSet ¶
AttributeSet returns the attributes added to the Labeler as an attribute.Set.
type OperationName ¶
type OperationName = string
OperationName is the ogen operation name
const ( UpdateWorkflowMappingOperation OperationName = "UpdateWorkflowMapping" UpdateWorkflowTransitionRulesOperation OperationName = "UpdateWorkflowTransitionRules" )
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptWorkflowSchemeIssueTypeMappings ¶
type OptWorkflowSchemeIssueTypeMappings struct {
Value WorkflowSchemeIssueTypeMappings
Set bool
}
OptWorkflowSchemeIssueTypeMappings is optional WorkflowSchemeIssueTypeMappings.
func NewOptWorkflowSchemeIssueTypeMappings ¶
func NewOptWorkflowSchemeIssueTypeMappings(v WorkflowSchemeIssueTypeMappings) OptWorkflowSchemeIssueTypeMappings
NewOptWorkflowSchemeIssueTypeMappings returns new OptWorkflowSchemeIssueTypeMappings with value set to v.
func (*OptWorkflowSchemeIssueTypeMappings) Decode ¶
func (o *OptWorkflowSchemeIssueTypeMappings) Decode(d *jx.Decoder) error
Decode decodes WorkflowSchemeIssueTypeMappings from json.
func (OptWorkflowSchemeIssueTypeMappings) Encode ¶
func (o OptWorkflowSchemeIssueTypeMappings) Encode(e *jx.Encoder)
Encode encodes WorkflowSchemeIssueTypeMappings as json.
func (OptWorkflowSchemeIssueTypeMappings) Get ¶
func (o OptWorkflowSchemeIssueTypeMappings) Get() (v WorkflowSchemeIssueTypeMappings, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptWorkflowSchemeIssueTypeMappings) IsSet ¶
func (o OptWorkflowSchemeIssueTypeMappings) IsSet() bool
IsSet returns true if OptWorkflowSchemeIssueTypeMappings was set.
func (OptWorkflowSchemeIssueTypeMappings) MarshalJSON ¶
func (s OptWorkflowSchemeIssueTypeMappings) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptWorkflowSchemeIssueTypeMappings) Or ¶
func (o OptWorkflowSchemeIssueTypeMappings) Or(d WorkflowSchemeIssueTypeMappings) WorkflowSchemeIssueTypeMappings
Or returns value if set, or given parameter if does not.
func (*OptWorkflowSchemeIssueTypeMappings) Reset ¶
func (o *OptWorkflowSchemeIssueTypeMappings) Reset()
Reset unsets value.
func (*OptWorkflowSchemeIssueTypeMappings) SetTo ¶
func (o *OptWorkflowSchemeIssueTypeMappings) SetTo(v WorkflowSchemeIssueTypeMappings)
SetTo sets value to v.
func (*OptWorkflowSchemeIssueTypeMappings) UnmarshalJSON ¶
func (s *OptWorkflowSchemeIssueTypeMappings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptWorkflowTransitionRuleConfiguration ¶
type OptWorkflowTransitionRuleConfiguration struct {
Value WorkflowTransitionRuleConfiguration
Set bool
}
OptWorkflowTransitionRuleConfiguration is optional WorkflowTransitionRuleConfiguration.
func NewOptWorkflowTransitionRuleConfiguration ¶
func NewOptWorkflowTransitionRuleConfiguration(v WorkflowTransitionRuleConfiguration) OptWorkflowTransitionRuleConfiguration
NewOptWorkflowTransitionRuleConfiguration returns new OptWorkflowTransitionRuleConfiguration with value set to v.
func (*OptWorkflowTransitionRuleConfiguration) Decode ¶
func (o *OptWorkflowTransitionRuleConfiguration) Decode(d *jx.Decoder) error
Decode decodes WorkflowTransitionRuleConfiguration from json.
func (OptWorkflowTransitionRuleConfiguration) Encode ¶
func (o OptWorkflowTransitionRuleConfiguration) Encode(e *jx.Encoder)
Encode encodes WorkflowTransitionRuleConfiguration as json.
func (OptWorkflowTransitionRuleConfiguration) Get ¶
func (o OptWorkflowTransitionRuleConfiguration) Get() (v WorkflowTransitionRuleConfiguration, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptWorkflowTransitionRuleConfiguration) IsSet ¶
func (o OptWorkflowTransitionRuleConfiguration) IsSet() bool
IsSet returns true if OptWorkflowTransitionRuleConfiguration was set.
func (OptWorkflowTransitionRuleConfiguration) MarshalJSON ¶
func (s OptWorkflowTransitionRuleConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptWorkflowTransitionRuleConfiguration) Or ¶
func (o OptWorkflowTransitionRuleConfiguration) Or(d WorkflowTransitionRuleConfiguration) WorkflowTransitionRuleConfiguration
Or returns value if set, or given parameter if does not.
func (*OptWorkflowTransitionRuleConfiguration) Reset ¶
func (o *OptWorkflowTransitionRuleConfiguration) Reset()
Reset unsets value.
func (*OptWorkflowTransitionRuleConfiguration) SetTo ¶
func (o *OptWorkflowTransitionRuleConfiguration) SetTo(v WorkflowTransitionRuleConfiguration)
SetTo sets value to v.
func (*OptWorkflowTransitionRuleConfiguration) UnmarshalJSON ¶
func (s *OptWorkflowTransitionRuleConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface {
ServerOption
ClientOption
}
Option is config option.
func WithAttributes ¶
WithAttributes specifies default otel attributes.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
func NewServer ¶
func NewServer(h Handler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) UpdateWorkflowMapping ¶
func (UnimplementedHandler) UpdateWorkflowMapping(ctx context.Context, req *WorkflowSchemeAssociations, params UpdateWorkflowMappingParams) (r UpdateWorkflowMappingRes, _ error)
UpdateWorkflowMapping implements updateWorkflowMapping operation.
Sets workflow mappings for a workflow scheme. Uses uniqueItems on array of IssueTypesWorkflowMapping objects.
PUT /workflowscheme/{id}/workflow
func (UnimplementedHandler) UpdateWorkflowTransitionRules ¶
func (UnimplementedHandler) UpdateWorkflowTransitionRules(ctx context.Context, req *WorkflowTransitionRules) (r UpdateWorkflowTransitionRulesRes, _ error)
UpdateWorkflowTransitionRules implements updateWorkflowTransitionRules operation.
Updates workflow transition rules. This operation was previously blocked because it uses uniqueItems on an array of complex WorkflowTransitionRule objects.
PUT /workflow/transitions/rules
type UpdateWorkflowMappingBadRequest ¶
type UpdateWorkflowMappingBadRequest struct{}
UpdateWorkflowMappingBadRequest is response for UpdateWorkflowMapping operation.
type UpdateWorkflowMappingParams ¶
type UpdateWorkflowMappingParams struct {
ID int
}
UpdateWorkflowMappingParams is parameters of updateWorkflowMapping operation.
type UpdateWorkflowMappingRes ¶
type UpdateWorkflowMappingRes interface {
// contains filtered or unexported methods
}
type UpdateWorkflowTransitionRulesBadRequest ¶
type UpdateWorkflowTransitionRulesBadRequest struct{}
UpdateWorkflowTransitionRulesBadRequest is response for UpdateWorkflowTransitionRules operation.
type UpdateWorkflowTransitionRulesRes ¶
type UpdateWorkflowTransitionRulesRes interface {
// contains filtered or unexported methods
}
type WorkflowScheme ¶
type WorkflowScheme struct {
ID OptInt `json:"id"`
Name OptString `json:"name"`
Description OptString `json:"description"`
DefaultWorkflow OptString `json:"defaultWorkflow"`
IssueTypeMappings OptWorkflowSchemeIssueTypeMappings `json:"issueTypeMappings"`
Draft OptBool `json:"draft"`
Self OptString `json:"self"`
}
Ref: #/components/schemas/WorkflowScheme
func (*WorkflowScheme) Decode ¶
func (s *WorkflowScheme) Decode(d *jx.Decoder) error
Decode decodes WorkflowScheme from json.
func (*WorkflowScheme) Encode ¶
func (s *WorkflowScheme) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*WorkflowScheme) GetDefaultWorkflow ¶
func (s *WorkflowScheme) GetDefaultWorkflow() OptString
GetDefaultWorkflow returns the value of DefaultWorkflow.
func (*WorkflowScheme) GetDescription ¶
func (s *WorkflowScheme) GetDescription() OptString
GetDescription returns the value of Description.
func (*WorkflowScheme) GetDraft ¶
func (s *WorkflowScheme) GetDraft() OptBool
GetDraft returns the value of Draft.
func (*WorkflowScheme) GetID ¶
func (s *WorkflowScheme) GetID() OptInt
GetID returns the value of ID.
func (*WorkflowScheme) GetIssueTypeMappings ¶
func (s *WorkflowScheme) GetIssueTypeMappings() OptWorkflowSchemeIssueTypeMappings
GetIssueTypeMappings returns the value of IssueTypeMappings.
func (*WorkflowScheme) GetName ¶
func (s *WorkflowScheme) GetName() OptString
GetName returns the value of Name.
func (*WorkflowScheme) GetSelf ¶
func (s *WorkflowScheme) GetSelf() OptString
GetSelf returns the value of Self.
func (*WorkflowScheme) MarshalJSON ¶
func (s *WorkflowScheme) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*WorkflowScheme) SetDefaultWorkflow ¶
func (s *WorkflowScheme) SetDefaultWorkflow(val OptString)
SetDefaultWorkflow sets the value of DefaultWorkflow.
func (*WorkflowScheme) SetDescription ¶
func (s *WorkflowScheme) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*WorkflowScheme) SetDraft ¶
func (s *WorkflowScheme) SetDraft(val OptBool)
SetDraft sets the value of Draft.
func (*WorkflowScheme) SetID ¶
func (s *WorkflowScheme) SetID(val OptInt)
SetID sets the value of ID.
func (*WorkflowScheme) SetIssueTypeMappings ¶
func (s *WorkflowScheme) SetIssueTypeMappings(val OptWorkflowSchemeIssueTypeMappings)
SetIssueTypeMappings sets the value of IssueTypeMappings.
func (*WorkflowScheme) SetName ¶
func (s *WorkflowScheme) SetName(val OptString)
SetName sets the value of Name.
func (*WorkflowScheme) SetSelf ¶
func (s *WorkflowScheme) SetSelf(val OptString)
SetSelf sets the value of Self.
func (*WorkflowScheme) UnmarshalJSON ¶
func (s *WorkflowScheme) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type WorkflowSchemeAssociations ¶
type WorkflowSchemeAssociations struct {
IssueTypeMappings []IssueTypesWorkflowMapping `json:"issueTypeMappings"`
DefaultWorkflowId OptString `json:"defaultWorkflowId"`
}
Ref: #/components/schemas/WorkflowSchemeAssociations
func (*WorkflowSchemeAssociations) Decode ¶
func (s *WorkflowSchemeAssociations) Decode(d *jx.Decoder) error
Decode decodes WorkflowSchemeAssociations from json.
func (*WorkflowSchemeAssociations) Encode ¶
func (s *WorkflowSchemeAssociations) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*WorkflowSchemeAssociations) GetDefaultWorkflowId ¶
func (s *WorkflowSchemeAssociations) GetDefaultWorkflowId() OptString
GetDefaultWorkflowId returns the value of DefaultWorkflowId.
func (*WorkflowSchemeAssociations) GetIssueTypeMappings ¶
func (s *WorkflowSchemeAssociations) GetIssueTypeMappings() []IssueTypesWorkflowMapping
GetIssueTypeMappings returns the value of IssueTypeMappings.
func (*WorkflowSchemeAssociations) MarshalJSON ¶
func (s *WorkflowSchemeAssociations) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*WorkflowSchemeAssociations) SetDefaultWorkflowId ¶
func (s *WorkflowSchemeAssociations) SetDefaultWorkflowId(val OptString)
SetDefaultWorkflowId sets the value of DefaultWorkflowId.
func (*WorkflowSchemeAssociations) SetIssueTypeMappings ¶
func (s *WorkflowSchemeAssociations) SetIssueTypeMappings(val []IssueTypesWorkflowMapping)
SetIssueTypeMappings sets the value of IssueTypeMappings.
func (*WorkflowSchemeAssociations) UnmarshalJSON ¶
func (s *WorkflowSchemeAssociations) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*WorkflowSchemeAssociations) Validate ¶
func (s *WorkflowSchemeAssociations) Validate() error
type WorkflowSchemeIssueTypeMappings ¶
func (*WorkflowSchemeIssueTypeMappings) Decode ¶
func (s *WorkflowSchemeIssueTypeMappings) Decode(d *jx.Decoder) error
Decode decodes WorkflowSchemeIssueTypeMappings from json.
func (WorkflowSchemeIssueTypeMappings) Encode ¶
func (s WorkflowSchemeIssueTypeMappings) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (WorkflowSchemeIssueTypeMappings) MarshalJSON ¶
func (s WorkflowSchemeIssueTypeMappings) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*WorkflowSchemeIssueTypeMappings) UnmarshalJSON ¶
func (s *WorkflowSchemeIssueTypeMappings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type WorkflowTransitionRule ¶
type WorkflowTransitionRule struct {
// The key of the rule.
RuleKey string `json:"ruleKey"`
// Rule configuration parameters.
Configuration OptWorkflowTransitionRuleConfiguration `json:"configuration"`
// The ID of the transition rule.
ID OptString `json:"id"`
}
Ref: #/components/schemas/WorkflowTransitionRule
func (*WorkflowTransitionRule) Decode ¶
func (s *WorkflowTransitionRule) Decode(d *jx.Decoder) error
Decode decodes WorkflowTransitionRule from json.
func (*WorkflowTransitionRule) Encode ¶
func (s *WorkflowTransitionRule) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (WorkflowTransitionRule) Equal ¶
func (a WorkflowTransitionRule) Equal(b WorkflowTransitionRule, depth int) bool
Equal compares two WorkflowTransitionRule instances for equality. The depth parameter prevents infinite recursion on nested objects.
func (*WorkflowTransitionRule) GetConfiguration ¶
func (s *WorkflowTransitionRule) GetConfiguration() OptWorkflowTransitionRuleConfiguration
GetConfiguration returns the value of Configuration.
func (*WorkflowTransitionRule) GetID ¶
func (s *WorkflowTransitionRule) GetID() OptString
GetID returns the value of ID.
func (*WorkflowTransitionRule) GetRuleKey ¶
func (s *WorkflowTransitionRule) GetRuleKey() string
GetRuleKey returns the value of RuleKey.
func (WorkflowTransitionRule) Hash ¶
func (a WorkflowTransitionRule) Hash() uint64
Hash computes a hash value for WorkflowTransitionRule using FNV-1a. Equal objects must produce equal hashes.
func (*WorkflowTransitionRule) MarshalJSON ¶
func (s *WorkflowTransitionRule) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*WorkflowTransitionRule) SetConfiguration ¶
func (s *WorkflowTransitionRule) SetConfiguration(val OptWorkflowTransitionRuleConfiguration)
SetConfiguration sets the value of Configuration.
func (*WorkflowTransitionRule) SetID ¶
func (s *WorkflowTransitionRule) SetID(val OptString)
SetID sets the value of ID.
func (*WorkflowTransitionRule) SetRuleKey ¶
func (s *WorkflowTransitionRule) SetRuleKey(val string)
SetRuleKey sets the value of RuleKey.
func (*WorkflowTransitionRule) UnmarshalJSON ¶
func (s *WorkflowTransitionRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type WorkflowTransitionRuleConfiguration ¶
Rule configuration parameters.
func (*WorkflowTransitionRuleConfiguration) Decode ¶
func (s *WorkflowTransitionRuleConfiguration) Decode(d *jx.Decoder) error
Decode decodes WorkflowTransitionRuleConfiguration from json.
func (WorkflowTransitionRuleConfiguration) Encode ¶
func (s WorkflowTransitionRuleConfiguration) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (WorkflowTransitionRuleConfiguration) MarshalJSON ¶
func (s WorkflowTransitionRuleConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*WorkflowTransitionRuleConfiguration) UnmarshalJSON ¶
func (s *WorkflowTransitionRuleConfiguration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type WorkflowTransitionRules ¶
type WorkflowTransitionRules struct {
WorkflowId string `json:"workflowId"`
PostFunctions []WorkflowTransitionRule `json:"postFunctions"`
Conditions []WorkflowTransitionRule `json:"conditions"`
Validators []WorkflowTransitionRule `json:"validators"`
}
Ref: #/components/schemas/WorkflowTransitionRules
func (*WorkflowTransitionRules) Decode ¶
func (s *WorkflowTransitionRules) Decode(d *jx.Decoder) error
Decode decodes WorkflowTransitionRules from json.
func (*WorkflowTransitionRules) Encode ¶
func (s *WorkflowTransitionRules) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*WorkflowTransitionRules) GetConditions ¶
func (s *WorkflowTransitionRules) GetConditions() []WorkflowTransitionRule
GetConditions returns the value of Conditions.
func (*WorkflowTransitionRules) GetPostFunctions ¶
func (s *WorkflowTransitionRules) GetPostFunctions() []WorkflowTransitionRule
GetPostFunctions returns the value of PostFunctions.
func (*WorkflowTransitionRules) GetValidators ¶
func (s *WorkflowTransitionRules) GetValidators() []WorkflowTransitionRule
GetValidators returns the value of Validators.
func (*WorkflowTransitionRules) GetWorkflowId ¶
func (s *WorkflowTransitionRules) GetWorkflowId() string
GetWorkflowId returns the value of WorkflowId.
func (*WorkflowTransitionRules) MarshalJSON ¶
func (s *WorkflowTransitionRules) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*WorkflowTransitionRules) SetConditions ¶
func (s *WorkflowTransitionRules) SetConditions(val []WorkflowTransitionRule)
SetConditions sets the value of Conditions.
func (*WorkflowTransitionRules) SetPostFunctions ¶
func (s *WorkflowTransitionRules) SetPostFunctions(val []WorkflowTransitionRule)
SetPostFunctions sets the value of PostFunctions.
func (*WorkflowTransitionRules) SetValidators ¶
func (s *WorkflowTransitionRules) SetValidators(val []WorkflowTransitionRule)
SetValidators sets the value of Validators.
func (*WorkflowTransitionRules) SetWorkflowId ¶
func (s *WorkflowTransitionRules) SetWorkflowId(val string)
SetWorkflowId sets the value of WorkflowId.
func (*WorkflowTransitionRules) UnmarshalJSON ¶
func (s *WorkflowTransitionRules) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*WorkflowTransitionRules) Validate ¶
func (s *WorkflowTransitionRules) Validate() error
type WorkflowTransitionRulesUpdate ¶
type WorkflowTransitionRulesUpdate struct {
Workflows []WorkflowTransitionRules `json:"workflows"`
}
Ref: #/components/schemas/WorkflowTransitionRulesUpdate
func (*WorkflowTransitionRulesUpdate) Decode ¶
func (s *WorkflowTransitionRulesUpdate) Decode(d *jx.Decoder) error
Decode decodes WorkflowTransitionRulesUpdate from json.
func (*WorkflowTransitionRulesUpdate) Encode ¶
func (s *WorkflowTransitionRulesUpdate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*WorkflowTransitionRulesUpdate) GetWorkflows ¶
func (s *WorkflowTransitionRulesUpdate) GetWorkflows() []WorkflowTransitionRules
GetWorkflows returns the value of Workflows.
func (*WorkflowTransitionRulesUpdate) MarshalJSON ¶
func (s *WorkflowTransitionRulesUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*WorkflowTransitionRulesUpdate) SetWorkflows ¶
func (s *WorkflowTransitionRulesUpdate) SetWorkflows(val []WorkflowTransitionRules)
SetWorkflows sets the value of Workflows.
func (*WorkflowTransitionRulesUpdate) UnmarshalJSON ¶
func (s *WorkflowTransitionRulesUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*WorkflowTransitionRulesUpdate) Validate ¶
func (s *WorkflowTransitionRulesUpdate) Validate() error
Source Files
¶
- api_validators_unique_gen.go
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_issue_types_workflow_mapping_equal_gen.go
- oas_issue_types_workflow_mapping_hash_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_operations_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go
- oas_workflow_transition_rule_equal_gen.go
- oas_workflow_transition_rule_hash_gen.go