cdn

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 37 Imported by: 0

Documentation

Overview

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 cdn

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.

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 cdn

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 cdn

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 cdn

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 cdn

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 cdn

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 cdn

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 cdn

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 cdn

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 cdn

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

View Source
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 "qwilt" {
	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 = `` /* 144-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func NewCertificateResource

func NewCertificateResource() resource.Resource

NewCertificateResource is a helper function to simplify the provider implementation.

func NewCertificateTemplateTemplateResource added in v0.1.15

func NewCertificateTemplateTemplateResource() resource.Resource

NewCertificateTemplateResource is a helper function to simplify the provider implementation.

func NewCertificateTemplatesDataSource added in v0.1.15

func NewCertificateTemplatesDataSource() datasource.DataSource

NewCertificatesDataSource 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 NewOriginAllowListDataSource added in v0.1.15

func NewOriginAllowListDataSource() datasource.DataSource

NewOriginAllowListDataSource is a helper function to simplify the provider implementation.

func NewSiteActivationResource

func NewSiteActivationResource() resource.Resource

NewSiteActivationResource is a helper function to simplify the provider implementation.

func NewSiteActivationStagingResource

func NewSiteActivationStagingResource() resource.Resource

func NewSiteConfigResource

func NewSiteConfigResource() resource.Resource

NewSiteConfigResource is a helper function to simplify the provider implementation.

func NewSiteResource

func NewSiteResource() resource.Resource

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.

func SetDevOverrides added in v0.1.10

func SetDevOverrides()

Types

type SelfSignedCertGenerator added in v0.1.8

type SelfSignedCertGenerator struct {
	Crt string
	PK  string
}

func NewSelfSignedCertGenerator added in v0.1.8

func NewSelfSignedCertGenerator() *SelfSignedCertGenerator

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) CertificateTemplateDataSource added in v0.1.15

func (b *TerraformConfigBuilder) CertificateTemplateDataSource(name, id string) *TerraformConfigBuilder

func (*TerraformConfigBuilder) CertificateTemplateResource added in v0.1.15

func (b *TerraformConfigBuilder) CertificateTemplateResource(name, commonName, orgName string, sans []string, autoManaged bool) *TerraformConfigBuilder

func (*TerraformConfigBuilder) CertsDataSource

func (b *TerraformConfigBuilder) CertsDataSource(name, certId string) *TerraformConfigBuilder

func (*TerraformConfigBuilder) DelCertResource

func (b *TerraformConfigBuilder) DelCertResource(name string) *TerraformConfigBuilder

func (*TerraformConfigBuilder) DelCertificateTemplateResource added in v0.1.15

func (b *TerraformConfigBuilder) DelCertificateTemplateResource(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) OriginAllowListDataSource added in v0.1.15

func (b *TerraformConfigBuilder) OriginAllowListDataSource(name string) *TerraformConfigBuilder

func (*TerraformConfigBuilder) SiteActivationResource

func (b *TerraformConfigBuilder) SiteActivationResource(name string) *TerraformConfigBuilder

func (*TerraformConfigBuilder) SiteActivationResourceWithCert added in v0.1.8

func (b *TerraformConfigBuilder) SiteActivationResourceWithCert(name string, cert_id, csr_id *int) *TerraformConfigBuilder

func (*TerraformConfigBuilder) SiteActivationResourceWithCertRef added in v0.1.8

func (b *TerraformConfigBuilder) SiteActivationResourceWithCertRef(name string, cert_ref_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) SiteConfigResourceWithTabs added in v0.1.10

func (b *TerraformConfigBuilder) SiteConfigResourceWithTabs(name string, host string, changeDesc string) *TerraformConfigBuilder

func (*TerraformConfigBuilder) SiteResource

func (b *TerraformConfigBuilder) SiteResource(name, siteName string) *TerraformConfigBuilder

func (*TerraformConfigBuilder) SitesDataSource

func (b *TerraformConfigBuilder) SitesDataSource(name, siteId string) *TerraformConfigBuilder

Directories

Path Synopsis
Package client
Package client

Jump to

Keyboard shortcuts

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