Skip to main content
Module

x/kd_clients/mod.ts>TagClient

Various HTTP clients for miscellaneous use.
Go to Latest
class TagClient
extends GitHubClient
import { TagClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.8/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

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[], Response]>

Gets a page of tags for a repository.

tagExists(tagName: string): Promise<boolean>

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