models

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bandwidth

type Bandwidth struct {

	// String representation of the bandwidth rate limit (eg. 100k, 1M, ...).
	Rate string `json:"rate,omitempty"`
}

Bandwidth bandwidth rate

Rate at witch to rate limit bandwidth swagger:model Bandwidth

func (*Bandwidth) MarshalBinary

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

MarshalBinary interface implementation

func (*Bandwidth) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Bandwidth) Validate

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

Validate validates this bandwidth

type Content

type Content struct {

	// File content
	// Format: byte
	Content strfmt.Base64 `json:"Content,omitempty"`
}

Content content swagger:model Content

func (*Content) MarshalBinary

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

MarshalBinary interface implementation

func (*Content) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Content) Validate

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

Validate validates this content

type ErrorResponse

type ErrorResponse struct {

	// Map of request parameters
	Input interface{} `json:"input,omitempty"`

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

	// Requested path
	Path string `json:"path,omitempty"`

	// HTTP status code
	Status int64 `json:"status,omitempty"`
}

ErrorResponse error

Details about error response swagger:model ErrorResponse

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 FileSystemDetails

type FileSystemDetails struct {

	// Free space in bytes
	Free int64 `json:"free,omitempty"`

	// Available space in bytes
	Total int64 `json:"total,omitempty"`

	// Used space in bytes
	Used int64 `json:"used,omitempty"`
}

FileSystemDetails file system details swagger:model FileSystemDetails

func (*FileSystemDetails) MarshalBinary

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

MarshalBinary interface implementation

func (*FileSystemDetails) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*FileSystemDetails) Validate

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

Validate validates this file system details

type GroupList

type GroupList struct {

	// groups
	Groups []string `json:"groups"`
}

GroupList group list swagger:model GroupList

func (*GroupList) MarshalBinary

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

MarshalBinary interface implementation

func (*GroupList) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GroupList) Validate

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

Validate validates this group list

type Job

type Job struct {

	// Time in seconds that the job ran for
	Duration float64 `json:"duration,omitempty"`

	// Time the job finished (eg 2018-10-26T18:50:20.528746884+01:00)
	// Format: date-time
	EndTime strfmt.DateTime `json:"endTime,omitempty"`

	// Error from the job or empty string for no error
	Error string `json:"error,omitempty"`

	// Job has finished execution
	Finished bool `json:"finished,omitempty"`

	// ID of the job
	ID int64 `json:"id,omitempty"`

	// Output of the job as would have been returned if called synchronously
	Output interface{} `json:"output,omitempty"`

	// Time the job started (eg 2018-10-26T18:50:20.528746884+01:00)
	// Format: date-time
	StartTime strfmt.DateTime `json:"startTime,omitempty"`

	// True for success false otherwise
	Success bool `json:"success,omitempty"`
}

Job job

Status information about the job swagger:model Job

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 JobInfo

type JobInfo struct {

	// job
	Job *Job `json:"job,omitempty"`

	// Core status
	Stats *Stats `json:"stats,omitempty"`

	// Completed transfers
	Transferred []*Transfer `json:"transferred"`
}

JobInfo job info swagger:model JobInfo

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 JobInfoParams

type JobInfoParams struct {

	// ID of the job
	Jobid int64 `json:"jobid,omitempty"`

	// Duration in seconds
	Wait int64 `json:"wait,omitempty"`
}

JobInfoParams job info params swagger:model JobInfoParams

func (*JobInfoParams) MarshalBinary

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

MarshalBinary interface implementation

func (*JobInfoParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*JobInfoParams) Validate

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

Validate validates this job info params

type Jobid

type Jobid struct {

	// ID of the job
	Jobid int64 `json:"jobid,omitempty"`
}

Jobid jobid swagger:model Jobid

func (*Jobid) MarshalBinary

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

MarshalBinary interface implementation

func (*Jobid) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Jobid) Validate

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

Validate validates this jobid

type ListItem

