testdns

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL