debian-mirror-gitlab/spec/frontend/registry/explorer/mock_data.js

100 lines
2.2 KiB
JavaScript
Raw Normal View History

2020-03-13 15:44:24 +05:30
export const headers = {
'X-PER-PAGE': 5,
'X-PAGE': 1,
'X-TOTAL': 13,
'X-TOTAL_PAGES': 1,
'X-NEXT-PAGE': null,
'X-PREVIOUS-PAGE': null,
};
export const reposServerResponse = [
{
destroy_path: 'path',
id: '123',
location: 'location',
path: 'foo',
tags_path: 'tags_path',
},
{
destroy_path: 'path_',
id: '456',
location: 'location_',
path: 'bar',
tags_path: 'tags_path_',
},
];
export const registryServerResponse = [
{
name: 'centos7',
short_revision: 'b118ab5b0',
revision: 'b118ab5b0e90b7cb5127db31d5321ac14961d097516a8e0e72084b6cdc783b43',
total_size: 679,
layers: 19,
location: 'location',
created_at: 1505828744434,
destroy_path: 'path_',
},
{
name: 'centos6',
short_revision: 'b118ab5b0',
revision: 'b118ab5b0e90b7cb5127db31d5321ac14961d097516a8e0e72084b6cdc783b43',
total_size: 679,
layers: 19,
location: 'location',
created_at: 1505828744434,
},
];
export const imagesListResponse = {
data: [
{
path: 'foo',
location: 'location',
destroy_path: 'path',
},
{
path: 'bar',
location: 'location-2',
destroy_path: 'path-2',
},
],
headers,
};
export const tagsListResponse = {
data: [
{
2020-06-23 00:09:42 +05:30
name: 'centos6',
2020-03-13 15:44:24 +05:30
revision: 'b118ab5b0e90b7cb5127db31d5321ac14961d097516a8e0e72084b6cdc783b43',
short_revision: 'b118ab5b0',
size: 19,
layers: 10,
location: 'location',
2020-07-28 23:09:34 +05:30
path: 'bar:centos6',
created_at: '2020-06-29T10:23:51.766+00:00',
2020-03-13 15:44:24 +05:30
destroy_path: 'path',
2020-07-28 23:09:34 +05:30
digest: 'sha256:1ab51d519f574b636ae7788051c60239334ae8622a9fd82a0cf7bae7786dfd5c',
2020-03-13 15:44:24 +05:30
},
{
2020-06-23 00:09:42 +05:30
name: 'test-tag',
2020-03-13 15:44:24 +05:30
revision: 'b969de599faea2b3d9b6605a8b0897261c571acaa36db1bdc7349b5775b4e0b4',
short_revision: 'b969de599',
size: 19,
layers: 10,
2020-07-28 23:09:34 +05:30
path: 'foo:test-tag',
2020-03-13 15:44:24 +05:30
location: 'location-2',
2020-07-28 23:09:34 +05:30
created_at: '2020-06-29T10:23:51.766+00:00',
digest: 'sha256:1ab51d519f574b636ae7788051c60239334ae8622a9fd82a0cf7bae7736dfd5c',
2020-03-13 15:44:24 +05:30
},
],
headers,
};
2020-05-24 23:13:21 +05:30
export const imagePagination = {
perPage: 10,
page: 1,
total: 14,
totalPages: 2,
nextPage: 2,
};