-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCDNInterface.php
executable file
·76 lines (66 loc) · 1.14 KB
/
CDNInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* proyectoComunidad
*
* @package proyectoComunidad
*/
/**
* CDNInterface
*
* Interface que debe implementar CDN para asegurar la compatibilidad con
* Cloudfiles
*
* @package CDN
*/
interface CDNInterface {
/**
* __construct
*/
public function __construct();
/**
* set_container
*
* @param string $name
*/
public function set_container($name);
/**
* create_container
*
* @param string $name
*/
public function create_container($name);
/**
* delete_container
*
* @param string $name
*/
public function delete_container($name);
/**
* list_containers
*/
public function list_containers();
/**
* list_container_objects
*/
public function list_container_objects();
/**
* write_file
*
* @param string $file
* @param string $filename
* @param string $filetype
*/
public function write_file($file, $filename = null, $filetype = null);
/**
* get_object
*
* @param string $file
*/
public function get_object($file);
/**
* getContentType
*
* @param string $filename
*/
public function getContentType($filename);
}