driver

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxWithUserKey added in v0.7.1

func CtxWithUserKey(ctx context.Context, key string) context.Context

Types

type Driver added in v0.7.0

type Driver interface {
	// WithAuth sets the authentication context to be used by this driver.
	WithAuth()
}

type HTTPDriver

type HTTPDriver struct {
	BasePath string
	Client   *http.Client
}

func NewHTTPDriver

func NewHTTPDriver(basePath string, transport http.RoundTripper) *HTTPDriver

func (*HTTPDriver) CreateDomain

func (driver *HTTPDriver) CreateDomain(ctx context.Context, name string) error

func (*HTTPDriver) ResolvePURL

func (driver *HTTPDriver) ResolvePURL(ctx context.Context, domain string, name string) (*url.URL, error)

func (*HTTPDriver) SavePURL

func (driver *HTTPDriver) SavePURL(ctx context.Context, purl *dsl.PURL) (string, error)

Jump to

Keyboard shortcuts

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