api

package
v1.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

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

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 ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

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

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

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

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

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) Add

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type OperationName

type OperationName = string

OperationName is the ogen operation name

const (
	UpdateWorkflowMappingOperation         OperationName = "UpdateWorkflowMapping"
	UpdateWorkflowTransitionRulesOperation OperationName = "UpdateWorkflowTransitionRules"
)

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

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

Decode decodes WorkflowSchemeIssueTypeMappings from json.

func (OptWorkflowSchemeIssueTypeMappings) Encode

Encode encodes WorkflowSchemeIssueTypeMappings as json.

func (OptWorkflowSchemeIssueTypeMappings) Get

Get returns value and boolean that denotes whether value was set.

func (OptWorkflowSchemeIssueTypeMappings) IsSet

IsSet returns true if OptWorkflowSchemeIssueTypeMappings was set.

func (OptWorkflowSchemeIssueTypeMappings) MarshalJSON

func (s OptWorkflowSchemeIssueTypeMappings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptWorkflowSchemeIssueTypeMappings) Or

Or returns value if set, or given parameter if does not.

func (*OptWorkflowSchemeIssueTypeMappings) Reset

Reset unsets value.

func (*OptWorkflowSchemeIssueTypeMappings) SetTo

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

Decode decodes WorkflowTransitionRuleConfiguration from json.

func (OptWorkflowTransitionRuleConfiguration) Encode

Encode encodes WorkflowTransitionRuleConfiguration as json.

func (OptWorkflowTransitionRuleConfiguration) Get

Get returns value and boolean that denotes whether value was set.

func (OptWorkflowTransitionRuleConfiguration) IsSet

IsSet returns true if OptWorkflowTransitionRuleConfiguration was set.

func (OptWorkflowTransitionRuleConfiguration) MarshalJSON

func (s OptWorkflowTransitionRuleConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptWorkflowTransitionRuleConfiguration) Or

Or returns value if set, or given parameter if does not.

func (*OptWorkflowTransitionRuleConfiguration) Reset

Reset unsets value.

func (*OptWorkflowTransitionRuleConfiguration) SetTo

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

func WithAttributes(attributes ...attribute.KeyValue) Option

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) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

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.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

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

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

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

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

type WorkflowSchemeIssueTypeMappings map[string]string

func (*WorkflowSchemeIssueTypeMappings) Decode

Decode decodes WorkflowSchemeIssueTypeMappings from json.

func (WorkflowSchemeIssueTypeMappings) Encode

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

Equal compares two WorkflowTransitionRule instances for equality. The depth parameter prevents infinite recursion on nested objects.

func (*WorkflowTransitionRule) GetConfiguration

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

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

type WorkflowTransitionRuleConfiguration map[string]string

Rule configuration parameters.

func (*WorkflowTransitionRuleConfiguration) Decode

Decode decodes WorkflowTransitionRuleConfiguration from json.

func (WorkflowTransitionRuleConfiguration) Encode

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

Decode decodes WorkflowTransitionRulesUpdate from json.

func (*WorkflowTransitionRulesUpdate) Encode

Encode implements json.Marshaler.

func (*WorkflowTransitionRulesUpdate) GetWorkflows

GetWorkflows returns the value of Workflows.

func (*WorkflowTransitionRulesUpdate) MarshalJSON

func (s *WorkflowTransitionRulesUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*WorkflowTransitionRulesUpdate) SetWorkflows

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL