Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kd_clients/mod.ts>TagClient

Various HTTP clients for miscellaneous use.
Latest
class TagClient
extends GitHubClient
import { TagClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.14/mod.ts";

Provides a client for interacting with GitHub GIT tags.

Constructors

new
TagClient(
ownerName: string,
repoName: string,
token?: string,
)

Initializes a new instance of the TagClient class.

Methods

private
getTagsInternal(page: number, qtyPerPage: number): Promise<[TagModel[], Response]>

Gets a page of tags for a repository.

exists(tagName: string): Promise<boolean>

Searches for a tag with the given tagName in a repository that matches the TagClient.repoName.

getAllTags(): Promise<TagModel[]>

Gets all of the tags in a repository with a name that matches the TagClient.repoName.

getTagByName(tagName: string): Promise<TagModel>

Gets a tag with the given tagName in a repository with a name that matches the TagClient.repoName.

getTags(page: number, qtyPerPage: number): Promise<TagModel[]>

Gets a page of tags for a repository.