cloudflare

package module
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

README

cloudflare

A helper Cloudflare client designed for use within Loophole Labs projects

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDisabled = errors.New("cloudflare is disabled")
)

Functions

This section is empty.

Types

type Cloudflare added in v0.1.7

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

func New

func New(options *Options, logger *zerolog.Logger) (*Cloudflare, error)

func (*Cloudflare) Close added in v0.1.7

func (c *Cloudflare) Close() error

func (*Cloudflare) DeleteFunction added in v0.1.7

func (c *Cloudflare) DeleteFunction(identifier string) error

func (*Cloudflare) UploadFunction added in v0.1.7

func (c *Cloudflare) UploadFunction(identifier string, wrapperScript []byte, functions []*bindings.Function) (*bindings.UploadedFunction, error)

func (*Cloudflare) UpstreamRootDomain added in v0.1.8

func (c *Cloudflare) UpstreamRootDomain() string

type Options

type Options struct {
	LogName            string
	Disabled           bool
	UserID             string
	Token              string
	Prefix             string
	UpstreamRootDomain string
}

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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