registry

package
v0.0.0-...-059d9f2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 43 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package registry constructs the API clients that commands use.

It owns one thing: which service serves a given resource. Before this package existed, every call site spelled out a configuration key -- f.Config.GetString("api_v4_url") and friends -- roughly two hundred times, so moving a resource between API generations meant editing all of them. That is the cost a third generation would otherwise multiply.

A command asks for the client it needs and never names a base URL. When v6 arrives, resolution changes here, in one place, and may start switching on f.APIVersion; the call sites do not change at all.

Note that the mapping is per resource, not per account generation: variables, personal tokens, origins and domains are served by the legacy API even for accounts on v4, which is why a single "current base URL" would be wrong.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Applications

func Applications(f *cmdutil.Factory) *apiApplications.Client

func ApplicationsV6

func ApplicationsV6(f *cmdutil.Factory) *apiApplicationsV6.Client

func CRL

func CRL(f *cmdutil.Factory) *apiCrl.Client

func CSR

func CSR(f *cmdutil.Factory) *apiCsr.Client

func CacheSettings

func CacheSettings(f *cmdutil.Factory) *apiCacheSetting.ClientV4

func Connector

func Connector(f *cmdutil.Factory) *apiConnector.Client

func ConnectorsV6

func ConnectorsV6(f *cmdutil.Factory) *apiConnectorsV6.Client

func CustomPages

func CustomPages(f *cmdutil.Factory) *apiCustomPages.Client

func CustomPagesV6

func CustomPagesV6(f *cmdutil.Factory) *apiCustomPagesV6.Client

func DNSRecord

func DNSRecord(f *cmdutil.Factory) *apiDnsRecord.Client

func DNSSEC

func DNSSEC(f *cmdutil.Factory) *apiDnssec.Client

func DNSZone

func DNSZone(f *cmdutil.Factory) *apiDnsZone.Client

func DataStream

func DataStream(f *cmdutil.Factory) *apiDataStream.Client

func DeploymentsV6

func DeploymentsV6(f *cmdutil.Factory) *apiDeploymentsV6.Client

func DeviceGroups

func DeviceGroups(f *cmdutil.Factory) *apiDeviceGroups.Client

func DigitalCertificate

func DigitalCertificate(f *cmdutil.Factory) *apiDigitalCertificate.Client

func Domain

func Domain(f *cmdutil.Factory) *apiDomain.Client

func EnvironmentsV6

func EnvironmentsV6(f *cmdutil.Factory) *apiEnvironmentsV6.Client

func Firewall

func Firewall(f *cmdutil.Factory) *apiFirewall.Client

func FirewallInstance

func FirewallInstance(f *cmdutil.Factory) *apiFirewallInstance.Client

func FirewallRules

func FirewallRules(f *cmdutil.Factory) *apiFirewallRules.Client

func FirewallsV6

func FirewallsV6(f *cmdutil.Factory) *apiFirewallsV6.Client

func Function

func Function(f *cmdutil.Factory) *apiFunction.Client

func FunctionInstance

func FunctionInstance(f *cmdutil.Factory) *apiFunctionInstance.Client

func FunctionsV6

func FunctionsV6(f *cmdutil.Factory) *apiFunctionsV6.Client

func KV

func KV(f *cmdutil.Factory) *apiKv.Client

func NetworkList

func NetworkList(f *cmdutil.Factory) *apiNetworkList.Client

func NetworkListsV6

func NetworkListsV6(f *cmdutil.Factory) *apiNetworkListsV6.Client

func Origin

func Origin(f *cmdutil.Factory) *apiOrigin.Client

func PersonalToken

func PersonalToken(f *cmdutil.Factory) *apiPersonalToken.Client

PersonalToken builds the client for the credential this invocation uses.

func PersonalTokenFor

func PersonalTokenFor(f *cmdutil.Factory, token string) *apiPersonalToken.Client

PersonalTokenFor builds the client for a specific credential. The profile commands need it when acting on a profile other than the active one.

func RealtimePurge

func RealtimePurge(f *cmdutil.Factory) *apiRealtimePurge.Client

func RulesEngine

func RulesEngine(f *cmdutil.Factory) *apiRulesEngine.Client

func Storage

func Storage(f *cmdutil.Factory) *apiStorage.Client

func StorageV6

func StorageV6(f *cmdutil.Factory) *apiStorageV6.Client

StorageV6 serves the v6 deploy's bucket and credentials. It always talks to the v6 storage API, whatever the factory's APIVersion.

func Variables

func Variables(f *cmdutil.Factory) *apiVariables.Client

func WAF

func WAF(f *cmdutil.Factory) *apiWaf.Client

func WAFExceptions

func WAFExceptions(f *cmdutil.Factory) *apiWafExceptions.Client

func WAFsV6

func WAFsV6(f *cmdutil.Factory) *apiWafsV6.Client

func Workloads

func Workloads(f *cmdutil.Factory) *apiWorkloads.Client

func WorkloadsV6

func WorkloadsV6(f *cmdutil.Factory) *apiWorkloadsV6.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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