uniteddomains

package
v0.0.0-...-fa2b08e Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSchema = "https"

DefaultSchema is the value used for the URL in case no schema is explicitly defined

Functions

func Provider

func Provider() *schema.Provider

Provider returns a schema.Provider for UnitedDomains.

Types

type Client

type Client struct {
	BaseURL    string
	Csrf       string
	CsrfMeta   string
	CsrfScript string
	Email      string
	HTTP       *http.Client
	LoggedIn   bool
	Password   string
	SessionId  string
}

Client is a UnitedDomains client representation

func NewClient

func NewClient(email string, password string, configTLS *tls.Config) (*Client, error)

NewClient returns a new UnitedDomains client

type Config

type Config struct {
	Email         string
	Password      string
	InsecureHTTPS bool
	CACertificate string
}

Config describes de configuration interface of this provider

func (*Config) Client

func (c *Config) Client() (*Client, error)

Client returns a new client for accessing UnitedDomains

Jump to

Keyboard shortcuts

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