models

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// TaskInfoStatusRunning captures enum value "running"
	TaskInfoStatusRunning string = "running"

	// TaskInfoStatusSuccess captures enum value "success"
	TaskInfoStatusSuccess string = "success"

	// TaskInfoStatusFailed captures enum value "failed"
	TaskInfoStatusFailed string = "failed"

	// TaskInfoStatusCancelled captures enum value "cancelled"
	TaskInfoStatusCancelled string = "cancelled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentSpec

type ComponentSpec struct {

	// id
	// Required: true
	ID ProtectedEntityID `json:"id"`

	// server
	Server string `json:"server,omitempty"`
}

ComponentSpec component spec swagger:model ComponentSpec

func (*ComponentSpec) MarshalBinary

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

MarshalBinary interface implementation

func (*ComponentSpec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ComponentSpec) Validate

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

Validate validates this component spec

type CreateInProgressResponse

type CreateInProgressResponse struct {

	// task ID
	TaskID TaskID `json:"taskID,omitempty"`
}

CreateInProgressResponse create in progress response swagger:model CreateInProgressResponse

func (*CreateInProgressResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateInProgressResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateInProgressResponse) Validate

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

Validate validates this create in progress response

type DataTransport

type DataTransport struct {

	// params
	Params map[string]string `json:"params,omitempty"`

	// transport type
	TransportType string `json:"transportType,omitempty"`
}

DataTransport data transport swagger:model DataTransport

func (*DataTransport) MarshalBinary

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

MarshalBinary interface implementation

func (*DataTransport) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataTransport) Validate

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

Validate validates this data transport

type ProtectedEntityID

type ProtectedEntityID string

ProtectedEntityID protected entity ID swagger:model ProtectedEntityID

func (ProtectedEntityID) Validate

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

Validate validates this protected entity ID

type ProtectedEntityInfo

type ProtectedEntityInfo struct {

	// combined transports
	// Required: true
	CombinedTransports []*DataTransport `json:"combinedTransports"`

	// component specs
	// Required: true
	ComponentSpecs []*ComponentSpec `json:"componentSpecs"`

	// data transports
	// Required: true
	DataTransports []*DataTransport `json:"dataTransports"`

	// id
	// Required: true
	ID ProtectedEntityID `json:"id"`

	// metadata transports
	// Required: true
	MetadataTransports []*DataTransport `json:"metadataTransports"`

	// name
	// Required: true
	Name *string `json:"name"`
}

ProtectedEntityInfo protected entity info swagger:model ProtectedEntityInfo

func (*ProtectedEntityInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*ProtectedEntityInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProtectedEntityInfo) Validate

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

Validate validates this protected entity info

type ProtectedEntityList

type ProtectedEntityList struct {

	// list
	List []ProtectedEntityID `json:"list"`

	// truncated
	Truncated bool `json:"truncated,omitempty"`
}

ProtectedEntityList protected entity list swagger:model ProtectedEntityList

func (*ProtectedEntityList) MarshalBinary

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

MarshalBinary interface implementation

func (*ProtectedEntityList) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProtectedEntityList) Validate

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

Validate validates this protected entity list

type ProtectedEntitySnapshotID

type ProtectedEntitySnapshotID string

ProtectedEntitySnapshotID protected entity snapshot ID swagger:model ProtectedEntitySnapshotID

func (ProtectedEntitySnapshotID) Validate

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

Validate validates this protected entity snapshot ID

type ServiceList

type ServiceList struct {

	// services
	Services []string `json:"services"`
}

ServiceList service list swagger:model ServiceList

func (*ServiceList) MarshalBinary

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

MarshalBinary interface implementation

func (*ServiceList) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServiceList) Validate

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

Validate validates this service list

type TaskID

type TaskID string

TaskID task ID swagger:model TaskID

func (TaskID) Validate

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

Validate validates this task ID

type TaskIDList

type TaskIDList []TaskID

TaskIDList task ID list swagger:model TaskIDList

func (TaskIDList) Validate

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

Validate validates this task ID list

type TaskInfo

type TaskInfo struct {

	// completed
	// Required: true
	Completed *bool `json:"completed"`

	// details
	Details string `json:"details,omitempty"`

	// finished time
	FinishedTime string `json:"finishedTime,omitempty"`

	// Finished time in nanoseconds
	FinishedTimeNS int64 `json:"finishedTimeNS,omitempty"`

	// id
	// Required: true
	ID TaskID `json:"id"`

	// progress
	// Required: true
	// Maximum: 100
	// Minimum: 0
	Progress *float64 `json:"progress"`

	// result
	Result interface{} `json:"result,omitempty"`

	// started time
	// Required: true
	StartedTime *string `json:"startedTime"`

	// Start time in nanoseconds
	// Required: true
	StartedTimeNS *int64 `json:"startedTimeNS"`

	// status
	// Required: true
	// Enum: [running success failed cancelled]
	Status *string `json:"status"`
}

TaskInfo task info swagger:model TaskInfo

func (*TaskInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*TaskInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TaskInfo) Validate

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

Validate validates this task info

type TaskNexusID

type TaskNexusID string

TaskNexusID task nexus ID swagger:model TaskNexusID

func (TaskNexusID) Validate

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

Validate validates this task nexus ID

type TaskNexusInfo

type TaskNexusInfo struct {

	// associated tasks
	AssociatedTasks []TaskID `json:"associatedTasks"`

	// id
	ID TaskNexusID `json:"id,omitempty"`
}

TaskNexusInfo task nexus info swagger:model TaskNexusInfo

func (*TaskNexusInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*TaskNexusInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TaskNexusInfo) Validate

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

Validate validates this task nexus info

type TaskNexusList

type TaskNexusList []*TaskNexusInfo

TaskNexusList task nexus list swagger:model TaskNexusList

func (TaskNexusList) Validate

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

Validate validates this task nexus list

type TaskNexusResponse

type TaskNexusResponse struct {

	// finished
	Finished []*TaskInfo `json:"finished"`

	// id
	ID TaskNexusID `json:"id,omitempty"`
}

TaskNexusResponse task nexus response swagger:model TaskNexusResponse

func (*TaskNexusResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*TaskNexusResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TaskNexusResponse) Validate

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

Validate validates this task nexus response

Jump to

Keyboard shortcuts

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