package testdns

import "cloud.google.com/go/auth/internal/testutil/testdns"

Package testdns is a light DNS client used for testings to avoid pulling in dependencies.

Index

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a lightweight DNS client for testing.

func NewClient

func NewClient(tp auth.TokenProvider) *Client

NewClient creates a Client using the provided cloud.google.com/go/auth.TokenProvider for authentication.

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, projectID string) error

GetProject calls the GET project endpoint.

Source Files

dns.go

Version
v0.5.2
Published
Jun 24, 2024
Platform
darwin/amd64
Imports
7 packages
Last checked
34 minutes ago

Tools for package owners.