models

package
v0.0.0-...-3c86364 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DirEntryTypeRegular captures enum value "regular"
	DirEntryTypeRegular string = "regular"

	// DirEntryTypeDir captures enum value "dir"
	DirEntryTypeDir string = "dir"

	// DirEntryTypeSymlink captures enum value "symlink"
	DirEntryTypeSymlink string = "symlink"

	// DirEntryTypeUnknown captures enum value "unknown"
	DirEntryTypeUnknown string = "unknown"
)
View Source
const (

	// JobStatusStatusScheduled captures enum value "scheduled"
	JobStatusStatusScheduled string = "scheduled"

	// JobStatusStatusPending captures enum value "pending"
	JobStatusStatusPending string = "pending"

	// JobStatusStatusActive captures enum value "active"
	JobStatusStatusActive string = "active"

	// JobStatusStatusRetry captures enum value "retry"
	JobStatusStatusRetry string = "retry"

	// JobStatusStatusCompleted captures enum value "completed"
	JobStatusStatusCompleted string = "completed"

	// JobStatusStatusArchived captures enum value "archived"
	JobStatusStatusArchived string = "archived"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {

	// iRODS namespace for the collection
	// Required: true
	CollName *string `json:"collName"`
}

Collection JSON object of a RDR collection

swagger:model collection

func (*Collection) ContextValidate

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

ContextValidate validates this collection based on context it is used

func (*Collection) MarshalBinary

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

MarshalBinary interface implementation

func (*Collection) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Collection) Validate

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

Validate validates this collection

type DirEntry

type DirEntry struct {

	// name of the entry
	// Required: true
	Name *string `json:"name"`

	// size of the entry in bytes
	// Required: true
	Size *int64 `json:"size"`

	// type of the entry
	// Required: true
	// Enum: [regular dir symlink unknown]
	Type *string `json:"type"`
}

DirEntry directory entry

swagger:model dirEntry

func (*DirEntry) ContextValidate

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

ContextValidate validates this dir entry based on context it is used

func (*DirEntry) MarshalBinary

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

MarshalBinary interface implementation

func (*DirEntry) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DirEntry) Validate

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

Validate validates this dir entry

type DirPath

type DirPath struct {

	// path of the directory
	// Required: true
	Path *string `json:"path"`
}

DirPath directory path data

swagger:model dirPath

func (*DirPath) ContextValidate

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

ContextValidate validates this dir path based on context it is used

func (*DirPath) MarshalBinary

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

MarshalBinary interface implementation

func (*DirPath) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DirPath) Validate

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

Validate validates this dir path

type JobData

type JobData struct {

	// password of the DR data-access account
	DrPass string `json:"drPass,omitempty"`

	// username of the DR data-access account
	// Required: true
	DrUser *string `json:"drUser"`

	// path or DR namespace (prefixed with irods:) of the destination endpoint
	// Required: true
	DstURL *string `json:"dstURL"`

	// path or DR namespace (prefixed with irods:) of the source endpoint
	// Required: true
	SrcURL *string `json:"srcURL"`

	// username of the stager user
	// Required: true
	StagerUser *string `json:"stagerUser"`

	// email of the stager user
	// Format: email
	StagerUserEmail strfmt.Email `json:"stagerUserEmail,omitempty"`

	// allowed duration in seconds for entire transfer job (0 for no timeout)
	Timeout int64 `json:"timeout,omitempty"`

	// allowed duration in seconds for no further transfer progress (0 for no timeout)
	TimeoutNoprogress int64 `json:"timeout_noprogress,omitempty"`

	// short description about the job
	// Required: true
	Title *string `json:"title"`
}

JobData job data

swagger:model jobData

func (*JobData) ContextValidate

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

ContextValidate validates this job data based on context it is used

func (*JobData) MarshalBinary

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

MarshalBinary interface implementation

func (*JobData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*JobData) Validate

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

Validate validates this job data

type JobID

type JobID string

JobID identifier for scheduled background tasks.

swagger:model jobID

func (JobID) ContextValidate

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

ContextValidate validates this job ID based on context it is used

func (JobID) Validate

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

Validate validates this job ID

type JobInfo

type JobInfo struct {

	// data
	// Required: true
	Data *JobData `json:"data"`

	// id
	// Required: true
	ID *JobID `json:"id"`

	// status
	// Required: true
	Status *JobStatus `json:"status"`

	// timestamps
	// Required: true
	Timestamps *JobTimestamps `json:"timestamps"`
}

JobInfo JSON object containing scheduled job information.

