Documentation
¶
Index ¶
- Constants
- type BucketAndStorageName
- type BucketDto
- type Client
- type ClientListEndpointRes
- type ClientListServiceRes
- type ClientLocationRes
- type ClientStats
- type Credentials
- type DataMeta
- type ErrResponse
- type Event
- type EventDescription
- type EventField
- type Events
- type EventsMeta
- type Key
- type KeyListEndpointRes
- type LimitByBytes
- type LimitByCount
- type Location
- type LocationStats
- type RespMeta
- type S3Credentials
- type StatsMetrics
- type Storage
- type StorageGetBucketCorsEndpointRes
- func (m *StorageGetBucketCorsEndpointRes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *StorageGetBucketCorsEndpointRes) MarshalBinary() ([]byte, error)
- func (m *StorageGetBucketCorsEndpointRes) UnmarshalBinary(b []byte) error
- func (m *StorageGetBucketCorsEndpointRes) Validate(formats strfmt.Registry) error
- type StorageListBucketsEndpointRes
- func (m *StorageListBucketsEndpointRes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *StorageListBucketsEndpointRes) MarshalBinary() ([]byte, error)
- func (m *StorageListBucketsEndpointRes) UnmarshalBinary(b []byte) error
- func (m *StorageListBucketsEndpointRes) Validate(formats strfmt.Registry) error
- type StorageListEndpointRes
- func (m *StorageListEndpointRes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *StorageListEndpointRes) MarshalBinary() ([]byte, error)
- func (m *StorageListEndpointRes) UnmarshalBinary(b []byte) error
- func (m *StorageListEndpointRes) Validate(formats strfmt.Registry) error
- type StorageListServiceRes
- type StorageStats
- type StorageUsageSeriesEndpointRes
- func (m *StorageUsageSeriesEndpointRes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *StorageUsageSeriesEndpointRes) MarshalBinary() ([]byte, error)
- func (m *StorageUsageSeriesEndpointRes) UnmarshalBinary(b []byte) error
- func (m *StorageUsageSeriesEndpointRes) Validate(formats strfmt.Registry) error
- type StorageUsageSeriesServiceRes
- func (m *StorageUsageSeriesServiceRes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *StorageUsageSeriesServiceRes) MarshalBinary() ([]byte, error)
- func (m *StorageUsageSeriesServiceRes) UnmarshalBinary(b []byte) error
- func (m *StorageUsageSeriesServiceRes) Validate(formats strfmt.Registry) error
Constants ¶
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" )
const ( // ClientLocationResAllowForNewStorageDeny captures enum value "deny" ClientLocationResAllowForNewStorageDeny string = "deny" // ClientLocationResAllowForNewStorageAllow captures enum value "allow" ClientLocationResAllowForNewStorageAllow string = "allow" )
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" )
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" )
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" )
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 ¶
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
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 ¶
ContextValidate validates this bucket dto based on context it is used
func (*BucketDto) MarshalBinary ¶
MarshalBinary interface implementation
func (*BucketDto) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validates this client based on context it is used
func (*Client) MarshalBinary ¶
MarshalBinary interface implementation
func (*Client) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ClientListEndpointRes ¶
type ClientListEndpointRes struct {
// data
Data *ClientListServiceRes `json:"data,omitempty"`
}
ClientListEndpointRes client list endpoint res
swagger:model ClientListEndpointRes
func (*ClientListEndpointRes) ContextValidate ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
ContextValidate validates this data meta based on context it is used
func (*DataMeta) MarshalBinary ¶
MarshalBinary interface implementation
func (*DataMeta) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ErrResponse ¶
type ErrResponse struct {
// error
Error string `json:"error,omitempty"`
}
ErrResponse err response
swagger:model ErrResponse
func (*ErrResponse) ContextValidate ¶
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
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 ¶
ContextValidate validates this event based on context it is used
func (*Event) MarshalBinary ¶
MarshalBinary interface implementation
func (*Event) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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
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 ¶
ContextValidate validate this events based on the context it is used
func (*Events) MarshalBinary ¶
MarshalBinary interface implementation
func (*Events) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
ContextValidate validates this key based on context it is used
func (*Key) MarshalBinary ¶
MarshalBinary interface implementation
func (*Key) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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
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 ¶
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
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 ¶
ContextValidate validates this location based on context it is used
func (*Location) MarshalBinary ¶
MarshalBinary interface implementation
func (*Location) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
type RespMeta ¶
type RespMeta struct {
// meta
Meta *DataMeta `json:"meta,omitempty"`
}
RespMeta RespMeta Add Meta to response
swagger:model RespMeta
func (*RespMeta) ContextValidate ¶
ContextValidate validate this resp meta based on the context it is used
func (*RespMeta) MarshalBinary ¶
MarshalBinary interface implementation
func (*RespMeta) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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
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 ¶
ContextValidate validate this storage based on the context it is used
func (*Storage) MarshalBinary ¶
MarshalBinary interface implementation
func (*Storage) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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 ¶
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
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 ¶
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
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
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
Source Files
¶
- bucket_and_storage_name.go
- bucket_dto.go
- client.go
- client_list_endpoint_res.go
- client_list_service_res.go
- client_location_res.go
- client_stats.go
- credentials.go
- data_meta.go
- err_response.go
- event.go
- event_description.go
- event_field.go
- events.go
- events_meta.go
- key.go
- key_list_endpoint_res.go
- limit_by_bytes.go
- limit_by_count.go
- location.go
- location_stats.go
- resp_meta.go
- s3_credentials.go
- stats_metrics.go
- storage.go
- storage_get_bucket_cors_endpoint_res.go
- storage_list_buckets_endpoint_res.go
- storage_list_endpoint_res.go
- storage_list_service_res.go
- storage_stats.go
- storage_usage_series_endpoint_res.go
- storage_usage_series_service_res.go