Documentation ¶
Index ¶
- Constants
- func DefaultWAFDeploymentChecker(conn *gofastly.Client) func(wafID string, version int) (*gofastly.WAFVersion, error)
- func Provider() *schema.Provider
- type ACLServiceAttributeHandler
- func (h *ACLServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *ACLServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *ACLServiceAttributeHandler) Register(s *schema.Resource) error
- type BackendServiceAttributeHandler
- func (h *BackendServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *BackendServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *BackendServiceAttributeHandler) Register(s *schema.Resource) error
- type BaseServiceDefinition
- type BigQueryLoggingServiceAttributeHandler
- func (h *BigQueryLoggingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *BigQueryLoggingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *BigQueryLoggingServiceAttributeHandler) Register(s *schema.Resource) error
- type BlobStorageLoggingServiceAttributeHandler
- func (h *BlobStorageLoggingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *BlobStorageLoggingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *BlobStorageLoggingServiceAttributeHandler) Register(s *schema.Resource) error
- type CacheSettingServiceAttributeHandler
- func (h *CacheSettingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *CacheSettingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *CacheSettingServiceAttributeHandler) Register(s *schema.Resource) error
- type CloudfilesServiceAttributeHandler
- func (h *CloudfilesServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *CloudfilesServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *CloudfilesServiceAttributeHandler) Register(s *schema.Resource) error
- type ConditionServiceAttributeHandler
- func (h *ConditionServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *ConditionServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *ConditionServiceAttributeHandler) Register(s *schema.Resource) error
- type Config
- type DatadogServiceAttributeHandler
- func (h *DatadogServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *DatadogServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *DatadogServiceAttributeHandler) Register(s *schema.Resource) error
- type DefaultServiceAttributeHandler
- func (h *DefaultServiceAttributeHandler) GetKey() string
- func (h *DefaultServiceAttributeHandler) GetServiceMetadata() ServiceMetadata
- func (h *DefaultServiceAttributeHandler) HasChange(d *schema.ResourceData) bool
- func (h *DefaultServiceAttributeHandler) MustProcess(d *schema.ResourceData, _ bool) bool
- type DictionaryServiceAttributeHandler
- func (h *DictionaryServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *DictionaryServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *DictionaryServiceAttributeHandler) Register(s *schema.Resource) error
- type DiffResult
- type DigitalOceanServiceAttributeHandler
- func (h *DigitalOceanServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *DigitalOceanServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *DigitalOceanServiceAttributeHandler) Register(s *schema.Resource) error
- type DirectorServiceAttributeHandler
- func (h *DirectorServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *DirectorServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *DirectorServiceAttributeHandler) Register(s *schema.Resource) error
- type DomainServiceAttributeHandler
- func (h *DomainServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *DomainServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *DomainServiceAttributeHandler) Register(s *schema.Resource) error
- type DynamicSnippetServiceAttributeHandler
- func (h *DynamicSnippetServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *DynamicSnippetServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *DynamicSnippetServiceAttributeHandler) Register(s *schema.Resource) error
- type ElasticSearchServiceAttributeHandler
- func (h *ElasticSearchServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *ElasticSearchServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *ElasticSearchServiceAttributeHandler) Register(s *schema.Resource) error
- type FTPServiceAttributeHandler
- func (h *FTPServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *FTPServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *FTPServiceAttributeHandler) Register(s *schema.Resource) error
- type FastlyClient
- type GCSLoggingServiceAttributeHandler
- func (h *GCSLoggingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *GCSLoggingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *GCSLoggingServiceAttributeHandler) Register(s *schema.Resource) error
- type GooglePubSubServiceAttributeHandler
- func (h *GooglePubSubServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *GooglePubSubServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *GooglePubSubServiceAttributeHandler) Register(s *schema.Resource) error
- type GzipServiceAttributeHandler
- func (h *GzipServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *GzipServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *GzipServiceAttributeHandler) Register(s *schema.Resource) error
- type HTTPSLoggingServiceAttributeHandler
- func (h *HTTPSLoggingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *HTTPSLoggingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *HTTPSLoggingServiceAttributeHandler) Register(s *schema.Resource) error
- type HeaderServiceAttributeHandler
- func (h *HeaderServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *HeaderServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *HeaderServiceAttributeHandler) Register(s *schema.Resource) error
- type HealthCheckServiceAttributeHandler
- func (h *HealthCheckServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *HealthCheckServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *HealthCheckServiceAttributeHandler) Register(s *schema.Resource) error
- type HerokuServiceAttributeHandler
- func (h *HerokuServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *HerokuServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *HerokuServiceAttributeHandler) Register(s *schema.Resource) error
- type HoneycombServiceAttributeHandler
- func (h *HoneycombServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *HoneycombServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *HoneycombServiceAttributeHandler) Register(s *schema.Resource) error
- type KafkaServiceAttributeHandler
- func (h *KafkaServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *KafkaServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *KafkaServiceAttributeHandler) Register(s *schema.Resource) error
- type KeyFunc
- type KinesisServiceAttributeHandler
- func (h *KinesisServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *KinesisServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *KinesisServiceAttributeHandler) Register(s *schema.Resource) error
- type LogentriesServiceAttributeHandler
- func (h *LogentriesServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *LogentriesServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *LogentriesServiceAttributeHandler) Register(s *schema.Resource) error
- type LogglyServiceAttributeHandler
- func (h *LogglyServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *LogglyServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *LogglyServiceAttributeHandler) Register(s *schema.Resource) error
- type LogshuttleServiceAttributeHandler
- func (h *LogshuttleServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *LogshuttleServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *LogshuttleServiceAttributeHandler) Register(s *schema.Resource) error
- type NewRelicServiceAttributeHandler
- func (h *NewRelicServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *NewRelicServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *NewRelicServiceAttributeHandler) Register(s *schema.Resource) error
- type OpenstackServiceAttributeHandler
- func (h *OpenstackServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *OpenstackServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *OpenstackServiceAttributeHandler) Register(s *schema.Resource) error
- type PackageServiceAttributeHandler
- func (h *PackageServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *PackageServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *PackageServiceAttributeHandler) Register(s *schema.Resource) error
- type PaperTrailServiceAttributeHandler
- func (h *PaperTrailServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *PaperTrailServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *PaperTrailServiceAttributeHandler) Register(s *schema.Resource) error
- type PlatformTLSCertificatePredicate
- type RequestSettingServiceAttributeHandler
- func (h *RequestSettingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *RequestSettingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *RequestSettingServiceAttributeHandler) Register(s *schema.Resource) error
- type ResponseObjectServiceAttributeHandler
- func (h *ResponseObjectServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *ResponseObjectServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *ResponseObjectServiceAttributeHandler) Register(s *schema.Resource) error
- type S3LoggingServiceAttributeHandler
- func (h *S3LoggingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *S3LoggingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *S3LoggingServiceAttributeHandler) Register(s *schema.Resource) error
- type SFTPServiceAttributeHandler
- func (h *SFTPServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *SFTPServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *SFTPServiceAttributeHandler) Register(s *schema.Resource) error
- type ScalyrServiceAttributeHandler
- func (h *ScalyrServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *ScalyrServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *ScalyrServiceAttributeHandler) Register(s *schema.Resource) error
- type ServiceAttributeDefinition
- func NewServiceACL(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceBackend(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceBigQueryLogging(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceBlobStorageLogging(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceCacheSetting(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceCondition(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceDictionary(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceDirector(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceDomain(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceDynamicSnippet(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceGCSLogging(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceGzip(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceHTTPSLogging(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceHeader(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceHealthCheck(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLogentries(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingCloudfiles(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingDatadog(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingDigitalOcean(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingElasticSearch(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingFTP(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingGooglePubSub(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingHeroku(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingHoneycomb(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingKafka(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingKinesis(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingLoggly(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingLogshuttle(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingNewRelic(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingOpenstack(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingSFTP(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceLoggingScalyr(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServicePackage(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServicePaperTrail(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceRequestSetting(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceResponseObject(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceS3Logging(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceSettings() ServiceAttributeDefinition
- func NewServiceSnippet(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceSplunk(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceSumologic(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceSyslog(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceVCL(sa ServiceMetadata) ServiceAttributeDefinition
- func NewServiceWAF(sa ServiceMetadata) ServiceAttributeDefinition
- type ServiceDefinition
- type ServiceMetadata
- type SetDiff
- type SettingsServiceAttributeHandler
- func (h *SettingsServiceAttributeHandler) HasChange(d *schema.ResourceData) bool
- func (h *SettingsServiceAttributeHandler) MustProcess(d *schema.ResourceData, initialVersion bool) bool
- func (h *SettingsServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *SettingsServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *SettingsServiceAttributeHandler) Register(s *schema.Resource) error
- type SnippetServiceAttributeHandler
- func (h *SnippetServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *SnippetServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *SnippetServiceAttributeHandler) Register(s *schema.Resource) error
- type SplunkServiceAttributeHandler
- func (h *SplunkServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *SplunkServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *SplunkServiceAttributeHandler) Register(s *schema.Resource) error
- type SumologicServiceAttributeHandler
- func (h *SumologicServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *SumologicServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *SumologicServiceAttributeHandler) Register(s *schema.Resource) error
- type SyslogServiceAttributeHandler
- func (h *SyslogServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *SyslogServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *SyslogServiceAttributeHandler) Register(s *schema.Resource) error
- type TLSActivationPredicate
- type TLSCertificatePredicate
- type TLSDomainPredicate
- type TLSPrivateKeyPredicate
- type TLSSubscriptionPredicate
- type VCLLoggingAttributes
- type VCLServiceAttributeHandler
- func (h *VCLServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
- func (h *VCLServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *VCLServiceAttributeHandler) Register(s *schema.Resource) error
- type WAFDeploymentChecker
- type WAFDeploymentStatusCheck
- type WAFServiceAttributeHandler
- func (h *WAFServiceAttributeHandler) Process(d *schema.ResourceData, serviceVersion int, conn *gofastly.Client) error
- func (h *WAFServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
- func (h *WAFServiceAttributeHandler) Register(s *schema.Resource) error
Constants ¶
const ( // ServiceTypeVCL is the type for VCL services. ServiceTypeVCL = "vcl" // ServiceTypeCompute is the type for Compute services. ServiceTypeCompute = "wasm" )
const ( WAFStatusCheckDelay = 5 * time.Second WAFStatusCheckMinTimeout = 5 * time.Second )
const TerraformProviderProductUserAgent = "terraform-provider-fastly"
Variables ¶
This section is empty.
Functions ¶
func DefaultWAFDeploymentChecker ¶ added in v0.20.3
Types ¶
type ACLServiceAttributeHandler ¶ added in v0.20.3
type ACLServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*ACLServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *ACLServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*ACLServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *ACLServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type BackendServiceAttributeHandler ¶ added in v0.20.3
type BackendServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*BackendServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *BackendServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*BackendServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *BackendServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type BaseServiceDefinition ¶ added in v0.20.3
type BaseServiceDefinition struct { Attributes []ServiceAttributeDefinition Type string }
BaseServiceDefinition is the base implementation of the BaseServiceDefinition interface.
func (*BaseServiceDefinition) GetAttributeHandler ¶ added in v0.20.3
func (d *BaseServiceDefinition) GetAttributeHandler() []ServiceAttributeDefinition
func (*BaseServiceDefinition) GetType ¶ added in v0.20.3
func (d *BaseServiceDefinition) GetType() string
type BigQueryLoggingServiceAttributeHandler ¶ added in v0.20.3
type BigQueryLoggingServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*BigQueryLoggingServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *BigQueryLoggingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*BigQueryLoggingServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *BigQueryLoggingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type BlobStorageLoggingServiceAttributeHandler ¶ added in v0.20.3
type BlobStorageLoggingServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*BlobStorageLoggingServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *BlobStorageLoggingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*BlobStorageLoggingServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *BlobStorageLoggingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type CacheSettingServiceAttributeHandler ¶ added in v0.20.3
type CacheSettingServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*CacheSettingServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *CacheSettingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*CacheSettingServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *CacheSettingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type CloudfilesServiceAttributeHandler ¶ added in v0.20.3
type CloudfilesServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*CloudfilesServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *CloudfilesServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*CloudfilesServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *CloudfilesServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type ConditionServiceAttributeHandler ¶ added in v0.20.3
type ConditionServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*ConditionServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *ConditionServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*ConditionServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *ConditionServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type Config ¶
func (*Config) Client ¶
func (c *Config) Client() (*FastlyClient, diag.Diagnostics)
type DatadogServiceAttributeHandler ¶ added in v0.20.3
type DatadogServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*DatadogServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *DatadogServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*DatadogServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *DatadogServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type DefaultServiceAttributeHandler ¶ added in v0.20.3
type DefaultServiceAttributeHandler struct {
// contains filtered or unexported fields
}
DefaultServiceAttributeHandler provides a base implementation for ServiceAttributeDefinition.
func (*DefaultServiceAttributeHandler) GetKey ¶ added in v0.20.3
func (h *DefaultServiceAttributeHandler) GetKey() string
GetKey is provided since most attributes will just use their private "key" for interacting with the service.
func (*DefaultServiceAttributeHandler) GetServiceMetadata ¶ added in v0.20.3
func (h *DefaultServiceAttributeHandler) GetServiceMetadata() ServiceMetadata
GetServiceMetadata is provided to allow internal methods to get the service Metadata
func (*DefaultServiceAttributeHandler) HasChange ¶ added in v0.20.3
func (h *DefaultServiceAttributeHandler) HasChange(d *schema.ResourceData) bool
See interface definition for comments.
func (*DefaultServiceAttributeHandler) MustProcess ¶ added in v0.20.3
func (h *DefaultServiceAttributeHandler) MustProcess(d *schema.ResourceData, _ bool) bool
See interface definition for comments.
type DictionaryServiceAttributeHandler ¶ added in v0.20.3
type DictionaryServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*DictionaryServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *DictionaryServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*DictionaryServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *DictionaryServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type DiffResult ¶ added in v0.20.3
type DiffResult struct { Added []interface{} Modified []interface{} Deleted []interface{} Unmodified []interface{} }
DiffResult contains the differences between two sets
type DigitalOceanServiceAttributeHandler ¶ added in v0.20.3
type DigitalOceanServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*DigitalOceanServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *DigitalOceanServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*DigitalOceanServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *DigitalOceanServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type DirectorServiceAttributeHandler ¶ added in v0.20.3
type DirectorServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*DirectorServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *DirectorServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*DirectorServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *DirectorServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type DomainServiceAttributeHandler ¶ added in v0.20.3
type DomainServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*DomainServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *DomainServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*DomainServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *DomainServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type DynamicSnippetServiceAttributeHandler ¶ added in v0.20.3
type DynamicSnippetServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*DynamicSnippetServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *DynamicSnippetServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*DynamicSnippetServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *DynamicSnippetServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type ElasticSearchServiceAttributeHandler ¶ added in v0.20.3
type ElasticSearchServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*ElasticSearchServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *ElasticSearchServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*ElasticSearchServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *ElasticSearchServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type FTPServiceAttributeHandler ¶ added in v0.20.3
type FTPServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*FTPServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *FTPServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*FTPServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *FTPServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type FastlyClient ¶
type FastlyClient struct {
// contains filtered or unexported fields
}
type GCSLoggingServiceAttributeHandler ¶ added in v0.20.3
type GCSLoggingServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*GCSLoggingServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *GCSLoggingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*GCSLoggingServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *GCSLoggingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type GooglePubSubServiceAttributeHandler ¶ added in v0.20.3
type GooglePubSubServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*GooglePubSubServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *GooglePubSubServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*GooglePubSubServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *GooglePubSubServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type GzipServiceAttributeHandler ¶ added in v0.20.3
type GzipServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*GzipServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *GzipServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*GzipServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *GzipServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type HTTPSLoggingServiceAttributeHandler ¶ added in v0.20.3
type HTTPSLoggingServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*HTTPSLoggingServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *HTTPSLoggingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*HTTPSLoggingServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *HTTPSLoggingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type HeaderServiceAttributeHandler ¶ added in v0.20.3
type HeaderServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*HeaderServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *HeaderServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*HeaderServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *HeaderServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type HealthCheckServiceAttributeHandler ¶ added in v0.20.3
type HealthCheckServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*HealthCheckServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *HealthCheckServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*HealthCheckServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *HealthCheckServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type HerokuServiceAttributeHandler ¶ added in v0.20.3
type HerokuServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*HerokuServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *HerokuServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*HerokuServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *HerokuServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type HoneycombServiceAttributeHandler ¶ added in v0.20.3
type HoneycombServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*HoneycombServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *HoneycombServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*HoneycombServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *HoneycombServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type KafkaServiceAttributeHandler ¶ added in v0.20.3
type KafkaServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*KafkaServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *KafkaServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*KafkaServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *KafkaServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type KeyFunc ¶ added in v0.20.3
type KeyFunc func(interface{}) (interface{}, error)
KeyFunc calculates a key from an element
type KinesisServiceAttributeHandler ¶ added in v0.22.0
type KinesisServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*KinesisServiceAttributeHandler) Process ¶ added in v0.22.0
func (h *KinesisServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*KinesisServiceAttributeHandler) Read ¶ added in v0.22.0
func (h *KinesisServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type LogentriesServiceAttributeHandler ¶ added in v0.20.3
type LogentriesServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*LogentriesServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *LogentriesServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*LogentriesServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *LogentriesServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type LogglyServiceAttributeHandler ¶ added in v0.20.3
type LogglyServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*LogglyServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *LogglyServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*LogglyServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *LogglyServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type LogshuttleServiceAttributeHandler ¶ added in v0.20.3
type LogshuttleServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*LogshuttleServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *LogshuttleServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*LogshuttleServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *LogshuttleServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type NewRelicServiceAttributeHandler ¶ added in v0.20.3
type NewRelicServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*NewRelicServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *NewRelicServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*NewRelicServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *NewRelicServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type OpenstackServiceAttributeHandler ¶ added in v0.20.3
type OpenstackServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*OpenstackServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *OpenstackServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*OpenstackServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *OpenstackServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type PackageServiceAttributeHandler ¶ added in v0.20.3
type PackageServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*PackageServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *PackageServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*PackageServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *PackageServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type PaperTrailServiceAttributeHandler ¶ added in v0.20.3
type PaperTrailServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*PaperTrailServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *PaperTrailServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*PaperTrailServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *PaperTrailServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type PlatformTLSCertificatePredicate ¶ added in v0.25.0
type PlatformTLSCertificatePredicate func(certificate *fastly.BulkCertificate) bool
type RequestSettingServiceAttributeHandler ¶ added in v0.20.3
type RequestSettingServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*RequestSettingServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *RequestSettingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*RequestSettingServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *RequestSettingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type ResponseObjectServiceAttributeHandler ¶ added in v0.20.3
type ResponseObjectServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*ResponseObjectServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *ResponseObjectServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*ResponseObjectServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *ResponseObjectServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type S3LoggingServiceAttributeHandler ¶ added in v0.20.3
type S3LoggingServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*S3LoggingServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *S3LoggingServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*S3LoggingServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *S3LoggingServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type SFTPServiceAttributeHandler ¶ added in v0.20.3
type SFTPServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*SFTPServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *SFTPServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*SFTPServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *SFTPServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type ScalyrServiceAttributeHandler ¶ added in v0.20.3
type ScalyrServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*ScalyrServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *ScalyrServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*ScalyrServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *ScalyrServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type ServiceAttributeDefinition ¶ added in v0.20.3
type ServiceAttributeDefinition interface { // Register add the attribute to the resource schema. Register(s *schema.Resource) error // Read refreshes the attribute state against the Fastly API. Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error // Process creates or updates the attribute against the Fastly API. Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error // HasChange returns whether the state of the attribute has changed against Terraform stored state. HasChange(d *schema.ResourceData) bool // MustProcess returns whether we must process the resource (usually HasChange==true but allowing exceptions). // For example: at present, the settings attributeHandler (block_fastly_service_v1_settings.go) must process when // default_ttl==0 and it is the initialVersion - as well as when default_ttl or default_host have changed. MustProcess(d *schema.ResourceData, initialVersion bool) bool }
ServiceAttributeDefinition provides an interface for service attributes. We compose a service resource out of attribute objects to allow us to construct both the VCL and Compute service resources from common components.
func NewServiceACL ¶ added in v0.20.3
func NewServiceACL(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceBackend ¶ added in v0.20.3
func NewServiceBackend(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceBigQueryLogging ¶ added in v0.20.3
func NewServiceBigQueryLogging(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceBlobStorageLogging ¶ added in v0.20.3
func NewServiceBlobStorageLogging(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceCacheSetting ¶ added in v0.20.3
func NewServiceCacheSetting(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceCondition ¶ added in v0.20.3
func NewServiceCondition(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceDictionary ¶ added in v0.20.3
func NewServiceDictionary(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceDirector ¶ added in v0.20.3
func NewServiceDirector(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceDomain ¶ added in v0.20.3
func NewServiceDomain(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceDynamicSnippet ¶ added in v0.20.3
func NewServiceDynamicSnippet(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceGCSLogging ¶ added in v0.20.3
func NewServiceGCSLogging(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceGzip ¶ added in v0.20.3
func NewServiceGzip(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceHTTPSLogging ¶ added in v0.20.3
func NewServiceHTTPSLogging(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceHeader ¶ added in v0.20.3
func NewServiceHeader(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceHealthCheck ¶ added in v0.20.3
func NewServiceHealthCheck(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLogentries ¶ added in v0.20.3
func NewServiceLogentries(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingCloudfiles ¶ added in v0.20.3
func NewServiceLoggingCloudfiles(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingDatadog ¶ added in v0.20.3
func NewServiceLoggingDatadog(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingDigitalOcean ¶ added in v0.20.3
func NewServiceLoggingDigitalOcean(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingElasticSearch ¶ added in v0.20.3
func NewServiceLoggingElasticSearch(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingFTP ¶ added in v0.20.3
func NewServiceLoggingFTP(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingGooglePubSub ¶ added in v0.20.3
func NewServiceLoggingGooglePubSub(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingHeroku ¶ added in v0.20.3
func NewServiceLoggingHeroku(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingHoneycomb ¶ added in v0.20.3
func NewServiceLoggingHoneycomb(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingKafka ¶ added in v0.20.3
func NewServiceLoggingKafka(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingKinesis ¶ added in v0.22.0
func NewServiceLoggingKinesis(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingLoggly ¶ added in v0.20.3
func NewServiceLoggingLoggly(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingLogshuttle ¶ added in v0.20.3
func NewServiceLoggingLogshuttle(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingNewRelic ¶ added in v0.20.3
func NewServiceLoggingNewRelic(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingOpenstack ¶ added in v0.20.3
func NewServiceLoggingOpenstack(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingSFTP ¶ added in v0.20.3
func NewServiceLoggingSFTP(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceLoggingScalyr ¶ added in v0.20.3
func NewServiceLoggingScalyr(sa ServiceMetadata) ServiceAttributeDefinition
func NewServicePackage ¶ added in v0.20.3
func NewServicePackage(sa ServiceMetadata) ServiceAttributeDefinition
func NewServicePaperTrail ¶ added in v0.20.3
func NewServicePaperTrail(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceRequestSetting ¶ added in v0.20.3
func NewServiceRequestSetting(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceResponseObject ¶ added in v0.20.3
func NewServiceResponseObject(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceS3Logging ¶ added in v0.20.3
func NewServiceS3Logging(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceSettings ¶ added in v0.20.3
func NewServiceSettings() ServiceAttributeDefinition
func NewServiceSnippet ¶ added in v0.20.3
func NewServiceSnippet(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceSplunk ¶ added in v0.20.3
func NewServiceSplunk(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceSumologic ¶ added in v0.20.3
func NewServiceSumologic(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceSyslog ¶ added in v0.20.3
func NewServiceSyslog(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceVCL ¶ added in v0.20.3
func NewServiceVCL(sa ServiceMetadata) ServiceAttributeDefinition
func NewServiceWAF ¶ added in v0.20.3
func NewServiceWAF(sa ServiceMetadata) ServiceAttributeDefinition
type ServiceDefinition ¶ added in v0.20.3
type ServiceDefinition interface { // GetType returns whether this is a VCL or Compute service. GetType() string // GetAttributeHandler returns the list of attributes/handlers supported by this service. GetAttributeHandler() []ServiceAttributeDefinition }
ServiceDefinition defines the data model for service definitions There are two types of service: VCL and Compute. This interface specifies the data object from which service resources are constructed.
type ServiceMetadata ¶ added in v0.20.3
type ServiceMetadata struct {
// contains filtered or unexported fields
}
ServiceMetadata provides a container to pass service attributes into an Attribute handler.
type SetDiff ¶ added in v0.20.3
type SetDiff struct {
// contains filtered or unexported fields
}
SetDiff diffs two sets using a key to identify which elements have been added, changed, removed or not modified.
This object compares sets using Terraform's schema.Set methods (e.g. Difference() and Intersection()) so that the same differences displayed to the user are honoured here.
SetDiff however is able to tell if two elements from two distinct sets have the same key. This is useful to detect that an element should be updated instead of recreated on the remote server.
func NewSetDiff ¶ added in v0.20.3
NewSetDiff creates a new SetDiff with a provided KeyFunc.
func (*SetDiff) Diff ¶ added in v0.20.3
func (h *SetDiff) Diff(oldSet, newSet *schema.Set) (*DiffResult, error)
Diff diffs two Set objects and returns a DiffResult object containing the diffs.
The DiffResult object will contain the elements from newSet on the Modified field.
NOTE: there is a caveat with the current implementation which is related to the lookup 'key' you specify. If the key you use (to lookup a resource within the comparable set) is also updatable via the fastly API, then that means you'll end up deleting and recreating the resource rather than simply updating it (which is less efficient, as it's two separate operations).
For example, a 'domain' can be updated by changing either its 'name' or its 'comment' attribute, but in order to compare changes using SetDiff we only really have the option to use 'name' as the lookup key.
func (*SetDiff) Filter ¶ added in v0.21.3
func (h *SetDiff) Filter(modified map[string]interface{}, oldSet *schema.Set) map[string]interface{}
Filter filters out unmodified fields of a Set elements map data structure by ranging over the original data and comparing each field against the new data.
The motivation for this function is to avoid resetting an attribute on a resource to a value that hasn't actually changed because (depending on the attribute) it might have unexpected consequences (e.g. a nested resource gets replaced/recreated). Safer to only update attributes that need to be.
type SettingsServiceAttributeHandler ¶ added in v0.20.3
type SettingsServiceAttributeHandler struct { }
func (*SettingsServiceAttributeHandler) HasChange ¶ added in v0.20.3
func (h *SettingsServiceAttributeHandler) HasChange(d *schema.ResourceData) bool
func (*SettingsServiceAttributeHandler) MustProcess ¶ added in v0.20.3
func (h *SettingsServiceAttributeHandler) MustProcess(d *schema.ResourceData, initialVersion bool) bool
If the requested default_ttl is 0, and this is the first version being created, HasChange will return false, but we need to set it anyway, so ensure we update the settings in that case.
func (*SettingsServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *SettingsServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*SettingsServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *SettingsServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type SnippetServiceAttributeHandler ¶ added in v0.20.3
type SnippetServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*SnippetServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *SnippetServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*SnippetServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *SnippetServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type SplunkServiceAttributeHandler ¶ added in v0.20.3
type SplunkServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*SplunkServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *SplunkServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*SplunkServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *SplunkServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type SumologicServiceAttributeHandler ¶ added in v0.20.3
type SumologicServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*SumologicServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *SumologicServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*SumologicServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *SumologicServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type SyslogServiceAttributeHandler ¶ added in v0.20.3
type SyslogServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*SyslogServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *SyslogServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*SyslogServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *SyslogServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type TLSActivationPredicate ¶ added in v0.25.0
type TLSActivationPredicate func(activation *fastly.TLSActivation) bool
type TLSCertificatePredicate ¶ added in v0.25.0
type TLSCertificatePredicate func(*fastly.CustomTLSCertificate) bool
type TLSDomainPredicate ¶ added in v0.25.0
type TLSPrivateKeyPredicate ¶ added in v0.25.0
type TLSPrivateKeyPredicate func(key *fastly.PrivateKey) bool
type TLSSubscriptionPredicate ¶ added in v0.25.0
type TLSSubscriptionPredicate func(*fastly.TLSSubscription) bool
type VCLLoggingAttributes ¶ added in v0.20.3
type VCLLoggingAttributes struct {
// contains filtered or unexported fields
}
type VCLServiceAttributeHandler ¶ added in v0.20.3
type VCLServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*VCLServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *VCLServiceAttributeHandler) Process(d *schema.ResourceData, latestVersion int, conn *gofastly.Client) error
func (*VCLServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *VCLServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
type WAFDeploymentChecker ¶ added in v0.20.3
type WAFDeploymentStatusCheck ¶ added in v0.20.3
type WAFDeploymentStatusCheck func(wafID string, version int) (*gofastly.WAFVersion, error)
type WAFServiceAttributeHandler ¶ added in v0.20.3
type WAFServiceAttributeHandler struct {
*DefaultServiceAttributeHandler
}
func (*WAFServiceAttributeHandler) Process ¶ added in v0.20.3
func (h *WAFServiceAttributeHandler) Process(d *schema.ResourceData, serviceVersion int, conn *gofastly.Client) error
func (*WAFServiceAttributeHandler) Read ¶ added in v0.20.3
func (h *WAFServiceAttributeHandler) Read(d *schema.ResourceData, s *gofastly.ServiceDetail, conn *gofastly.Client) error
Source Files ¶
- base_fastly_service_v1.go
- block_fastly_service_v1_acl.go
- block_fastly_service_v1_backend.go
- block_fastly_service_v1_bigquerylogging.go
- block_fastly_service_v1_blobstoragelogging.go
- block_fastly_service_v1_cachesetting.go
- block_fastly_service_v1_condition.go
- block_fastly_service_v1_dictionary.go
- block_fastly_service_v1_director.go
- block_fastly_service_v1_domain.go
- block_fastly_service_v1_dynamicsnippet.go
- block_fastly_service_v1_gcslogging.go
- block_fastly_service_v1_gzip.go
- block_fastly_service_v1_header.go
- block_fastly_service_v1_healthcheck.go
- block_fastly_service_v1_httpslogging.go
- block_fastly_service_v1_logentries.go
- block_fastly_service_v1_logging_cloudfiles.go
- block_fastly_service_v1_logging_datadog.go
- block_fastly_service_v1_logging_digitalocean.go
- block_fastly_service_v1_logging_elasticsearch.go
- block_fastly_service_v1_logging_ftp.go
- block_fastly_service_v1_logging_googlepubsub.go
- block_fastly_service_v1_logging_heroku.go
- block_fastly_service_v1_logging_honeycomb.go
- block_fastly_service_v1_logging_kafka.go
- block_fastly_service_v1_logging_kinesis.go
- block_fastly_service_v1_logging_loggly.go
- block_fastly_service_v1_logging_logshuttle.go
- block_fastly_service_v1_logging_newrelic.go
- block_fastly_service_v1_logging_openstack.go
- block_fastly_service_v1_logging_scalyr.go
- block_fastly_service_v1_logging_sftp.go
- block_fastly_service_v1_package.go
- block_fastly_service_v1_papertrail.go
- block_fastly_service_v1_requestsetting.go
- block_fastly_service_v1_responseobject.go
- block_fastly_service_v1_s3logging.go
- block_fastly_service_v1_settings.go
- block_fastly_service_v1_snippet.go
- block_fastly_service_v1_splunk.go
- block_fastly_service_v1_sumologic.go
- block_fastly_service_v1_syslog.go
- block_fastly_service_v1_vcl.go
- block_fastly_service_v1_waf.go
- block_fastly_waf_configuration_v1_active_rule.go
- block_fastly_waf_configuration_v1_exclusion.go
- config.go
- convert.go
- data_source_fastly_tls_activation.go
- data_source_fastly_tls_activation_ids.go
- data_source_fastly_tls_certificate.go
- data_source_fastly_tls_certificate_ids.go
- data_source_fastly_tls_configuration.go
- data_source_fastly_tls_configuration_ids.go
- data_source_fastly_tls_domain.go
- data_source_fastly_tls_platform_certificate.go
- data_source_fastly_tls_platform_certificate_ids.go
- data_source_fastly_tls_private_key.go
- data_source_fastly_tls_private_key_ids.go
- data_source_fastly_tls_subscription.go
- data_source_fastly_tls_subscription_ids.go
- data_source_ip_ranges.go
- data_source_waf_rules.go
- diff.go
- provider.go
- resource_fastly_service_acl_entries_v1.go
- resource_fastly_service_compute.go
- resource_fastly_service_dictionary_items_v1.go
- resource_fastly_service_dynamic_snippet_content_v1.go
- resource_fastly_service_v1.go
- resource_fastly_service_waf_configuration.go
- resource_fastly_tls_activation.go
- resource_fastly_tls_certificate.go
- resource_fastly_tls_platform_certificate.go
- resource_fastly_tls_private_key.go
- resource_fastly_tls_subscription.go
- resource_fastly_tls_subscription_validation.go
- resource_fastly_user_v1.go
- statefuncs.go
- status_checker.go
- validators.go