model

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionEnum

type ActionEnum string

ActionEnum action enum

swagger:model ActionEnum

const (

	// ActionEnumIMMEDIATE captures enum value "IMMEDIATE"
	ActionEnumIMMEDIATE ActionEnum = "IMMEDIATE"

	// ActionEnumWAIT captures enum value "WAIT"
	ActionEnumWAIT ActionEnum = "WAIT"
)

func NewActionEnum

func NewActionEnum(value ActionEnum) *ActionEnum

func (ActionEnum) ContextValidate

func (m ActionEnum) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this action enum based on context it is used

func (ActionEnum) Pointer

func (m ActionEnum) Pointer() *ActionEnum

Pointer returns a pointer to a freshly-allocated ActionEnum.

func (ActionEnum) Validate

func (m ActionEnum) Validate(formats strfmt.Registry) error

Validate validates this action enum

type EligibleEnum

type EligibleEnum string

EligibleEnum eligible enum

swagger:model EligibleEnum

const (

	// EligibleEnumCLIENT captures enum value "CLIENT"
	EligibleEnumCLIENT EligibleEnum = "CLIENT"

	// EligibleEnumWFX captures enum value "WFX"
	EligibleEnumWFX EligibleEnum = "WFX"
)

func NewEligibleEnum

func NewEligibleEnum(value EligibleEnum) *EligibleEnum

func (EligibleEnum) ContextValidate

func (m EligibleEnum) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this eligible enum based on context it is used

func (EligibleEnum) Pointer

func (m EligibleEnum) Pointer() *EligibleEnum

Pointer returns a pointer to a freshly-allocated EligibleEnum.

func (EligibleEnum) Validate

func (m EligibleEnum) Validate(formats strfmt.Registry) error

Validate validates this eligible enum

type Error

