Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Asset = Type("Asset", func() {
Required("id", "kind", "sha256", "content_type", "content_length", "created_at", "updated_at")
Attribute("id", String, "The ID of the asset")
Attribute("kind", String, func() {
Enum("openapiv3", "image", "functions", "unknown")
})
Attribute("sha256", String, "The SHA256 hash of the asset")
Attribute("content_type", String, "The content type of the asset")
Attribute("content_length", Int64, "The content length of the asset")
Attribute("created_at", String, func() {
Description("The creation date of the asset.")
Format(FormatDateTime)
})
Attribute("updated_at", String, func() {
Description("The last update date of the asset.")
Format(FormatDateTime)
})
})
View Source
var ListAssetsResult = Type("ListAssetsResult", func() { Required("assets") Attribute("assets", ArrayOf(Asset), "The list of assets") })
View Source
var ServeImageForm = Type("ServeImageForm", func() {
Required("id")
Attribute("id", String, "The ID of the asset to serve")
})
View Source
var ServeImageResult = Type("ServeImageResult", func() {
Required("content_type", "content_length", "last_modified")
Attribute("content_type", String)
Attribute("content_length", Int64)
Attribute("last_modified", String)
Attribute("access_control_allow_origin", String)
})
View Source
var ServeOpenAPIv3Form = Type("ServeOpenAPIv3Form", func() { Required("id", "project_id") security.ByKeyPayload() security.SessionPayload() Attribute("id", String, "The ID of the asset to serve") Attribute("project_id", String, "The procect ID that the asset belongs to") })
View Source
var ServeOpenAPIv3Result = Type("ServeOpenAPIv3Result", func() {
Required("content_type", "content_length", "last_modified")
Attribute("content_type", String)
Attribute("content_length", Int64)
Attribute("last_modified", String)
})
View Source
var UploadFunctionsForm = Type("UploadFunctionsForm", func() { Required("content_type", "content_length") security.ByKeyPayload() security.SessionPayload() security.ProjectPayload() Attribute("content_type", String) Attribute("content_length", Int64) })
View Source
var UploadFunctionsResult = Type("UploadFunctionsResult", func() { Required("asset") Attribute("asset", Asset, "The asset entry that was created in Gram") })
View Source
var UploadImageForm = Type("UploadImageForm", func() { Required("content_type", "content_length") security.ByKeyPayload() security.SessionPayload() security.ProjectPayload() Attribute("content_type", String) Attribute("content_length", Int64) })
View Source
var UploadImageResult = Type("UploadImageResult", func() { Required("asset") Attribute("asset", Asset, "The asset entry that was created in Gram") })
View Source
var UploadOpenAPIv3Form = Type("UploadOpenAPIv3Form", func() { Required("content_type", "content_length") security.ByKeyPayload() security.SessionPayload() security.ProjectPayload() Attribute("content_type", String) Attribute("content_length", Int64) })
View Source
var UploadOpenAPIv3Result = Type("UploadOpenAPIv3Result", func() { Required("asset") Attribute("asset", Asset, "The asset entry that was created in Gram") })
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.