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 ¶
- func Applications(f *cmdutil.Factory) *apiApplications.Client
- func ApplicationsV6(f *cmdutil.Factory) *apiApplicationsV6.Client
- func CRL(f *cmdutil.Factory) *apiCrl.Client
- func CSR(f *cmdutil.Factory) *apiCsr.Client
- func CacheSettings(f *cmdutil.Factory) *apiCacheSetting.ClientV4
- func Connector(f *cmdutil.Factory) *apiConnector.Client
- func ConnectorsV6(f *cmdutil.Factory) *apiConnectorsV6.Client
- func CustomPages(f *cmdutil.Factory) *apiCustomPages.Client
- func CustomPagesV6(f *cmdutil.Factory) *apiCustomPagesV6.Client
- func DNSRecord(f *cmdutil.Factory) *apiDnsRecord.Client
- func DNSSEC(f *cmdutil.Factory) *apiDnssec.Client
- func DNSZone(f *cmdutil.Factory) *apiDnsZone.Client
- func DataStream(f *cmdutil.Factory) *apiDataStream.Client
- func DeploymentsV6(f *cmdutil.Factory) *apiDeploymentsV6.Client
- func DeviceGroups(f *cmdutil.Factory) *apiDeviceGroups.Client
- func DigitalCertificate(f *cmdutil.Factory) *apiDigitalCertificate.Client
- func Domain(f *cmdutil.Factory) *apiDomain.Client
- func EnvironmentsV6(f *cmdutil.Factory) *apiEnvironmentsV6.Client
- func Firewall(f *cmdutil.Factory) *apiFirewall.Client
- func FirewallInstance(f *cmdutil.Factory) *apiFirewallInstance.Client
- func FirewallRules(f *cmdutil.Factory) *apiFirewallRules.Client
- func FirewallsV6(f *cmdutil.Factory) *apiFirewallsV6.Client
- func Function(f *cmdutil.Factory) *apiFunction.Client
- func FunctionInstance(f *cmdutil.Factory) *apiFunctionInstance.Client
- func FunctionsV6(f *cmdutil.Factory) *apiFunctionsV6.Client
- func KV(f *cmdutil.Factory) *apiKv.Client
- func NetworkList(f *cmdutil.Factory) *apiNetworkList.Client
- func NetworkListsV6(f *cmdutil.Factory) *apiNetworkListsV6.Client
- func Origin(f *cmdutil.Factory) *apiOrigin.Client
- func PersonalToken(f *cmdutil.Factory) *apiPersonalToken.Client
- func PersonalTokenFor(f *cmdutil.Factory, token string) *apiPersonalToken.Client
- func RealtimePurge(f *cmdutil.Factory) *apiRealtimePurge.Client
- func RulesEngine(f *cmdutil.Factory) *apiRulesEngine.Client
- func Storage(f *cmdutil.Factory) *apiStorage.Client
- func StorageV6(f *cmdutil.Factory) *apiStorageV6.Client
- func Variables(f *cmdutil.Factory) *apiVariables.Client
- func WAF(f *cmdutil.Factory) *apiWaf.Client
- func WAFExceptions(f *cmdutil.Factory) *apiWafExceptions.Client
- func WAFsV6(f *cmdutil.Factory) *apiWafsV6.Client
- func Workloads(f *cmdutil.Factory) *apiWorkloads.Client
- func WorkloadsV6(f *cmdutil.Factory) *apiWorkloadsV6.Client
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 CacheSettings ¶
func CacheSettings(f *cmdutil.Factory) *apiCacheSetting.ClientV4
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 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 EnvironmentsV6 ¶
func EnvironmentsV6(f *cmdutil.Factory) *apiEnvironmentsV6.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 FunctionInstance ¶
func FunctionInstance(f *cmdutil.Factory) *apiFunctionInstance.Client
func FunctionsV6 ¶
func FunctionsV6(f *cmdutil.Factory) *apiFunctionsV6.Client
func NetworkList ¶
func NetworkList(f *cmdutil.Factory) *apiNetworkList.Client
func NetworkListsV6 ¶
func NetworkListsV6(f *cmdutil.Factory) *apiNetworkListsV6.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 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 WAFExceptions ¶
func WAFExceptions(f *cmdutil.Factory) *apiWafExceptions.Client
func WorkloadsV6 ¶
func WorkloadsV6(f *cmdutil.Factory) *apiWorkloadsV6.Client
Types ¶
This section is empty.