type ListItem struct {

	// Encrypted name
	Encrypted string `json:"Encrypted,omitempty"`

	// Hash of the item
	Hashes interface{} `json:"Hashes,omitempty"`

	// ID of the item
	ID string `json:"ID,omitempty"`

	// true if item is directory
	IsDir bool `json:"IsDir,omitempty"`

	// mime type of the item
	MimeType string `json:"MimeType,omitempty"`

	// Modification time
	// Format: date-time
	ModTime strfmt.DateTime `json:"ModTime,omitempty"`

	// Name of the item
	Name string `json:"Name,omitempty"`

	// Original ID of the item
	OrigID string `json:"OrigID,omitempty"`

	// Path of the item
	Path string `json:"Path,omitempty"`

	// Size in bytes
	Size int64 `json:"Size,omitempty"`
}

ListItem list item swagger:model ListItem

func (*ListItem) MarshalBinary

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

MarshalBinary interface implementation

func (*ListItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListItem) Validate

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

Validate validates this list item

type ListOptions

type ListOptions struct {

	// A remote name string eg. drive:
	// Required: true
	Fs *string `json:"fs"`

	// opt
	Opt *ListOptionsOpt `json:"opt,omitempty"`

	// A path within that remote eg. dir
	// Required: true
	Remote *string `json:"remote"`
}

ListOptions list options swagger:model ListOptions

func (*ListOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*ListOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListOptions) Validate

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

Validate validates this list options

type ListOptionsOpt

type ListOptionsOpt struct {

	// Show only directories in the listing
	DirsOnly bool `json:"dirsOnly,omitempty"`

	// Show only files in the listing
	FilesOnly bool `json:"filesOnly,omitempty"`

	// Don't read the modification time (can speed things up)
	NoModTime bool `json:"noModTime,omitempty"`

	// Recurse into the listing
	Recurse bool `json:"recurse,omitempty"`

	// Show the encrypted names
	ShowEncrypted bool `json:"showEncrypted,omitempty"`

	// Include hashes in the output (may take longer)
	ShowHash bool `json:"showHash,omitempty"`

	// Show the ID of the underlying Object
	ShowOrigIDs bool `json:"showOrigIDs,omitempty"`
}

ListOptionsOpt A path within that remote eg. dir swagger:model ListOptionsOpt

func (*ListOptionsOpt) MarshalBinary

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

MarshalBinary interface implementation

func (*ListOptionsOpt) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListOptionsOpt) Validate

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

Validate validates this list options opt

type MoveOrCopyFileOptions

type MoveOrCopyFileOptions struct {

	// A remote name string eg. drive: for the destination
	DstFs string `json:"dstFs,omitempty"`

	// A path within that remote eg. file.txt for the destination
	DstRemote string `json:"dstRemote,omitempty"`

	// A remote name string eg. drive: for the source
	SrcFs string `json:"srcFs,omitempty"`

	// A path within that remote eg. file.txt for the source
	SrcRemote string `json:"srcRemote,omitempty"`
}

MoveOrCopyFileOptions move or copy file options swagger:model MoveOrCopyFileOptions

func (*MoveOrCopyFileOptions) MarshalBinary

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

MarshalBinary interface implementation

func (*MoveOrCopyFileOptions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MoveOrCopyFileOptions) Validate

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

Validate validates this move or copy file options

type NodeInfo

type NodeInfo struct {

	// Address for REST API requests.
	APIAddress string `json:"api_address,omitempty"`

	// Port for REST API server.
	APIPort string `json:"api_port,omitempty"`

	// Address that is broadcasted to tell other Scylla nodes to connect to. Related to listen_address.
	BroadcastAddress string `json:"broadcast_address,omitempty"`

	// Address that is broadcasted to tell the clients to connect to.
	BroadcastRPCAddress string `json:"broadcast_rpc_address,omitempty"`

	// Address Scylla listens for connections from other nodes.
	ListenAddress string `json:"listen_address,omitempty"`

	// Port for the CQL native transport to listen for clients on.
	NativeTransportPort string `json:"native_transport_port,omitempty"`

	// Address for Prometheus queries.
	PrometheusAddress string `json:"prometheus_address,omitempty"`

	// Port for Prometheus server.
	PrometheusPort string `json:"prometheus_port,omitempty"`

	// Address on which Scylla is going to expect Thrift and CQL clients connections.
	RPCAddress string `json:"rpc_address,omitempty"`

	// Port for Thrift to listen for clients on.
	RPCPort string `json:"rpc_port,omitempty"`
}

NodeInfo node info

Information about Scylla node. swagger:model NodeInfo

func (*NodeInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*NodeInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NodeInfo) Validate

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

Validate validates this node info

type Remote

