git_store/types
Types
pub type CommitInfo {
CommitInfo(
sha: String,
url: String,
html_url: String,
message: String,
)
}
Constructors
-
CommitInfo( sha: String, url: String, html_url: String, message: String, )
pub type DirListing {
DirListing(
name: String,
path: String,
sha: String,
size: Int,
type_: String,
download_url: option.Option(String),
)
}
Constructors
-
DirListing( name: String, path: String, sha: String, size: Int, type_: String, download_url: option.Option(String), )
pub type FileCreateResponse {
FileCreateResponse(content: FileInfo, commit: CommitInfo)
}
Constructors
-
FileCreateResponse(content: FileInfo, commit: CommitInfo)
pub type FileDeleteResponse {
FileDeleteResponse(
content: option.Option(String),
commit: CommitInfo,
)
}
Constructors
-
FileDeleteResponse( content: option.Option(String), commit: CommitInfo, )
pub type FileInfo {
FileInfo(
name: String,
path: String,
sha: String,
size: Int,
url: String,
html_url: String,
git_url: String,
download_url: String,
type_: String,
)
}
Constructors
-
FileInfo( name: String, path: String, sha: String, size: Int, url: String, html_url: String, git_url: String, download_url: String, type_: String, )
Available file operations Message is the commit message Content is the base64 encoded text content of the file
pub type FileOperation {
FileCreate(message: String, content: String)
FileUpdate(message: String, content: String, sha: String)
FileDelete(message: String, sha: String)
}
Constructors
-
FileCreate(message: String, content: String) -
FileUpdate(message: String, content: String, sha: String) -
FileDelete(message: String, sha: String)
pub type FileResponse {
FileResponse(
content: String,
encoding: String,
sha: String,
size: Int,
)
}
Constructors
-
FileResponse( content: String, encoding: String, sha: String, size: Int, )
pub type FileUpdateResponse {
FileUpdateResponse(content: FileInfo, commit: CommitInfo)
}
Constructors
-
FileUpdateResponse(content: FileInfo, commit: CommitInfo)