Documentation
¶
Overview ¶
Package qwiltcdn
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2024 Qwilt Inc.
Package qwiltcdn ¶
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2024 Qwilt Inc.
Package qwiltcdn ¶
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2024 Qwilt Inc.
Package qwiltcdn ¶
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2024 Qwilt Inc.
Package qwiltcdn ¶
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2024 Qwilt Inc.
Package qwiltcdn ¶
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2024 Qwilt Inc.
Package qwiltcdn ¶
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2024 Qwilt Inc.
Package qwiltcdn ¶
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2024 Qwilt Inc.
Package qwiltcdn ¶
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2024 Qwilt Inc.
Package qwiltcdn ¶
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2024 Qwilt Inc.
Index ¶
- Constants
- Variables
- func NewCdnProvider(version string) *qwiltCDNProvider
- func NewCertificateResource() resource.Resource
- func NewCertificatesDataSource() datasource.DataSource
- func NewSiteActivationResource() resource.Resource
- func NewSiteActivationStagingResource() resource.Resource
- func NewSiteConfigResource() resource.Resource
- func NewSiteResource() resource.Resource
- func NewSitesDataSource() datasource.DataSource
- type TerraformConfigBuilder
- func (b *TerraformConfigBuilder) Build() string
- func (b *TerraformConfigBuilder) CertResource(name, pk, cert, desc string) *TerraformConfigBuilder
- func (b *TerraformConfigBuilder) DelCertResource(name string) *TerraformConfigBuilder
- func (b *TerraformConfigBuilder) DelSiteActivationResource(name string) *TerraformConfigBuilder
- func (b *TerraformConfigBuilder) DelSiteCfgResource(name string) *TerraformConfigBuilder
- func (b *TerraformConfigBuilder) DelSiteResource(name string) *TerraformConfigBuilder
- func (b *TerraformConfigBuilder) SiteActivationResource(name string) *TerraformConfigBuilder
- func (b *TerraformConfigBuilder) SiteActivationStagingResource(name string) *TerraformConfigBuilder
- func (b *TerraformConfigBuilder) SiteConfigResource(name string, host string, changeDesc string) *TerraformConfigBuilder
- func (b *TerraformConfigBuilder) SiteResource(name, siteName string) *TerraformConfigBuilder
- func (b *TerraformConfigBuilder) SitesDataResource(name, siteId string) *TerraformConfigBuilder
Constants ¶
const ( // QwiltCdnProviderConfig is a shared configuration to combine with the actual // test configuration so the CDN client is properly configured. // It is also possible to use the QCDN_ environment variables instead, // such as updating the Makefile and running the testing through that tool. QwiltCdnProviderConfig = ` provider "qwiltcdn" { env_type = "dev" } ` // QwiltCdnProviderConfig is a shared configuration to combine with the actual // test configuration so the CDN client is properly configured. // It is also possible to use the QCDN_ environment variables instead, // such as updating the Makefile and running the testing through that tool. QwiltCdnFullProviderConfig = `` /* 150-byte string literal not displayed */ )
Variables ¶
var ( // TestAccProtoV6ProviderFactories are used to instantiate a provider during // acceptance testing. The factory function will be invoked for every Terraform // CLI command executed to create a provider server to which the CLI can // reattach. TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){ "qwiltcdn": providerserver.NewProtocol6WithError(NewCdnProvider("test"))} )
Functions ¶
func NewCdnProvider ¶
func NewCdnProvider(version string) *qwiltCDNProvider
NewCdnProvider is a helper function to simplify provider server and testing implementation.
func NewCertificateResource ¶
NewCertificateResource is a helper function to simplify the provider implementation.
func NewCertificatesDataSource ¶
func NewCertificatesDataSource() datasource.DataSource
NewCertificatesDataSource is a helper function to simplify the provider implementation.
func NewSiteActivationResource ¶
NewSiteActivationResource is a helper function to simplify the provider implementation.
func NewSiteConfigResource ¶
NewSiteConfigResource is a helper function to simplify the provider implementation.
func NewSiteResource ¶
NewSiteResource is a helper function to simplify the provider implementation.
func NewSitesDataSource ¶
func NewSitesDataSource() datasource.DataSource
NewSitesDataSource is a helper function to simplify the provider implementation.
Types ¶
type TerraformConfigBuilder ¶
type TerraformConfigBuilder struct { Host string // contains filtered or unexported fields }
func NewTerraformConfigBuilder ¶
func NewTerraformConfigBuilder() *TerraformConfigBuilder
func (*TerraformConfigBuilder) Build ¶
func (b *TerraformConfigBuilder) Build() string
func (*TerraformConfigBuilder) CertResource ¶
func (b *TerraformConfigBuilder) CertResource(name, pk, cert, desc string) *TerraformConfigBuilder
func (*TerraformConfigBuilder) DelCertResource ¶
func (b *TerraformConfigBuilder) DelCertResource(name string) *TerraformConfigBuilder
func (*TerraformConfigBuilder) DelSiteActivationResource ¶
func (b *TerraformConfigBuilder) DelSiteActivationResource(name string) *TerraformConfigBuilder
func (*TerraformConfigBuilder) DelSiteCfgResource ¶
func (b *TerraformConfigBuilder) DelSiteCfgResource(name string) *TerraformConfigBuilder
func (*TerraformConfigBuilder) DelSiteResource ¶
func (b *TerraformConfigBuilder) DelSiteResource(name string) *TerraformConfigBuilder
func (*TerraformConfigBuilder) SiteActivationResource ¶
func (b *TerraformConfigBuilder) SiteActivationResource(name string) *TerraformConfigBuilder
func (*TerraformConfigBuilder) SiteActivationStagingResource ¶
func (b *TerraformConfigBuilder) SiteActivationStagingResource(name string) *TerraformConfigBuilder
func (*TerraformConfigBuilder) SiteConfigResource ¶
func (b *TerraformConfigBuilder) SiteConfigResource(name string, host string, changeDesc string) *TerraformConfigBuilder
func (*TerraformConfigBuilder) SiteResource ¶
func (b *TerraformConfigBuilder) SiteResource(name, siteName string) *TerraformConfigBuilder
func (*TerraformConfigBuilder) SitesDataResource ¶
func (b *TerraformConfigBuilder) SitesDataResource(name, siteId string) *TerraformConfigBuilder