type Remote struct {

	// Name of the remote
	Name string `json:"name,omitempty"`

	// Additional parameters for the remote
	Parameters interface{} `json:"parameters,omitempty"`

	// Type of the new remote
	Type string `json:"type,omitempty"`
}

Remote remote swagger:model Remote

func (*Remote) MarshalBinary

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

MarshalBinary interface implementation

func (*Remote) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Remote) Validate

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

Validate validates this remote

type RemotePath

type RemotePath struct {

	// A remote name string eg. drive:
	Fs string `json:"fs,omitempty"`

	// A path within that remote eg. dir
	Remote string `json:"remote,omitempty"`
}

RemotePath remote path swagger:model RemotePath

func (*RemotePath) MarshalBinary

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

MarshalBinary interface implementation

func (*RemotePath) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RemotePath) Validate

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

Validate validates this remote path

type Stats

type Stats struct {

	// total transferred bytes since the start of the process
	Bytes int64 `json:"bytes,omitempty"`

	// an array of names of currently active file checks
	Checking []string `json:"checking"`

	// number of checked files
	Checks int64 `json:"checks,omitempty"`

	// number of deleted files
	Deletes int64 `json:"deletes,omitempty"`

	// time in seconds since the start of the process
	ElapsedTime float64 `json:"elapsedTime,omitempty"`

	// number of errors
	Errors int64 `json:"errors,omitempty"`

	// whether there has been at least one FatalError
	FatalError bool `json:"fatalError,omitempty"`

	// last occurred error
	LastError string `json:"lastError,omitempty"`

	// whether there has been at least one non-NoRetryError
	RetryError bool `json:"retryError,omitempty"`

	// average speed in bytes/sec since start of the process
	Speed float64 `json:"speed,omitempty"`

	// an array of currently active file transfers
	Transferring []*StatsTransferringItems0 `json:"transferring"`

	// number of transferred files
	Transfers int64 `json:"transfers,omitempty"`
}

Stats stats swagger:model Stats

func (*Stats) MarshalBinary

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

MarshalBinary interface implementation

func (*Stats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Stats) Validate

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

Validate validates this stats

type StatsParams

type StatsParams struct {

	// group name
	Group string `json:"group,omitempty"`
}

StatsParams stats params swagger:model StatsParams

func (*StatsParams) MarshalBinary

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

MarshalBinary interface implementation

func (*StatsParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StatsParams) Validate

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

Validate validates this stats params

type StatsTransferringItems0

type StatsTransferringItems0 struct {

	// total transferred bytes for this file
	Bytes int64 `json:"bytes,omitempty"`

	// estimated time in seconds until file transfer completion
	Eta float64 `json:"eta,omitempty"`

	// name of the file
	Name string `json:"name,omitempty"`

	// progress of the file transfer in percent
	Percentage float64 `json:"percentage,omitempty"`

	// size of the file in bytes
	Size int64 `json:"size,omitempty"`

	// speed in bytes/sec
	Speed float64 `json:"speed,omitempty"`

	// speed in bytes/sec as an exponentially weighted moving average
	SpeedAvg float64 `json:"speedAvg,omitempty"`
}

StatsTransferringItems0 stats transferring items0 swagger:model StatsTransferringItems0

func (*StatsTransferringItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*StatsTransferringItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StatsTransferringItems0) Validate

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

Validate validates this stats transferring items0

type Transfer

type Transfer struct {

	// total transferred bytes for this file
	Bytes int64 `json:"bytes,omitempty"`

	// if the transfer is only checked (skipped, deleted)
	Checked bool `json:"checked,omitempty"`

	// time at which transfer completed
	// Format: date-time
	CompletedAt strfmt.DateTime `json:"completed_at,omitempty"`

	// string description of the error (empty if successful)
	Error string `json:"error,omitempty"`

	// name of the file
	Name string `json:"name,omitempty"`

	// size of the file in bytes
	Size int64 `json:"size,omitempty"`

	// time at which transfer started
	// Format: date-time
	StartedAt strfmt.DateTime `json:"started_at,omitempty"`
}

Transfer transfer swagger:model Transfer

func (*Transfer) MarshalBinary

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

MarshalBinary interface implementation

func (*Transfer) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Transfer) Validate

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

Validate validates this transfer

Jump to

Keyboard shortcuts

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