View Source Tentacat.Releases.Assets (Tentacat v2.4.0)
Summary
Functions
Delete a release asset.
Edit a release asset.
Get a single release asset.
Get all assets for the given release.
Functions
@spec 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
@spec 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
@spec 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
@spec 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