config

package
v0.0.0-...-d6bbe04 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingCFFields  = errors.New("missing one of CLOUDFLARE_API_TOKEN or (CLOUDFLARE_API_EMAIL and CLOUDFLARE_API_KEY) needs to be set")
	ErrMissingAccountID = errors.New("missing CLOUDFLARE_ACCOUNT_ID needs to be set")
)

Functions

func SetConfigDefaults

func SetConfigDefaults()

Types

type ZeroTrustConfig

type ZeroTrustConfig struct {
	APIEmail  string
	APIKey    string
	APIToken  string
	AccountID string
}

func ParseCloudflareConfig

func ParseCloudflareConfig(obj metav1.Object) ZeroTrustConfig

func (ZeroTrustConfig) IsValid

func (c ZeroTrustConfig) IsValid() (bool, error)

Jump to

Keyboard shortcuts

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