swagger:model jobInfo

func (*JobInfo) ContextValidate

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

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

func (*JobInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*JobInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*JobInfo) Validate

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

Validate validates this job info

type JobProgress

type JobProgress struct {

	// number of failed files
	// Required: true
	Failed *int64 `json:"failed"`

	// number of processed files
	// Required: true
	Processed *int64 `json:"processed"`

	// number of total files to be processed
	// Required: true
	Total *int64 `json:"total"`
}

JobProgress job progress information

swagger:model jobProgress

func (*JobProgress) ContextValidate

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

ContextValidate validates this job progress based on context it is used

func (*JobProgress) MarshalBinary

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

MarshalBinary interface implementation

func (*JobProgress) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*JobProgress) Validate

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

Validate validates this job progress

type JobStatus

type JobStatus struct {

	// number of attempts
	// Required: true
	Attempts *int64 `json:"attempts"`

	// job error message from the last execution.
	// Required: true
	Error *string `json:"error"`

	// job progress info from the last execution.
	// Required: true
	Progress *JobProgress `json:"progress"`

	// job status from the last execution.
	// Required: true
	// Enum: [scheduled pending active retry completed archived]
	Status *string `json:"status"`
}

JobStatus status of the background task.

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 JobTimestamps

type JobTimestamps struct {

	// timestamp at which the job is completed, -62135596800 (0001-01-01T00:00:00) if not applicable.
	// Required: true
	CompletedAt *int64 `json:"completedAt"`

	// timestamp at which the job is created.
	// Required: true
	CreatedAt *int64 `json:"createdAt"`

	// timestamp at which the job failed the last time, -62135596800 (0001-01-01T00:00:00) if not applicable.
	// Required: true
	LastFailedAt *int64 `json:"lastFailedAt"`

	// timestamp at which the job will be processed, -62135596800 (0001-01-01T00:00:00) if not applicable.
	// Required: true
	NextProcessAt *int64 `json:"nextProcessAt"`
}

JobTimestamps job timestamps

swagger:model jobTimestamps

func (*JobTimestamps) ContextValidate

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

ContextValidate validates this job timestamps based on context it is used

func (*JobTimestamps) MarshalBinary

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

MarshalBinary interface implementation

func (*JobTimestamps) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*JobTimestamps) Validate

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

Validate validates this job timestamps

type Principal

type Principal string

Principal authenticated client identifier

swagger:model principal

func (Principal) ContextValidate

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

ContextValidate validates this principal based on context it is used

func (Principal) Validate

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

Validate validates this principal

type RequestBodyJobs

type RequestBodyJobs struct {

	// jobs
	Jobs []*JobData `json:"jobs"`
}

RequestBodyJobs JSON object containing a list of job data.

swagger:model requestBodyJobs

func (*RequestBodyJobs) ContextValidate

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

ContextValidate validate this request body jobs based on the context it is used

func (*RequestBodyJobs) MarshalBinary

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

MarshalBinary interface implementation

func (*RequestBodyJobs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RequestBodyJobs) Validate

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

Validate validates this request body jobs

type ResponseBody500

type ResponseBody500 struct {

	// server-side error message.
	ErrorMessage string `json:"errorMessage,omitempty"`

	// server-side exit code.
	ExitCode int64 `json:"exitCode,omitempty"`
}

ResponseBody500 JSON object containing server side error.

swagger:model responseBody500

func (*ResponseBody500) ContextValidate

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

ContextValidate validates this response body500 based on context it is used

func (*ResponseBody500) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBody500) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBody500) Validate

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

Validate validates this response body500

type ResponseBodyJobs

type ResponseBodyJobs struct {

	// jobs
	Jobs []*JobInfo `json:"jobs"`
}

ResponseBodyJobs JSON object containing a list of job information.

swagger:model responseBodyJobs

func (*ResponseBodyJobs) ContextValidate

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

ContextValidate validate this response body jobs based on the context it is used

func (*ResponseBodyJobs) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyJobs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyJobs) Validate

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

Validate validates this response body jobs

type ResponseDirEntries

type ResponseDirEntries struct {

	// entries
	Entries []*DirEntry `json:"entries"`
}

ResponseDirEntries JSON object containing dir entries.

swagger:model responseDirEntries

func (*ResponseDirEntries) ContextValidate

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

ContextValidate validate this response dir entries based on the context it is used

func (*ResponseDirEntries) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseDirEntries) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseDirEntries) Validate

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

Validate validates this response dir entries

Jump to

Keyboard shortcuts

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