models

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ClientProductStatusTrial captures enum value "trial"
	ClientProductStatusTrial string = "trial"

	// ClientProductStatusActivating captures enum value "activating"
	ClientProductStatusActivating string = "activating"

	// ClientProductStatusTrialend captures enum value "trialend"
	ClientProductStatusTrialend string = "trialend"

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

	// ClientProductStatusPaused captures enum value "paused"
	ClientProductStatusPaused string = "paused"

	// ClientProductStatusNew captures enum value "new"
	ClientProductStatusNew string = "new"
)
View Source
const (

	// ClientLocationResAllowForNewStorageDeny captures enum value "deny"
	ClientLocationResAllowForNewStorageDeny string = "deny"

	// ClientLocationResAllowForNewStorageAllow captures enum value "allow"
	ClientLocationResAllowForNewStorageAllow string = "allow"
)
View Source
const (

	// ClientLocationResNameSDashEd1 captures enum value "s-ed1"
	ClientLocationResNameSDashEd1 string = "s-ed1"

	// ClientLocationResNameSDashWs1 captures enum value "s-ws1"
	ClientLocationResNameSDashWs1 string = "s-ws1"

	// ClientLocationResNameAms captures enum value "ams"
	ClientLocationResNameAms string = "ams"

	// ClientLocationResNameSin captures enum value "sin"
	ClientLocationResNameSin string = "sin"

	// ClientLocationResNameFra captures enum value "fra"
	ClientLocationResNameFra string = "fra"

	// ClientLocationResNameMia captures enum value "mia"
	ClientLocationResNameMia string = "mia"
)
View Source
const (

	// LocationAllowForNewStorageDeny captures enum value "deny"
	LocationAllowForNewStorageDeny string = "deny"

	// LocationAllowForNewStorageUndefined captures enum value "undefined"
	LocationAllowForNewStorageUndefined string = "undefined"

	// LocationAllowForNewStorageAllow captures enum value "allow"
	LocationAllowForNewStorageAllow string = "allow"
)
View Source
const (

	// StorageLocationSDashEd1 captures enum value "s-ed1"
	StorageLocationSDashEd1 string = "s-ed1"

	// StorageLocationSDashWs1 captures enum value "s-ws1"
	StorageLocationSDashWs1 string = "s-ws1"

	// StorageLocationAms captures enum value "ams"
	StorageLocationAms string = "ams"

	// StorageLocationSin captures enum value "sin"
	StorageLocationSin string = "sin"

	// StorageLocationFra captures enum value "fra"
	StorageLocationFra string = "fra"

	// StorageLocationMia captures enum value "mia"
	StorageLocationMia string = "mia"
)
View Source
const (

	// StorageTypeSftp captures enum value "sftp"
	StorageTypeSftp string = "sftp"

	// StorageTypeS3 captures enum value "s3"
	StorageTypeS3 string = "s3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketAndStorageName

type BucketAndStorageName struct {

	// bucket name
	BucketName string `json:"bucket_name,omitempty"`

	// storage name
	StorageName string `json:"storage_name,omitempty"`

	// UUID
	UUID string `json:"uuid,omitempty"`
}

BucketAndStorageName bucket and storage name

swagger:model BucketAndStorageName

func (*BucketAndStorageName) ContextValidate

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

ContextValidate validates this bucket and storage name based on context it is used

func (*BucketAndStorageName) MarshalBinary

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

MarshalBinary interface implementation

func (*BucketAndStorageName) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BucketAndStorageName) Validate

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

Validate validates this bucket and storage name

type BucketDto

