access

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package access provides the Cloudflare Access application lifecycle handler for the reconciler.

Index

Constants

View Source
const HandlerName = "access-app"
View Source
const PolicyHandlerName = "access-policies"

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(accessService AccessManager) *appHandler

func NewPolicyHandler

func NewPolicyHandler(policyService PolicyManager) *policyHandler

Types

type AccessApplicationParams

type AccessApplicationParams struct {
	Name      string
	Domain    string
	Access    domain.AccessConfig
	PolicyIDs []string
}

type AccessManager

type AccessManager interface {
	CreateApplication(ctx context.Context, params AccessApplicationParams) (string, error)
	DeleteApplication(ctx context.Context, appID string) error
	FindApplication(ctx context.Context, domain string) (string, bool, error)
}

type AppInput

type AppInput struct {
	Zone      string              `json:"zone"`
	Subdomain string              `json:"subdomain"`
	Access    domain.AccessConfig `json:"access"`
	PolicyIDs []string            `json:"policy_ids,omitempty"`
}

type AppOutput

type AppOutput struct {
	Zone      string `json:"zone"`
	AppID     string `json:"app_id"`
	Subdomain string `json:"subdomain"`
}

type PolicyInput

type PolicyInput struct {
	Policy domain.Policy `json:"policy"`
}

type PolicyManager

type PolicyManager interface {
	CreatePolicy(ctx context.Context, policy domain.Policy) (string, error)
	DeletePolicy(ctx context.Context, policyID string) error
	FindPolicy(ctx context.Context, name string) (string, bool, error)
}

type PolicyOutput

type PolicyOutput struct {
	Name     string `json:"name"`
	PolicyID string `json:"policy_id"`
}

Jump to

Keyboard shortcuts

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