cloudflare

package
v0.30.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// CustomHostnames returns the service for managing custom hostnames in Cloudflare.
	CustomHostnames() CustomHostnamesService
}

Client defines the interface for the Cloudflare client. It provides access to various Cloudflare API services.

func NewClient

func NewClient(apiKey string) Client

NewClient creates a new Cloudflare client using the provided API key. It returns an implementation of the Client interface.

type CustomHostnamesService

type CustomHostnamesService interface {
	// New creates a new custom hostname in Cloudflare with the provided parameters.
	New(context.Context, custom_hostnames.CustomHostnameNewParams, ...option.RequestOption) (*custom_hostnames.CustomHostnameNewResponse, error)
	// Delete removes a custom hostname from Cloudflare using the provided hostname ID and parameters.
	Delete(context.Context, string, custom_hostnames.CustomHostnameDeleteParams, ...option.RequestOption) (*custom_hostnames.CustomHostnameDeleteResponse, error)
	// Get retrieves a custom hostname from Cloudflare using the provided hostname ID and parameters.
	Get(context.Context, string, custom_hostnames.CustomHostnameGetParams, ...option.RequestOption) (*custom_hostnames.CustomHostnameGetResponse, error)
}

CustomHostnamesService defines the interface for interacting with Cloudflare's custom hostnames API. It provides methods for creating and deleting custom hostnames.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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