type BucketDto struct {

	// lifecycle
	Lifecycle int64 `json:"lifecycle,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

BucketDto BucketDto for response

swagger:model BucketDto

func (*BucketDto) ContextValidate

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

ContextValidate validates this bucket dto based on context it is used

func (*BucketDto) MarshalBinary

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

MarshalBinary interface implementation

func (*BucketDto) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BucketDto) Validate

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

Validate validates this bucket dto

type Client

type Client struct {

	// Id
	ID int64 `json:"id,omitempty"`

	// product enabled
	ProductEnabled bool `json:"product_enabled,omitempty"`

	// product status
	// Enum: [trial activating trialend active paused new]
	ProductStatus string `json:"product_status,omitempty"`

	// reseller Id
	ResellerID int64 `json:"reseller_id,omitempty"`

	// updated at
	UpdatedAt string `json:"updated_at,omitempty"`
}

Client client

swagger:model Client

func (*Client) ContextValidate

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

ContextValidate validates this client based on context it is used

func (*Client) MarshalBinary

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

MarshalBinary interface implementation

func (*Client) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Client) Validate

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

Validate validates this client

type ClientListEndpointRes

type ClientListEndpointRes struct {

	// data
	Data *ClientListServiceRes `json:"data,omitempty"`
}

ClientListEndpointRes client list endpoint res

swagger:model ClientListEndpointRes

func (*ClientListEndpointRes) ContextValidate

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

ContextValidate validate this client list endpoint res based on the context it is used

func (*ClientListEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*ClientListEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClientListEndpointRes) Validate

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

Validate validates this client list endpoint res

type ClientListServiceRes

type ClientListServiceRes struct {

	// clients
	Clients []*Client `json:"clients"`

	// num clients
	NumClients int64 `json:"num_clients,omitempty"`
}

ClientListServiceRes client list service res

swagger:model ClientListServiceRes

func (*ClientListServiceRes) ContextValidate

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

ContextValidate validate this client list service res based on the context it is used

func (*ClientListServiceRes) MarshalBinary

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

MarshalBinary interface implementation

func (*ClientListServiceRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClientListServiceRes) Validate

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

Validate validates this client list service res

type ClientLocationRes

type ClientLocationRes struct {

	// address
	Address string `json:"address,omitempty"`

	// allow for new storage
	// Enum: [deny allow]
	AllowForNewStorage string `json:"allow_for_new_storage,omitempty"`

	// Id
	ID int64 `json:"id,omitempty"`

	// name
	// Example: s-ed1 / s-ws1 / ams / sin / fra / mia / etc.
	// Enum: [s-ed1 s-ws1 ams sin fra mia]
	Name string `json:"name,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

ClientLocationRes client location res

swagger:model clientLocationRes

func (*ClientLocationRes) ContextValidate

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

ContextValidate validates this client location res based on context it is used

func (*ClientLocationRes) MarshalBinary

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

MarshalBinary interface implementation

func (*ClientLocationRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClientLocationRes) Validate

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

Validate validates this client location res

type ClientStats

type ClientStats struct {

	// a FileQuantitySumMax is max sum of files quantity for grouped period
	FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`

	// an ID of client
	ID int64 `json:"id,omitempty"`

	// a Locations grouped data
	Locations map[string]LocationStats `json:"locations,omitempty"`

	// a RequestsInSum is sum of incoming  requests for grouped period
	RequestsInSum uint64 `json:"requests_in_sum,omitempty"`

	// a RequestsOutEdgesSum is sum of out edges requests for grouped period
	RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`

	// a RequestsOutWoEdgesSum is sum of out no edges requests for grouped period
	RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`

	// a RequestsSum is sum of all requests for grouped period
	RequestsSum uint64 `json:"requests_sum,omitempty"`

	// a SizeSumMax is max sum of all files sizes for grouped period
	SizeSumMax uint64 `json:"size_sum_max,omitempty"`

	// a SizeSumMean is mean sum of all files sizes for grouped period
	SizeSumMean uint64 `json:"size_sum_mean,omitempty"`

	// a TrafficInSum is sum of incoming  traffic for grouped period
	TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`

	// a TrafficOutEdgesSum is sum of out edges traffic for grouped period
	TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`

	// a TrafficOutWoEdgesSum is sum of out no edges traffic for grouped period
	TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`

	// a TrafficSum is sum of all traffic for grouped period
	TrafficSum uint64 `json:"traffic_sum,omitempty"`
}

ClientStats client stats

swagger:model ClientStats

func (*ClientStats) ContextValidate

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

ContextValidate validate this client stats based on the context it is used

func (*ClientStats) MarshalBinary

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

MarshalBinary interface implementation

func (*ClientStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClientStats) Validate

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

Validate validates this client stats

type Credentials

type Credentials struct {

	// keys
	Keys []*Key `json:"keys"`

	// sftp password
	SftpPassword string `json:"sftp_password,omitempty"`

	// s3
	S3 *S3Credentials `json:"s3,omitempty"`
}

Credentials credentials

swagger:model Credentials

func (*Credentials) ContextValidate

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

ContextValidate validate this credentials based on the context it is used

func (*Credentials) MarshalBinary

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

MarshalBinary interface implementation

func (*Credentials) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Credentials) Validate

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

