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 DirResponse {
  DirResponse(List(DirListing))
}

Constructors

pub type FileCreateResponse {
  FileCreateResponse(content: FileInfo, commit: CommitInfo)
}

Constructors

pub type FileDeleteResponse {
  FileDeleteResponse(
    content: option.Option(String),
    commit: CommitInfo,
  )
}

Constructors

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

Search Document