Astlide API Reference
GitHub
Preparing search index...
@astlide/core/templates
GcsClientLike
Interface GcsClientLike
What the store uses of a
Storage
client (from
@google-cloud/storage
).
interface
GcsClientLike
{
bucket
(
name
:
string
,
)
:
{
file
(
name
:
string
,
)
:
{
delete
(
options
:
{
ignoreNotFound
:
boolean
}
)
:
Promise
<
unknown
>
;
download
()
:
Promise
<
[
Uint8Array
<
ArrayBufferLike
>
]
>
;
save
(
data
:
Buffer
,
options
:
{
contentType
:
string
;
resumable
:
boolean
}
,
)
:
Promise
<
unknown
>
;
}
;
getFiles
(
query
:
{
autoPaginate
:
boolean
;
prefix
:
string
}
,
)
:
Promise
<
[
{
name
:
string
}
[]
,
...
unknown
[]
]
>
;
}
;
}
Index
Methods
bucket
Methods
bucket
bucket
(
name
:
string
,
)
:
{
file
(
name
:
string
,
)
:
{
delete
(
options
:
{
ignoreNotFound
:
boolean
}
)
:
Promise
<
unknown
>
;
download
()
:
Promise
<
[
Uint8Array
<
ArrayBufferLike
>
]
>
;
save
(
data
:
Buffer
,
options
:
{
contentType
:
string
;
resumable
:
boolean
}
,
)
:
Promise
<
unknown
>
;
}
;
getFiles
(
query
:
{
autoPaginate
:
boolean
;
prefix
:
string
}
,
)
:
Promise
<
[
{
name
:
string
}
[]
,
...
unknown
[]
]
>
;
}
Parameters
name
:
string
Returns
{
file
(
name
:
string
,
)
:
{
delete
(
options
:
{
ignoreNotFound
:
boolean
}
)
:
Promise
<
unknown
>
;
download
()
:
Promise
<
[
Uint8Array
<
ArrayBufferLike
>
]
>
;
save
(
data
:
Buffer
,
options
:
{
contentType
:
string
;
resumable
:
boolean
}
,
)
:
Promise
<
unknown
>
;
}
;
getFiles
(
query
:
{
autoPaginate
:
boolean
;
prefix
:
string
}
,
)
:
Promise
<
[
{
name
:
string
}
[]
,
...
unknown
[]
]
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
bucket
GitHub
Astlide API Reference
Loading...
What the store uses of a
Storageclient (from@google-cloud/storage).