Validate validates this credentials

type DataMeta

type DataMeta struct {

	// to meta
	ToMeta map[string]interface{} `json:"ToMeta,omitempty"`
}

DataMeta Provide meta info through layers

swagger:model DataMeta

func (*DataMeta) ContextValidate

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

ContextValidate validates this data meta based on context it is used

func (*DataMeta) MarshalBinary

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

MarshalBinary interface implementation

func (*DataMeta) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataMeta) Validate

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

Validate validates this data meta

type ErrResponse

type ErrResponse struct {

	// error
	Error string `json:"error,omitempty"`
}

ErrResponse err response

swagger:model ErrResponse

func (*ErrResponse) ContextValidate

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

ContextValidate validates this err response based on context it is used

func (*ErrResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrResponse) Validate

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

Validate validates this err response

type Event

type Event struct {

	// bucket name
	BucketName string `json:"bucket_name,omitempty"`

	// Bytes as limit
	// Example: 500
	Bytes uint64 `json:"bytes,omitempty"`

	// Count as limit
	// Example: 5
	Count uint64 `json:"count,omitempty"`

	// name of type notification
	// Example: reaching_used_space, reaching_files_quantity, reaching_used_traffic, reaching_used_requests
	// Required: true
	Name *string `json:"name"`

	// storage name
	StorageName string `json:"storage_name,omitempty"`

	// UUID
	UUID string `json:"uuid,omitempty"`
}

Event Event for storage notification

swagger:model Event

func (*Event) ContextValidate

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

ContextValidate validates this event based on context it is used

func (*Event) MarshalBinary

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

MarshalBinary interface implementation

func (*Event) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Event) Validate

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

Validate validates this event

type EventDescription

type EventDescription struct {

	// Fields description
	Fields []*EventField `json:"fields"`

	// Name of event for root prop of request structure
	// Example: reaching_files_quantity
	Name string `json:"name,omitempty"`
}

EventDescription EventDescription to form structure of request

swagger:model EventDescription

func (*EventDescription) ContextValidate

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

ContextValidate validate this event description based on the context it is used

func (*EventDescription) MarshalBinary

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

MarshalBinary interface implementation

func (*EventDescription) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventDescription) Validate

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

Validate validates this event description

type EventField

type EventField struct {

	// Name of field in root event structure
	// Example: storage_name
	Name string `json:"name,omitempty"`

	// Type of field
	// Example: number, bool, text
	Type string `json:"type,omitempty"`
}

EventField EventField details

swagger:model EventField

func (*EventField) ContextValidate

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

ContextValidate validates this event field based on context it is used

func (*EventField) MarshalBinary

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

MarshalBinary interface implementation

func (*EventField) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventField) Validate

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

Validate validates this event field

type Events

type Events struct {

	// reaching files quantity
	ReachingFilesQuantity []*LimitByCount `json:"reaching_files_quantity"`

	// reaching used requests
	ReachingUsedRequests []*LimitByCount `json:"reaching_used_requests"`

	// reaching used space
	ReachingUsedSpace []*LimitByBytes `json:"reaching_used_space"`

	// reaching used traffic
	ReachingUsedTraffic []*LimitByBytes `json:"reaching_used_traffic"`
}

Events Events for storage notification

swagger:model Events

func (*Events) ContextValidate

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

ContextValidate validate this events based on the context it is used

func (*Events) MarshalBinary

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

MarshalBinary interface implementation

func (*Events) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Events) Validate

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

Validate validates this events

type EventsMeta

type EventsMeta struct {

	// Structure of request body
	Structure []*EventDescription `json:"structure"`

	// example
	Example *Events `json:"example,omitempty"`
}

EventsMeta EventsMeta describe how to form POST/PATCH request

swagger:model EventsMeta

func (*EventsMeta) ContextValidate

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

ContextValidate validate this events meta based on the context it is used

func (*EventsMeta) MarshalBinary

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

