client

package
v0.0.0-...-3ed0934 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameServer

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

NameServer is a Coffee DNS nameserver client

func New

func New(endpoint string, enableTLS bool) (NameServer, error)

New returns a new Nameserver

func (NameServer) CreateRecord

func (c NameServer) CreateRecord(ctx context.Context, rType, rKey, rValue string, ttl int32, force bool) (*api.NameserverCreateRecordResp, error)

CreateRecord creates a DNS record

func (NameServer) DeleteRecord

func (c NameServer) DeleteRecord(ctx context.Context, key string) error

DeleteRecord deletes a DNS record

func (NameServer) GetRecord

func (c NameServer) GetRecord(ctx context.Context, key string) (*api.NameserverGetRecordResp, error)

GetRecord returns a DNS record

func (NameServer) Status

func (c NameServer) Status(ctx context.Context) error

Status returns the status of the nameserver

Jump to

Keyboard shortcuts

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