cloudflarecontroller

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ManagedCNAMERecordCommentMarkFormat = "managed by strrl.dev/cloudflare-tunnel-ingress-controller, tunnel [%s]"
View Source
const WellKnownTunnelDomainFormat = "%s.cfargotunnel.com"

Variables

This section is empty.

Functions

func GetTunnelIdFromTunnelName

func GetTunnelIdFromTunnelName(ctx context.Context, logger logr.Logger, cfClient *cloudflare.API, tunnelName string, accountId string) (string, error)

Types

type DNSOperationCreate

type DNSOperationCreate struct {
	Hostname string
	Type     string
	Content  string
	Comment  string
}

type DNSOperationDelete

type DNSOperationDelete struct {
	OldRecord cloudflare.DNSRecord
}

type DNSOperationUpdate

type DNSOperationUpdate struct {
	OldRecord cloudflare.DNSRecord
	Type      string
	Content   string
	Comment   string
}

type TunnelClient

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

func BootstrapTunnelClientWithTunnelName

func BootstrapTunnelClientWithTunnelName(ctx context.Context, logger logr.Logger, cfClient *cloudflare.API, accountId string, tunnelName string) (*TunnelClient, error)

func NewTunnelClient

func NewTunnelClient(logger logr.Logger, cfClient *cloudflare.API, accountId string, tunnelId string, tunnelName string) *TunnelClient

func (*TunnelClient) FetchTunnelToken

func (t *TunnelClient) FetchTunnelToken(ctx context.Context) (string, error)

func (*TunnelClient) PutExposures

func (t *TunnelClient) PutExposures(ctx context.Context, exposures []exposure.Exposure) error

Jump to

Keyboard shortcuts

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