driver

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
	UserToken string
}

func NewHTTPDriver

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

func (*HTTPDriver) CreateDomain

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

func (*HTTPDriver) ResolvePURL

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

func (*HTTPDriver) SavePURL

func (driver *HTTPDriver) SavePURL(_ 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