Documentation
¶
Index ¶
- Constants
- type BucketDto
- type Client
- type ClientListEndpointRes
- type ClientListServiceRes
- type ClientLocationRes
- type ClientStats
- type Credentials
- type DataMeta
- type ErrResponse
- type Key
- type KeyListEndpointRes
- type Location
- type LocationStats
- type RedefinedVar
- 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 ( // 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 ( // StorageProvisioningStatusOk captures enum value "ok" StorageProvisioningStatusOk string = "ok" // StorageProvisioningStatusDeleting captures enum value "deleting" StorageProvisioningStatusDeleting string = "deleting" // StorageProvisioningStatusUpdating captures enum value "updating" StorageProvisioningStatusUpdating string = "updating" )
const ( // ClientLocationResNameSDashDt2 captures enum value "s-dt2" ClientLocationResNameSDashDt2 string = "s-dt2" )
const ( // ClientLocationResTypeS3 captures enum value "s3" ClientLocationResTypeS3 string = "s3" )
const ( // StorageLocationSDashDt2 captures enum value "s-dt2" StorageLocationSDashDt2 string = "s-dt2" )
const ( // StorageTypeS3 captures enum value "s3" StorageTypeS3 string = "s3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketDto ¶
type BucketDto struct {
// Number of days after which the objects in the bucket are considered expired. <br>
// Note: <ul>
// <li>No field is displayed if the lifecycle is not set</li>
// </ul>
Lifecycle int64 `json:"lifecycle,omitempty"`
// Bucket 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 {
// Storage address
Address string `json:"address,omitempty"`
// Shows if you are allowed to create more storages.
// Has one of the values: <br><ul>
// <li><b>allow</b> — you can create more storages;</li>
// <li><b>deny</b> — you cannot create any more storages</li>
// </ul>
// Enum: [deny allow]
AllowForNewStorage string `json:"allow_for_new_storage,omitempty"`
// Storage location ID
ID int64 `json:"id,omitempty"`
// Storage region name
// Example: s-dt2
// Enum: [s-dt2]
Name string `json:"name,omitempty"`
// Storage type
// Enum: [s3]
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 {
// Maximum number of files within the specified time period
FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`
// Your account ID
ID int64 `json:"id,omitempty"`
// Statistics grouped by storage locations
Locations map[string]LocationStats `json:"locations,omitempty"`
// Total number of incoming requests within the specified time period
RequestsInSum uint64 `json:"requests_in_sum,omitempty"`
// Total number of requests from the edges within the specified time period
RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`
// Total number of outсoming requests without requests from the edges within the specified time period
RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`
// Total number of requests within the specified time period
RequestsSum uint64 `json:"requests_sum,omitempty"`
// RequestsWoEdgesSum is sum of requests without edges out requests for grouped period
RequestsWoEdgesSum uint64 `json:"requests_wo_edges_sum,omitempty"`
// Maximum amount of all file sizes within the specified time period
SizeSumMax uint64 `json:"size_sum_max,omitempty"`
// Mean amount of all file sizes within the specified time period
SizeSumMean uint64 `json:"size_sum_mean,omitempty"`
// Total amount of incoming traffic within the specified time period
TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`
// Total number of traffic from the edges within the specified time period
TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`
// Total number of outсoming traffic without requests from the edges within the specified time period
TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`
// Total amount of traffic within the specified time 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 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 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 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 {
// Maximum number of files within the specified time period
FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`
// Location name
Name string `json:"name,omitempty"`
// Total number of incoming requests within the specified time period
RequestsInSum uint64 `json:"requests_in_sum,omitempty"`
// Total number of requests from the edges within the specified time period
RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`
// Total number of outсoming requests without requests from the edges within the specified time period
RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`
// Total number of requests within the specified time period
RequestsSum uint64 `json:"requests_sum,omitempty"`
// RequestsWoEdgesSum is sum of requests without edges out requests for grouped period
RequestsWoEdgesSum uint64 `json:"requests_wo_edges_sum,omitempty"`
// Maximum amount of all file sizes within the specified time period
SizeSumMax uint64 `json:"size_sum_max,omitempty"`
// Mean amount of all file sizes within the specified time period
SizeSumMean uint64 `json:"size_sum_mean,omitempty"`
// a Storages grouped data
Storages map[string]StorageStats `json:"storages,omitempty"`
// Total amount of incoming traffic within the specified time period
TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`
// Total number of traffic from the edges within the specified time period
TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`
// Total number of outсoming traffic without requests from the edges within the specified time period
TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`
// Total amount of traffic within the specified time 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 RedefinedVar ¶
type RedefinedVar struct {
// for
For interface{} `json:"for,omitempty"`
// ID
ID int64 `json:"id,omitempty"`
// replace to
ReplaceTo string `json:"replace_to,omitempty"`
// resource
Resource string `json:"resource,omitempty"`
}
RedefinedVar RedefinedVar entity
swagger:model RedefinedVar
func (*RedefinedVar) ContextValidate ¶
ContextValidate validates this redefined var based on context it is used
func (*RedefinedVar) MarshalBinary ¶
func (m *RedefinedVar) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RedefinedVar) UnmarshalBinary ¶
func (m *RedefinedVar) 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 {
// Maximum number of files within the specified time period
FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`
// Total number of incoming requests within the specified time period
RequestsInSum uint64 `json:"requests_in_sum,omitempty"`
// Total number of requests from the edges within the specified time period
RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`
// Total number of outсoming requests without requests from the edges within the specified time period
RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`
// Total number of requests within the specified time period
RequestsSum uint64 `json:"requests_sum,omitempty"`
// RequestsWoEdgesSum is sum of requests without edges out requests for grouped period
RequestsWoEdgesSum uint64 `json:"requests_wo_edges_sum,omitempty"`
// Maximum amount of all file sizes within the specified time period
SizeSumMax uint64 `json:"size_sum_max,omitempty"`
// Mean amount of all file sizes within the specified time period
SizeSumMean uint64 `json:"size_sum_mean,omitempty"`
// Total amount of incoming traffic within the specified time period
TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`
// Total number of traffic from the edges within the specified time period
TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`
// Total number of outсoming traffic without requests from the edges within the specified time period
TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`
// Total amount of traffic within the specified time 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 {
// Storage address
Address string `json:"address,omitempty"`
// Indicates whether storage can be recovered after deletion.<br>
// Has one of the values:<ul>
// <li><b>true</b> — this storage can be recovered within 2 weeks of deletion;</li>
// <li><b>false</b> — this storage cannot be recovered anymore</li>
// </ul>
CanRestore bool `json:"can_restore,omitempty"`
// Client ID
// Example: 2345
ClientID int64 `json:"client_id,omitempty"`
// Storage creation date and time in ISO 8601, UTC format
// Example: 2022-07-21 12:00:04.103287
CreatedAt string `json:"created_at,omitempty"`
// custom config file
CustomConfigFile bool `json:"custom_config_file,omitempty"`
// Storage deletion date and time in ISO 8601, UTC format
// Example: 2022-07-25 12:00:45.102487
DeletedAt string `json:"deleted_at,omitempty"`
// Is disabled http access to storage without credentials
DisableHTTP bool `json:"disable_http,omitempty"`
// expires
Expires string `json:"expires,omitempty"`
// Storage ID
// Example: 123
ID int64 `json:"id,omitempty"`
// Storage region name
// Enum: [s-dt2]
Location string `json:"location,omitempty"`
// Storage name
// Example: my-test-storage
Name string `json:"name,omitempty"`
// Storage status
// Enum: [ok deleting updating]
ProvisioningStatus string `json:"provisioning_status,omitempty"`
// Reseller ID
// Example: 4765
ResellerID int64 `json:"reseller_id,omitempty"`
// rewrite rules
RewriteRules map[string]string `json:"rewrite_rules,omitempty"`
// server alias
ServerAlias string `json:"server_alias,omitempty"`
// Type of storage
// Enum: [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 {
// CORS configuration details
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 {
// Information about the storages in your account
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 {
// Statistics grouped by buckets
// Example: {"bucketA":[[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]}
BucketsSeries map[string][][]interface{} `json:"buckets_series,omitempty"`
// Maximum number of files within the specified time period
FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`
// Storage name
Name string `json:"name,omitempty"`
// Total number of incoming requests within the specified time period, displayed in series format.<br>
// Shows 2 values:<ul>
// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
// <li><b>count</b> — number of requests</li>
// </ul>
// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
RequestsInSeries [][]interface{} `json:"requests_in_series"`
// Total number of incoming requests within the specified time period
RequestsInSum uint64 `json:"requests_in_sum,omitempty"`
// Total number of requests from the edges within the specified time period, displayed in series format.<br>
// Shows 2 values:<ul>
// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
// <li><b>count</b> — number of requests</li>
// </ul>
// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
RequestsOutEdgesSeries [][]interface{} `json:"requests_out_edges_series"`
// Total number of requests from the edges within the specified time period
RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`
// Total amount of outсoming requests without requests from the edges within the specified time period, displayed
// in series format.<br>
// Shows 2 values:<ul>
// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
// <li><b>count</b> — amount of requests</li>
// </ul>
// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
RequestsOutWoEdgesSeries [][]interface{} `json:"requests_out_wo_edges_series"`
// Total number of outсoming requests without requests from the edges within the specified time period
RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`
// Total number of requests within the specified time period, displayed in series format.<br>
// Shows 2 values:<ul>
// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
// <li><b>count</b> — number of requests</li>
// </ul>
// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
RequestsSeries [][]interface{} `json:"requests_series"`
// Total number of requests within the specified time period
RequestsSum uint64 `json:"requests_sum,omitempty"`
// Total number of outсoming requests without requests from the edges within the specified time period, displayed in series format.<br>
// Shows 2 values:<ul>
// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
// <li><b>count</b> — number of requests</li>
// </ul>
// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
RequestsWoEdgesSeries [][]interface{} `json:"requests_wo_edges_series"`
// RequestsWoEdgesSum is sum of requests without edges out requests for grouped period
RequestsWoEdgesSum uint64 `json:"requests_wo_edges_sum,omitempty"`
// Maximum amount of all file sizes within the specified time period, displayed in series format.<br>
// Shows 2 values:<ul>
// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
// <li><b>count</b> — maximum amount of all file sizes</li>
// </ul>
// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
SizeMaxSeries [][]interface{} `json:"size_max_series"`
// Mean amount of all file sizes within the specified time period, displayed in series format.<br>
// Shows 2 values:<ul>
// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
// <li><b>count</b> — mean amount of all file sizes</li>
// </ul>
// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
SizeMean [][]interface{} `json:"size_mean_series"`
// Maximum amount of all file sizes within the specified time period
SizeSumMax uint64 `json:"size_sum_max,omitempty"`
// Mean amount of all file sizes within the specified time period
SizeSumMean uint64 `json:"size_sum_mean,omitempty"`
// Total amount of incoming traffic within the specified time period, displayed in series format.<br>
// Shows 2 values:<ul>
// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
// <li><b>count</b> — amount of traffic</li>
// </ul>
// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
TrafficInSeries [][]interface{} `json:"traffic_in_series"`
// Total amount of incoming traffic within the specified time period
TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`
// Total amount of outсoming traffic from the edges within the specified time period, displayed in series format.<br>
// Shows 2 values:<ul>
// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
// <li><b>count</b> — amount of traffic</li>
// </ul>
// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
TrafficOutEdgesSeries [][]interface{} `json:"traffic_out_edges_series"`
// Total number of traffic from the edges within the specified time period
TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`
// Total amount of outсoming traffic without traffic from the edges within the specified time period, displayed
// in series format.<br>
// Shows 2 values:<ul>
// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
// <li><b>count</b> — amount of traffic</li>
// </ul>
// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
TrafficOutWoEdgesSeries [][]interface{} `json:"traffic_out_wo_edges_series"`
// Total number of outсoming traffic without requests from the edges within the specified time period
TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`
// Total amount of traffic within the specified time period, displayed in series format.<br>
// Shows 2 values:<ul>
// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
// <li><b>count</b> — amount of traffic</li>
// </ul>
// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
TrafficSeries [][]interface{} `json:"traffic_series"`
// Total amount of traffic within the specified time 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 {
// Statistics grouped by a specific account
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_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
- key.go
- key_list_endpoint_res.go
- location.go
- location_stats.go
- redefined_var.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