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 Controller

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

Controller is a Coffee DNS controlplane client

func New

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

New returns a new Controller

func (Controller) CreateRecord

func (c Controller) CreateRecord(rType, rKey, rValue string, ttl int32, force bool) (string, error)

CreateRecord creates a DNS record

func (Controller) DeleteRecord

func (c Controller) DeleteRecord(key string) error

DeleteRecord deletes a dns record for the given key

func (Controller) GetRecord

func (c Controller) GetRecord(key string) (string, error)

GetRecord returns a DNS record for the given key

func (Controller) Status

func (c Controller) Status() error

Status returns the controller's status

Jump to

Keyboard shortcuts

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