MarshalBinary interface implementation

func (*EventsMeta) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventsMeta) Validate

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

Validate validates this events meta

type Key

type Key struct {

	// created at
	CreatedAt string `json:"created_at,omitempty"`

	// Id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

Key key

swagger:model Key

func (*Key) ContextValidate

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

ContextValidate validates this key based on context it is used

func (*Key) MarshalBinary

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

MarshalBinary interface implementation

func (*Key) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Key) Validate

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

Validate validates this key

type KeyListEndpointRes

type KeyListEndpointRes struct {

	// data
	Data []*Key `json:"data"`

	// meta
	Meta *DataMeta `json:"meta,omitempty"`
}

KeyListEndpointRes key list endpoint res

swagger:model KeyListEndpointRes

func (*KeyListEndpointRes) ContextValidate

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

ContextValidate validate this key list endpoint res based on the context it is used

func (*KeyListEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*KeyListEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*KeyListEndpointRes) Validate

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

Validate validates this key list endpoint res

type LimitByBytes

type LimitByBytes struct {

	// bucket name
	BucketName string `json:"bucket_name,omitempty"`

	// bytes
	Bytes uint64 `json:"bytes,omitempty"`

	// storage name
	StorageName string `json:"storage_name,omitempty"`

	// UUID
	UUID string `json:"uuid,omitempty"`
}

LimitByBytes limit by bytes

swagger:model LimitByBytes

func (*LimitByBytes) ContextValidate

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

ContextValidate validates this limit by bytes based on context it is used

func (*LimitByBytes) MarshalBinary

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

MarshalBinary interface implementation

func (*LimitByBytes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LimitByBytes) Validate

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

Validate validates this limit by bytes

type LimitByCount

type LimitByCount struct {

	// bucket name
	BucketName string `json:"bucket_name,omitempty"`

	// count
	Count uint64 `json:"count,omitempty"`

	// storage name
	StorageName string `json:"storage_name,omitempty"`

	// UUID
	UUID string `json:"uuid,omitempty"`
}

LimitByCount limit by count

swagger:model LimitByCount

func (*LimitByCount) ContextValidate

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

ContextValidate validates this limit by count based on context it is used

func (*LimitByCount) MarshalBinary

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

MarshalBinary interface implementation

func (*LimitByCount) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LimitByCount) Validate

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

Validate validates this limit by count

type Location