type Error struct {

	// Identifier code for the reason of the error
	Code string `json:"code,omitempty"`

	// Log correlation ID
	Logref string `json:"logref,omitempty"`

	// Error message
	Message string `json:"message,omitempty"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type ErrorResponse

type ErrorResponse struct {

	// errors
	// Max Items: 128
	Errors []*Error `json:"errors"`
}

ErrorResponse error response

swagger:model ErrorResponse

func (*ErrorResponse) ContextValidate

func (m *ErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error response based on the context it is used

func (*ErrorResponse) MarshalBinary

func (m *ErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

func (m *ErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type Group

type Group struct {

	// description
	// Example: Description of the group
	Description string `json:"description,omitempty"`

	// name
	// Example: OPEN
	// Required: true
	Name string `json:"name"`

	// A list of states belonging to this group
	// Required: true
	// Max Items: 4096
	// Min Items: 1
	States []string `json:"states"`
}

Group group

swagger:model Group

func (*Group) ContextValidate

func (m *Group) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this group based on context it is used

func (*Group) MarshalBinary

func (m *Group) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Group) UnmarshalBinary

func (m *Group) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Group) Validate

func (m *Group) Validate(formats strfmt.Registry) error

Validate validates this group

type History

type History struct {

	// definition
	// Example: { \"userDefined\": {} }\n
	Definition map[string]interface{} `json:"definition,omitempty"`

	// Date and time (ISO8601) when the job was modified (set by wfx)
	// Read Only: true
	// Format: date-time
	Mtime strfmt.DateTime `json:"mtime,omitempty"`

	// A previous job status
	Status *JobStatus `json:"status,omitempty"`
}

History history

swagger:model History

func (*History) ContextValidate

func (m *History) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this history based on the context it is used

func (*History) MarshalBinary

func (m *History) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*History) UnmarshalBinary

func (m *History) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*History) Validate

func (m *History) Validate(formats strfmt.Registry) error

Validate validates this history

type Job

type Job struct {

	// client Id
	// Example: client42
	ClientID string `json:"clientId,omitempty"`

	// definition
	// Example: { \"userDefined\": {} }\n
	Definition map[string]interface{} `json:"definition,omitempty"`

	// The job's history. Last in, first out (LIFO). Array is truncated if its length exceeds the maximum allowed length.
	// By default, the job history is omitted from responses unless explicitly requested by the client (see the `history` URL parameter).
	//
	// Max Items: 8192
	History []*History `json:"history,omitempty"`

	// Unique job ID (wfx-generated)
	// Example: 3307e5cb-074c-49b7-99d4-5e61839a4c2d
	// Read Only: true
	// Max Length: 36
	ID string `json:"id,omitempty"`

	// Date and time (ISO8601) when the job was last modified (set by wfx)
	// Read Only: true
	// Format: date-time
	Mtime *strfmt.DateTime `json:"mtime,omitempty"`

	// status
	Status *JobStatus `json:"status,omitempty"`

	// Date and time (ISO8601) when the job was created (set by wfx). Although stime conceptually always exists, it's nullable because we don't want to serialize stime in some cases (e.g. for job events).
	// Read Only: true
	// Format: date-time
	Stime *strfmt.DateTime `json:"stime,omitempty"`

	// tags
	Tags []string `json:"tags,omitempty"`

	// workflow
	Workflow *Workflow `json:"workflow,omitempty"`
}

Job job

swagger:model Job

func (*Job) ContextValidate

func (m *Job) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this job based on the context it is used

func (*Job) MarshalBinary

func (m *Job) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Job) UnmarshalBinary

func (m *Job) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Job) Validate

func (m *Job) Validate(formats strfmt.Registry) error

Validate validates this job

type JobRequest

type JobRequest struct {

	// Create job for the given client ID
	// Example: client42
	// Required: true
	ClientID string `json:"clientId"`

	// The existing job definition will be replaced with this if this property is not empty.
	// Example: { \"userDefined\": {} }\n
	Definition map[string]interface{} `json:"definition,omitempty"`

	// tags
	// Max Items: 16
	Tags []string `json:"tags"`

	// Workflow name
	// Example: wfx.workflow.dau.direct
	// Required: true
	Workflow string `json:"workflow"`
}

JobRequest job request

swagger:model JobRequest

func (*JobRequest) ContextValidate

func (m *JobRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this job request based on context it is used

func (*JobRequest) MarshalBinary

func (m *JobRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JobRequest) UnmarshalBinary

func (m *JobRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobRequest) Validate

func (m *JobRequest) Validate(formats strfmt.Registry) error

Validate validates this job request

type JobStatus

type JobStatus struct {

	// Client which sent the status update
	// Example: client42
	ClientID string `json:"clientId,omitempty"`

	// Client-specific JSON object to report additional context information such as error details, stack traces, etc
	// Example: {\n  \"lines\": [ \"line1\", \"line2\" ]\n}\n
	Context map[string]interface{} `json:"context,omitempty"`

	// Job definition hash
	// Read Only: true
	// Max Length: 64
	DefinitionHash string `json:"definitionHash,omitempty"`

	// Reason message/info, free text from client
	// Max Length: 1024
	Message string `json:"message,omitempty"`

	// Current job progress percentage
	// Maximum: 100
	Progress int32 `json:"progress,omitempty"`

	// Name of the new workflow state
	// Example: END
	// Required: true
	State string `json:"state"`
}

JobStatus Job status information

swagger:model JobStatus

func (*JobStatus) ContextValidate

func (m *JobStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this job status based on the context it is used

func (*JobStatus) MarshalBinary

func (m *JobStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JobStatus) UnmarshalBinary

func (m *JobStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobStatus) Validate

func (m *JobStatus) Validate(formats strfmt.Registry) error

Validate validates this job status

type PaginatedJobList

type PaginatedJobList struct {

	// content
	Content []*Job `json:"content"`

	// pagination
	Pagination *PaginatedJobListPagination `json:"pagination,omitempty"`
}

PaginatedJobList Paginated list of jobs

swagger:model PaginatedJobList

func (*PaginatedJobList) ContextValidate

func (m *PaginatedJobList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this paginated job list based on the context it is used

func (*PaginatedJobList) MarshalBinary

func (m *PaginatedJobList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaginatedJobList) UnmarshalBinary

func (m *PaginatedJobList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaginatedJobList) Validate

func (m *PaginatedJobList) Validate(formats strfmt.Registry) error

Validate validates this paginated job list

type PaginatedJobListPagination

type PaginatedJobListPagination struct {

	// the maximum number of items to return
	// Example: 20
	Limit int32 `json:"limit,omitempty"`

	// the number of items to skip before starting to return results
	// Example: 0
	Offset int64 `json:"offset,omitempty"`

	// the total number of items
	// Example: 1000
	Total int64 `json:"total,omitempty"`
}

PaginatedJobListPagination paginated job list pagination

swagger:model PaginatedJobListPagination

func (*PaginatedJobListPagination) ContextValidate

func (m *PaginatedJobListPagination) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this paginated job list pagination based on context it is used

func (*PaginatedJobListPagination) MarshalBinary

func (m *PaginatedJobListPagination) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaginatedJobListPagination) UnmarshalBinary

func (m *PaginatedJobListPagination) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaginatedJobListPagination) Validate

func (m *PaginatedJobListPagination) Validate(formats strfmt.Registry) error

Validate validates this paginated job list pagination

type PaginatedWorkflowList

type PaginatedWorkflowList struct {

	// content
	Content []*Workflow `json:"content"`

	// pagination
	Pagination *PaginatedWorkflowListPagination `json:"pagination,omitempty"`
}

PaginatedWorkflowList Paginated list of workflows

swagger:model PaginatedWorkflowList

func (*PaginatedWorkflowList) ContextValidate

func (m *PaginatedWorkflowList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this paginated workflow list based on the context it is used

func (*PaginatedWorkflowList) MarshalBinary

func (m *PaginatedWorkflowList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaginatedWorkflowList) UnmarshalBinary

func (m *PaginatedWorkflowList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaginatedWorkflowList) Validate

func (m *PaginatedWorkflowList) Validate(formats strfmt.Registry) error

Validate validates this paginated workflow list

type PaginatedWorkflowListPagination

type PaginatedWorkflowListPagination struct {

	// the maximum number of items to return
	// Example: 20
	Limit int32 `json:"limit,omitempty"`

	// the number of items to skip before starting to return results
	// Example: 0
	Offset int64 `json:"offset,omitempty"`

	// the total number of items
	// Example: 1000
	Total int64 `json:"total,omitempty"`
}

PaginatedWorkflowListPagination paginated workflow list pagination

swagger:model PaginatedWorkflowListPagination

func (*PaginatedWorkflowListPagination) ContextValidate

func (m *PaginatedWorkflowListPagination) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this paginated workflow list pagination based on context it is used

func (*PaginatedWorkflowListPagination) MarshalBinary

func (m *PaginatedWorkflowListPagination) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaginatedWorkflowListPagination) UnmarshalBinary

func (m *PaginatedWorkflowListPagination) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaginatedWorkflowListPagination) Validate

Validate validates this paginated workflow list pagination

type State

type State struct {

	// description
	// Example: Description of the state
	Description string `json:"description,omitempty"`

	// name
	// Example: START
	// Required: true
	Name string `json:"name"`
}

State state

swagger:model State

func (*State) ContextValidate

func (m *State) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this state based on context it is used

func (*State) MarshalBinary

func (m *State) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*State) UnmarshalBinary

func (m *State) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*State) Validate

func (m *State) Validate(formats strfmt.Registry) error

Validate validates this state

type Transition

type Transition struct {

	// The transition execution action (default: WAIT)
	// Example: WAIT
	Action ActionEnum `json:"action,omitempty"`

	// description
	// Example: Description of the transition
	Description string `json:"description,omitempty"`

	// The entity that may execute the transition
	// Example: CLIENT
	// Required: true
	Eligible EligibleEnum `json:"eligible"`

	// from
	// Example: START
	// Required: true
	From string `json:"from"`

	// to
	// Example: END
	// Required: true
	To string `json:"to"`
}

Transition transition

swagger:model Transition

func (*Transition) ContextValidate

func (m *Transition) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this transition based on the context it is used

func (*Transition) MarshalBinary

func (m *Transition) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Transition) UnmarshalBinary

func (m *Transition) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Transition) Validate

func (m *Transition) Validate(formats strfmt.Registry) error

Validate validates this transition

type Workflow

type Workflow struct {

	// Description of the workflow
	// Example: This is a workflow
	// Max Length: 1024
	Description string `json:"description,omitempty"`

	// groups
	// Max Items: 1024
	Groups []*Group `json:"groups,omitempty"`

	// User provided unique workflow name
	// Example: wfx.workflow.dau.direct
	// Required: true
	// Max Length: 64
	// Min Length: 1
	// Pattern: ^[a-zA-Z0-9\-\.]+$
	Name string `json:"name"`

	// states
	// Max Items: 4096
	States []*State `json:"states,omitempty"`

	// transitions
	// Max Items: 16384
	Transitions []*Transition `json:"transitions,omitempty"`
}

Workflow workflow

swagger:model Workflow

func (*Workflow) ContextValidate

func (m *Workflow) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this workflow based on the context it is used

func (*Workflow) MarshalBinary

func (m *Workflow) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Workflow) UnmarshalBinary

func (m *Workflow) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Workflow) Validate

func (m *Workflow) Validate(formats strfmt.Registry) error

Validate validates this workflow

Jump to

Keyboard shortcuts

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