Tentacat v1.6.0 Tentacat.Releases.Assets View Source
Link to this section Summary
Functions
Delete a release asset
Edit a release asset
Get a single release asset
Get all assets for the given release
Link to this section Functions
Link to this function
delete(client, id, owner, repo)
View Source
delete(client, id, owner, repo)
View Source
delete(Tentacat.Client.t(), integer(), binary(), binary()) ::
Tentacat.response()
delete(Tentacat.Client.t(), integer(), binary(), binary()) :: Tentacat.response()
Delete a release asset
Example
Tentacat.Releases.Assets.delete(client, "23", "elixir-lang", "elixir")
More info at: http:\developer.github.com/v3/repos/releases/#delete-a-release-asset
Link to this function
edit(client, name, id, owner, repo, options \\ [])
View Source
edit(client, name, id, owner, repo, options \\ [])
View Source
edit(Tentacat.Client.t(), binary(), integer(), binary(), binary(), list()) ::
Tentacat.response()
edit(Tentacat.Client.t(), binary(), integer(), binary(), binary(), list()) :: Tentacat.response()
Edit a release asset
Example
Tentacat.Releases.Assets.edit(client, "my-release.tar.gz", 23, "elixir-lang", "elixir", label: "NEW LABEL!")
Options
label
- string
More info at: http:\developer.github.com/v3/repos/releases/#edit-a-release-asset
Link to this function
find(client \\ %Client{}, id, owner, repo)
View Source
find(client \\ %Client{}, id, owner, repo)
View Source
find(Tentacat.Client.t(), integer(), binary(), binary()) :: Tentacat.response()
find(Tentacat.Client.t(), integer(), binary(), binary()) :: Tentacat.response()
Get a single release asset
Example
Tentacat.Releases.Assets.find(23, "elixir-lang", "elixir", client)
More info at: http:\developer.github.com/v3/repos/releases/#get-a-single-release-asset
Link to this function
list(client \\ %Client{}, id, owner, repo)
View Source
list(client \\ %Client{}, id, owner, repo)
View Source
list(Tentacat.Client.t(), integer(), binary(), binary()) :: Tentacat.response()
list(Tentacat.Client.t(), integer(), binary(), binary()) :: Tentacat.response()
Get all assets for the given release
Example
Tentacat.Releases.Assets.list(95071, "elixir-lang", "elixir", client)
More info at: http:\developer.github.com/v3/repos/releases/#list-assets-for-a-release