type Location struct {

	// address
	Address string `json:"address,omitempty"`

	// allow for new storage
	// Enum: [deny undefined allow]
	AllowForNewStorage string `json:"allow_for_new_storage,omitempty"`

	// Id
	ID int64 `json:"id,omitempty"`

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

	// title
	Title map[string]string `json:"title,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

Location location

swagger:model Location

func (*Location) ContextValidate

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

ContextValidate validates this location based on context it is used

func (*Location) MarshalBinary

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

MarshalBinary interface implementation

func (*Location) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Location) Validate

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

Validate validates this location

type LocationStats

type LocationStats struct {

	// a FileQuantitySumMax is max sum of files quantity for grouped period
	FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`

	// a Name of location
	Name string `json:"name,omitempty"`

	// a RequestsInSum is sum of incoming  requests for grouped period
	RequestsInSum uint64 `json:"requests_in_sum,omitempty"`

	// a RequestsOutEdgesSum is sum of out edges requests for grouped period
	RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`

	// a RequestsOutWoEdgesSum is sum of out no edges requests for grouped period
	RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`

	// a RequestsSum is sum of all requests for grouped period
	RequestsSum uint64 `json:"requests_sum,omitempty"`

	// a SizeSumMax is max sum of all files sizes for grouped period
	SizeSumMax uint64 `json:"size_sum_max,omitempty"`

	// a SizeSumMean is mean sum of all files sizes for grouped period
	SizeSumMean uint64 `json:"size_sum_mean,omitempty"`

	// a Storages grouped data
	Storages map[string]StorageStats `json:"storages,omitempty"`

	// a TrafficInSum is sum of incoming  traffic for grouped period
	TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`

	// a TrafficOutEdgesSum is sum of out edges traffic for grouped period
	TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`

	// a TrafficOutWoEdgesSum is sum of out no edges traffic for grouped period
	TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`

	// a TrafficSum is sum of all traffic for grouped period
	TrafficSum uint64 `json:"traffic_sum,omitempty"`
}

LocationStats location stats

swagger:model LocationStats

func (*LocationStats) ContextValidate

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

ContextValidate validate this location stats based on the context it is used

func (*LocationStats) MarshalBinary

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

MarshalBinary interface implementation

func (*LocationStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LocationStats) Validate

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

Validate validates this location stats

type RespMeta

type RespMeta struct {

	// meta
	Meta *DataMeta `json:"meta,omitempty"`
}

RespMeta RespMeta Add Meta to response

swagger:model RespMeta

func (*RespMeta) ContextValidate

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

ContextValidate validate this resp meta based on the context it is used

func (*RespMeta) MarshalBinary

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

MarshalBinary interface implementation

func (*RespMeta) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RespMeta) Validate

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

Validate validates this resp meta

type S3Credentials

type S3Credentials struct {

	// access key
	AccessKey string `json:"access_key,omitempty"`

	// secret key
	SecretKey string `json:"secret_key,omitempty"`
}

S3Credentials s3 credentials

swagger:model S3Credentials

func (*S3Credentials) ContextValidate

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

ContextValidate validates this s3 credentials based on context it is used

func (*S3Credentials) MarshalBinary

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

MarshalBinary interface implementation

func (*S3Credentials) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*S3Credentials) Validate

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

Validate validates this s3 credentials

type StatsMetrics

type StatsMetrics struct {

	// a FileQuantitySumMax is max sum of files quantity for grouped period
	FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`

	// a RequestsInSum is sum of incoming  requests for grouped period
	RequestsInSum uint64 `json:"requests_in_sum,omitempty"`

	// a RequestsOutEdgesSum is sum of out edges requests for grouped period
	RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`

	// a RequestsOutWoEdgesSum is sum of out no edges requests for grouped period
	RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`

	// a RequestsSum is sum of all requests for grouped period
	RequestsSum uint64 `json:"requests_sum,omitempty"`

	// a SizeSumMax is max sum of all files sizes for grouped period
	SizeSumMax uint64 `json:"size_sum_max,omitempty"`

	// a SizeSumMean is mean sum of all files sizes for grouped period
	SizeSumMean uint64 `json:"size_sum_mean,omitempty"`

	// a TrafficInSum is sum of incoming  traffic for grouped period
	TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`

	// a TrafficOutEdgesSum is sum of out edges traffic for grouped period
	TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`

	// a TrafficOutWoEdgesSum is sum of out no edges traffic for grouped period
	TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`

	// a TrafficSum is sum of all traffic for grouped period
	TrafficSum uint64 `json:"traffic_sum,omitempty"`
}

StatsMetrics stats metrics

swagger:model StatsMetrics

func (*StatsMetrics) ContextValidate

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

ContextValidate validates this stats metrics based on context it is used

func (*StatsMetrics) MarshalBinary

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

MarshalBinary interface implementation

func (*StatsMetrics) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StatsMetrics) Validate

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

Validate validates this stats metrics

type Storage

type Storage struct {

	// address
	Address string `json:"address,omitempty"`

	// client ID
	ClientID int64 `json:"client_id,omitempty"`

	// created at
	CreatedAt string `json:"created_at,omitempty"`

	// custom config file
	CustomConfigFile bool `json:"custom_config_file,omitempty"`

	// deleted at
	DeletedAt string `json:"deleted_at,omitempty"`

	// disable Http
	DisableHTTP bool `json:"disable_http,omitempty"`

	// expires
	Expires string `json:"expires,omitempty"`

	// Id
	ID int64 `json:"id,omitempty"`

	// location
	// Enum: [s-ed1 s-ws1 ams sin fra mia]
	Location string `json:"location,omitempty"`

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

	// provisioning status
	ProvisioningStatus string `json:"provisioning_status,omitempty"`

	// rewrite rules
	RewriteRules map[string]string `json:"rewrite_rules,omitempty"`

	// server alias
	ServerAlias string `json:"server_alias,omitempty"`

	// type
	// Enum: [sftp s3]
	Type string `json:"type,omitempty"`

	// credentials
	Credentials *Credentials `json:"credentials,omitempty"`
}

Storage storage

swagger:model Storage

func (*Storage) ContextValidate

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

ContextValidate validate this storage based on the context it is used

func (*Storage) MarshalBinary

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

MarshalBinary interface implementation

func (*Storage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Storage) Validate

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

Validate validates this storage

type StorageGetBucketCorsEndpointRes

type StorageGetBucketCorsEndpointRes struct {

	// data
	Data string `json:"data,omitempty"`
}

StorageGetBucketCorsEndpointRes StorageGetBucketCorsEndpointRes output

swagger:model StorageGetBucketCorsEndpointRes

func (*StorageGetBucketCorsEndpointRes) ContextValidate

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

ContextValidate validates this storage get bucket cors endpoint res based on context it is used

func (*StorageGetBucketCorsEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageGetBucketCorsEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageGetBucketCorsEndpointRes) Validate

Validate validates this storage get bucket cors endpoint res

type StorageListBucketsEndpointRes

type StorageListBucketsEndpointRes struct {

	// data
	Data []*BucketDto `json:"data"`

	// meta
	Meta *DataMeta `json:"meta,omitempty"`
}

StorageListBucketsEndpointRes StorageListBucketsEndpointRes output

swagger:model StorageListBucketsEndpointRes

func (*StorageListBucketsEndpointRes) ContextValidate

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

ContextValidate validate this storage list buckets endpoint res based on the context it is used

func (*StorageListBucketsEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageListBucketsEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageListBucketsEndpointRes) Validate

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

Validate validates this storage list buckets endpoint res

type StorageListEndpointRes

type StorageListEndpointRes struct {

	// data
	Data []*Storage `json:"data"`

	// meta
	Meta *DataMeta `json:"meta,omitempty"`
}

StorageListEndpointRes storage list endpoint res

swagger:model StorageListEndpointRes

func (*StorageListEndpointRes) ContextValidate

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

ContextValidate validate this storage list endpoint res based on the context it is used

func (*StorageListEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageListEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageListEndpointRes) Validate

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

Validate validates this storage list endpoint res

type StorageListServiceRes

type StorageListServiceRes struct {

	// num storages
	NumStorages int64 `json:"num_storages,omitempty"`

	// storages
	Storages []*Storage `json:"storages"`
}

StorageListServiceRes storage list service res

swagger:model StorageListServiceRes

func (*StorageListServiceRes) ContextValidate

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

ContextValidate validate this storage list service res based on the context it is used

func (*StorageListServiceRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageListServiceRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageListServiceRes) Validate

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

Validate validates this storage list service res

type StorageStats

type StorageStats struct {

	// a BucketsSeries is max bucket files count for grouped period {name:[[timestamp, count]]}
	// Example: {"bucketA":[[1632748614,1],[1632748615,2],[1632748616,2],[1632748617,1]]}
	BucketsSeries map[string][][]interface{} `json:"buckets_series,omitempty"`

	// a FileQuantitySumMax is max sum of files quantity for grouped period
	FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`

	// a Name of storage
	Name string `json:"name,omitempty"`

	// a RequestsInSeries is sum of incoming requests for grouped period [[timestamp, count]]
	// Example: [[1632748614,1],[1632748615,2],[1632748616,2],[1632748617,1]]
	RequestsInSeries [][]interface{} `json:"requests_in_series"`

	// a RequestsInSum is sum of incoming  requests for grouped period
	RequestsInSum uint64 `json:"requests_in_sum,omitempty"`

	// a RequestsOutWoEdgesSeries is sum of out requests (only edges) for grouped period [[timestamp, count]]
	// Example: [[1632748614,1],[1632748615,2],[1632748616,2],[1632748617,1]]
	RequestsOutEdgesSeries [][]interface{} `json:"requests_out_edges_series"`

	// a RequestsOutEdgesSum is sum of out edges requests for grouped period
	RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`

	// a RequestsOutWoEdgesSeries is sum of out requests (without edges) for grouped period [[timestamp, count]]
	// Example: [[1632748614,1],[1632748615,2],[1632748616,2],[1632748617,1]]
	RequestsOutWoEdgesSeries [][]interface{} `json:"requests_out_wo_edges_series"`

	// a RequestsOutWoEdgesSum is sum of out no edges requests for grouped period
	RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`

	// a RequestsSeries is sum of out requests for grouped period [[timestamp, count]]
	// Example: [[1632748614,1],[1632748615,2],[1632748616,2],[1632748617,1]]
	RequestsSeries [][]interface{} `json:"requests_series"`

	// a RequestsSum is sum of all requests for grouped period
	RequestsSum uint64 `json:"requests_sum,omitempty"`

	// a SizeMaxSeries is max of files size for grouped period [[timestamp, count]]
	// Example: [[1632748614,1],[1632748615,2],[1632748616,2],[1632748617,1]]
	SizeMaxSeries [][]interface{} `json:"size_max_series"`

	// a SizeMean is mean of files size for grouped period [[timestamp, count]]
	// Example: [[1632748614,1],[1632748615,2],[1632748616,2],[1632748617,1]]
	SizeMean [][]interface{} `json:"size_mean_series"`

	// a SizeSumMax is max sum of all files sizes for grouped period
	SizeSumMax uint64 `json:"size_sum_max,omitempty"`

	// a SizeSumMean is mean sum of all files sizes for grouped period
	SizeSumMean uint64 `json:"size_sum_mean,omitempty"`

	// a TrafficInSeries is sum of incoming traffic bytes for grouped period [[timestamp, count]]
	// Example: [[1632748614,1],[1632748615,2],[1632748616,2],[1632748617,1]]
	TrafficInSeries [][]interface{} `json:"traffic_in_series"`

	// a TrafficInSum is sum of incoming  traffic for grouped period
	TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`

	// a TrafficOutWoEdgesSeries is sum of out traffic bytes (only edges) for grouped period [[timestamp, count]]
	// Example: [[1632748614,1],[1632748615,2],[1632748616,2],[1632748617,1]]
	TrafficOutEdgesSeries [][]interface{} `json:"traffic_out_edges_series"`

	// a TrafficOutEdgesSum is sum of out edges traffic for grouped period
	TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`

	// a TrafficOutWoEdgesSeries is sum of out traffic bytes (without edges) for grouped period [[timestamp, count]]
	// Example: [[1632748614,1],[1632748615,2],[1632748616,2],[1632748617,1]]
	TrafficOutWoEdgesSeries [][]interface{} `json:"traffic_out_wo_edges_series"`

	// a TrafficOutWoEdgesSum is sum of out no edges traffic for grouped period
	TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`

	// a TrafficSeries is sum of traffic bytes for grouped period [[timestamp, count]]
	// Example: [[1632748614,1],[1632748615,2],[1632748616,2],[1632748617,1]]
	TrafficSeries [][]interface{} `json:"traffic_series"`

	// a TrafficSum is sum of all traffic for grouped period
	TrafficSum uint64 `json:"traffic_sum,omitempty"`
}

StorageStats storage stats

swagger:model StorageStats

func (*StorageStats) ContextValidate

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

ContextValidate validates this storage stats based on context it is used

func (*StorageStats) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageStats) Validate

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

Validate validates this storage stats

type StorageUsageSeriesEndpointRes

type StorageUsageSeriesEndpointRes struct {

	// data
	Data *StorageUsageSeriesServiceRes `json:"data,omitempty"`
}

StorageUsageSeriesEndpointRes storage usage series endpoint res

swagger:model StorageUsageSeriesEndpointRes

func (*StorageUsageSeriesEndpointRes) ContextValidate

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

ContextValidate validate this storage usage series endpoint res based on the context it is used

func (*StorageUsageSeriesEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageUsageSeriesEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageUsageSeriesEndpointRes) Validate

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

Validate validates this storage usage series endpoint res

type StorageUsageSeriesServiceRes

type StorageUsageSeriesServiceRes struct {

	// a Clients grouped data
	Clients map[string]ClientStats `json:"clients,omitempty"`
}

StorageUsageSeriesServiceRes storage usage series service res

swagger:model StorageUsageSeriesServiceRes

func (*StorageUsageSeriesServiceRes) ContextValidate

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

ContextValidate validate this storage usage series service res based on the context it is used

func (*StorageUsageSeriesServiceRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageUsageSeriesServiceRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageUsageSeriesServiceRes) Validate

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

Validate validates this storage usage series service res

Jump to

Keyboard shortcuts

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