provider

package
v1.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidID                   = errors.New("Invalid id")
	ErrInvalidDomainName           = errors.New("Invalid domain name")
	ErrInvalidDomainDate           = errors.New("Invalid domain date")
	ErrInvalidDomainRedirectTarget = errors.New("Invalid domain redirect target")
	ErrInvalidRedirectStatusCode   = errors.New("Invalid redirect http status code")
)

Functions

This section is empty.

Types

type PathList

type PathList []PathMappingEntry

PathList model

type PathMappingEntry

type PathMappingEntry struct {
	From string `json:"from"`
	To   string `json:"to"`
}

PathMappingEntry model

type Provider

type Provider interface {
	Bootstrap(ctx context.Context) error

	AllowHostPolicy(ctx context.Context, host string) error

	CreateDomain(ctx context.Context, domain *pb.Domain) (*pb.Domain, error)
	DeleteDomain(ctx context.Context, domain *pb.Domain) (bool, error)
	UpdateDomain(ctx context.Context, domain *pb.Domain) (*pb.Domain, error)
	ListDomains(ctx context.Context) ([]*pb.Domain, error)
	GetDomain(ctx context.Context, domain *pb.Domain) (*pb.Domain, error)

	Name() string

	// confirm to the cache interface
	autocert.Cache
}

Provider defines the interface to a certificate provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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