Documentation
¶
Index ¶
- Constants
- Variables
- func BucketCORS(in []storage.CORS) fields.ArrayInputField
- func ComputeOperationError(err *compute.OperationError) error
- func ErrExtractMissingAPI(err error) string
- func ErrIs400(err error) bool
- func ErrIs403(err error) bool
- func ErrIs404(err error) bool
- func ErrIs409(err error) bool
- func GenericID(id string, suffixes ...string) string
- func GlobalID(e env.Enver, gcpProject, id string) string
- func GlobalIDField(e env.Enver, gcpProject, resourceID string) fields.StringInputField
- func GlobalRandomIDField(e env.Enver, gcpProject, resourceID string) fields.StringInputField
- func ID(e env.Enver, resourceID string) string
- func IDField(e env.Enver, resourceID string) fields.StringInputField
- func ImageID(e env.Enver, imageID string) string
- func RandomIDField(e env.Enver, resourceID string) fields.StringInputField
- func RegionToGCR(region string) string
- func RegisterTypes(reg *registry.Registry)
- func SQLOperationError(err *sqladmin.OperationErrors) error
- func ShortShaID(id string) string
- func SplitURL(url string) (host, path string)
- func WaitForArtifactRegistryOperation(ctx context.Context, cli *artifactregistry.Service, ...) error
- func WaitForCloudResourceManagerOperation(ctx context.Context, cli *cloudresourcemanager.Service, ...) error
- func WaitForGlobalComputeOperation(cli *compute.Service, project, name string) error
- func WaitForRegionComputeOperation(cli *compute.Service, project, region, name string) error
- func WaitForSQLOperation(ctx context.Context, cli *sqladmin.Service, project, name string) error
- func WaitForServiceUsageOperation(ctx context.Context, cli *serviceusage.Service, op *serviceusage.Operation) error
- type APIService
- func (o *APIService) Create(ctx context.Context, meta any) error
- func (o *APIService) Delete(_ context.Context, _ any) error
- func (o *APIService) GetName() string
- func (o *APIService) Read(ctx context.Context, meta any) error
- func (o *APIService) ReferenceID() string
- func (o *APIService) Update(_ context.Context, _ any) error
- type Address
- func (o *Address) Create(ctx context.Context, meta any) error
- func (o *Address) Delete(ctx context.Context, meta any) error
- func (o *Address) GetName() string
- func (o *Address) Read(ctx context.Context, meta any) error
- func (o *Address) ReferenceID() string
- func (o *Address) Update(_ context.Context, _ any) error
- type BackendService
- func (o *BackendService) Create(ctx context.Context, meta any) error
- func (o *BackendService) Delete(ctx context.Context, meta any) error
- func (o *BackendService) GetName() string
- func (o *BackendService) Read(ctx context.Context, meta any) error
- func (o *BackendService) RefField() fields.StringInputField
- func (o *BackendService) ReferenceID() string
- func (o *BackendService) Update(ctx context.Context, meta any) error
- type Bucket
- func (o *Bucket) Create(ctx context.Context, meta any) error
- func (o *Bucket) Delete(ctx context.Context, meta any) error
- func (o *Bucket) GetName() string
- func (o *Bucket) IsCritical(t registry.DiffType, fieldList []string) bool
- func (o *Bucket) Read(ctx context.Context, meta any) error
- func (o *Bucket) ReferenceID() string
- func (o *Bucket) Update(ctx context.Context, meta any) error
- type BucketObject
- func (o *BucketObject) Create(ctx context.Context, meta any) error
- func (o *BucketObject) Delete(ctx context.Context, meta any) error
- func (o *BucketObject) GetName() string
- func (o *BucketObject) Read(ctx context.Context, meta any) error
- func (o *BucketObject) ReferenceID() string
- func (o *BucketObject) Update(ctx context.Context, meta any) error
- type CloudFunction
- func (o *CloudFunction) Create(ctx context.Context, meta any) error
- func (o *CloudFunction) Delete(ctx context.Context, meta any) error
- func (o *CloudFunction) GetName() string
- func (o *CloudFunction) Read(ctx context.Context, meta any) error
- func (o *CloudFunction) ReferenceID() string
- func (o *CloudFunction) Update(ctx context.Context, meta any) error
- type CloudRun
- func (o *CloudRun) Create(ctx context.Context, meta any) error
- func (o *CloudRun) Delete(ctx context.Context, meta any) error
- func (o *CloudRun) GetName() string
- func (o *CloudRun) Read(ctx context.Context, meta any) error
- func (o *CloudRun) ReferenceID() string
- func (o *CloudRun) Update(ctx context.Context, meta any) error
- type CloudRunNetworkInterface
- type CloudSQL
- func (o *CloudSQL) Create(ctx context.Context, meta any) error
- func (o *CloudSQL) Delete(ctx context.Context, meta any) error
- func (o *CloudSQL) GetName() string
- func (o *CloudSQL) IsCritical(t registry.DiffType, fieldList []string) bool
- func (o *CloudSQL) Read(ctx context.Context, meta any) error
- func (o *CloudSQL) ReferenceID() string
- func (o *CloudSQL) Update(ctx context.Context, meta any) error
- type CloudSQLDatabase
- func (o *CloudSQLDatabase) Create(ctx context.Context, meta any) error
- func (o *CloudSQLDatabase) Delete(ctx context.Context, meta any) error
- func (o *CloudSQLDatabase) GetName() string
- func (o *CloudSQLDatabase) IsCritical(t registry.DiffType, fieldList []string) bool
- func (o *CloudSQLDatabase) Read(ctx context.Context, meta any) error
- func (o *CloudSQLDatabase) ReferenceID() string
- func (o *CloudSQLDatabase) Update(_ context.Context, _ any) error
- type CloudSQLUser
- func (o *CloudSQLUser) Create(ctx context.Context, meta any) error
- func (o *CloudSQLUser) Delete(ctx context.Context, meta any) error
- func (o *CloudSQLUser) GetName() string
- func (o *CloudSQLUser) Read(ctx context.Context, meta any) error
- func (o *CloudSQLUser) ReferenceID() string
- func (o *CloudSQLUser) Update(ctx context.Context, meta any) error
- type CloudSchedulerJob
- func (o *CloudSchedulerJob) Create(ctx context.Context, meta any) error
- func (o *CloudSchedulerJob) Delete(ctx context.Context, meta any) error
- func (o *CloudSchedulerJob) GetName() string
- func (o *CloudSchedulerJob) Read(ctx context.Context, meta any) error
- func (o *CloudSchedulerJob) ReferenceID() string
- func (o *CloudSchedulerJob) Update(ctx context.Context, meta any) error
- type ForwardingRule
- func (o *ForwardingRule) Create(ctx context.Context, meta any) error
- func (o *ForwardingRule) Delete(ctx context.Context, meta any) error
- func (o *ForwardingRule) GetName() string
- func (o *ForwardingRule) Read(ctx context.Context, meta any) error
- func (o *ForwardingRule) ReferenceID() string
- func (o *ForwardingRule) Update(ctx context.Context, meta any) error
- type Image
- func (o *Image) BeforeDiff(context.Context, any) error
- func (o *Image) Create(ctx context.Context, meta any) error
- func (o *Image) Delete(ctx context.Context, meta any) error
- func (o *Image) GetName() string
- func (o *Image) ImageName() fields.StringInputField
- func (o *Image) Read(ctx context.Context, meta any) error
- func (o *Image) ReferenceID() string
- func (o *Image) Update(ctx context.Context, meta any) error
- type ManagedSSL
- func (o *ManagedSSL) Create(ctx context.Context, meta any) error
- func (o *ManagedSSL) Delete(ctx context.Context, meta any) error
- func (o *ManagedSSL) GetName() string
- func (o *ManagedSSL) Init(ctx context.Context, meta any, opts *registry.Options) error
- func (o *ManagedSSL) Read(ctx context.Context, meta any) error
- func (o *ManagedSSL) RefField() fields.StringInputField
- func (o *ManagedSSL) ReferenceID() string
- func (o *ManagedSSL) Update(_ context.Context, _ any) error
- type NotificationChannel
- func (o *NotificationChannel) Create(ctx context.Context, meta any) error
- func (o *NotificationChannel) Delete(ctx context.Context, meta any) error
- func (o *NotificationChannel) GetName() string
- func (o *NotificationChannel) Read(ctx context.Context, meta any) error
- func (o *NotificationChannel) ReferenceID() string
- func (o *NotificationChannel) Update(ctx context.Context, meta any) error
- type SelfManagedSSL
- func (o *SelfManagedSSL) Create(ctx context.Context, meta any) error
- func (o *SelfManagedSSL) Delete(ctx context.Context, meta any) error
- func (o *SelfManagedSSL) GetName() string
- func (o *SelfManagedSSL) Read(ctx context.Context, meta any) error
- func (o *SelfManagedSSL) RefField() fields.StringInputField
- func (o *SelfManagedSSL) ReferenceID() string
- func (o *SelfManagedSSL) Update(_ context.Context, _ any) error
- type ServerlessNEG
- func (o *ServerlessNEG) Create(ctx context.Context, meta any) error
- func (o *ServerlessNEG) Delete(ctx context.Context, meta any) error
- func (o *ServerlessNEG) GetName() string
- func (o *ServerlessNEG) Read(ctx context.Context, meta any) error
- func (o *ServerlessNEG) RefField() fields.StringInputField
- func (o *ServerlessNEG) ReferenceID() string
- func (o *ServerlessNEG) Update(_ context.Context, _ any) error
- type TargetHTTPProxy
- func (o *TargetHTTPProxy) Create(ctx context.Context, meta any) error
- func (o *TargetHTTPProxy) Delete(ctx context.Context, meta any) error
- func (o *TargetHTTPProxy) GetName() string
- func (o *TargetHTTPProxy) Read(ctx context.Context, meta any) error
- func (o *TargetHTTPProxy) RefField() fields.StringInputField
- func (o *TargetHTTPProxy) ReferenceID() string
- func (o *TargetHTTPProxy) Update(ctx context.Context, meta any) error
- type TargetHTTPSProxy
- func (o *TargetHTTPSProxy) Create(ctx context.Context, meta any) error
- func (o *TargetHTTPSProxy) Delete(ctx context.Context, meta any) error
- func (o *TargetHTTPSProxy) GetName() string
- func (o *TargetHTTPSProxy) Read(ctx context.Context, meta any) error
- func (o *TargetHTTPSProxy) RefField() fields.StringInputField
- func (o *TargetHTTPSProxy) ReferenceID() string
- func (o *TargetHTTPSProxy) Update(ctx context.Context, meta any) error
- type URLMap
- func (o *URLMap) Create(ctx context.Context, meta any) error
- func (o *URLMap) Delete(ctx context.Context, meta any) error
- func (o *URLMap) GetName() string
- func (o *URLMap) MakeURLMap() *compute.UrlMap
- func (o *URLMap) Read(ctx context.Context, meta any) error
- func (o *URLMap) RefField() fields.StringInputField
- func (o *URLMap) ReferenceID() string
- func (o *URLMap) Update(ctx context.Context, meta any) error
- type URLMapping
- type URLPathMatcher
- type UptimeAlertPolicy
- func (o *UptimeAlertPolicy) Create(ctx context.Context, meta any) error
- func (o *UptimeAlertPolicy) Delete(ctx context.Context, meta any) error
- func (o *UptimeAlertPolicy) GetName() string
- func (o *UptimeAlertPolicy) Read(ctx context.Context, meta any) error
- func (o *UptimeAlertPolicy) ReferenceID() string
- func (o *UptimeAlertPolicy) Update(ctx context.Context, meta any) error
- type UptimeCheckConfig
- func (o *UptimeCheckConfig) Create(ctx context.Context, meta any) error
- func (o *UptimeCheckConfig) Delete(ctx context.Context, meta any) error
- func (o *UptimeCheckConfig) GetName() string
- func (o *UptimeCheckConfig) Read(ctx context.Context, meta any) error
- func (o *UptimeCheckConfig) ReferenceID() string
- func (o *UptimeCheckConfig) Update(ctx context.Context, meta any) error
Constants ¶
View Source
const ( ACLPublicRead = "publicRead" ACLProjectPrivate = "projectPrivate" ACLAllUsers = "allUsers" OperationDone = "DONE" CloudRunReady = "Ready" CloudRunStatusTrue = "True" CloudRunStatusFalse = "False" CloudRunAnnotationTrue = "true" CloudRunAnnotationFalse = "false" CloudFunctionReady = "ACTIVE" CloudFunctionOffline = "OFFLINE" GCSProxyImageName = "nginx-gcs-static-proxy" GCSProxyVersion = "1.21-v5" GCSProxyDockerImage = "docker.io/outblocks/nginx-gcs-static-proxy:" + GCSProxyVersion RunsdDownloadLink = "https://github.com/outblocks/runsd/releases/download/v0.0.2-rc.2/runsd" CloudSQLVersion = "1.28.1" DefaultConcurrency = 5 )
View Source
const ( URLPathMatcherServiceIDKey = "service_id" URLPathMatcherPathPrefixRewriteKey = "path_redirect" )
Variables ¶
View Source
var ( APISRequired = []string{"run.googleapis.com", "artifactregistry.googleapis.com", "compute.googleapis.com", "sqladmin.googleapis.com", "secretmanager.googleapis.com", "cloudresourcemanager.googleapis.com", "cloudfunctions.googleapis.com", "monitoring.googleapis.com", "cloudbuild.googleapis.com", "serviceusage.googleapis.com"} ValidRegions = []string{"asia-east1", "asia-east2", "asia-northeast1", "asia-northeast2", "asia-northeast3", "asia-south1", "asia-southeast1", "australia-southeast1", "europe-north1", "europe-west1", "europe-west2", "europe-west3", "europe-west4", "europe-west6", "northamerica-northeast1", "southamerica-east1", "us-central1", "us-east1", "us-east4", "us-west1", "us-west2", "us-west3"} )
View Source
var Types = []registry.Resource{ (*resources.RandomString)(nil), (*Address)(nil), (*APIService)(nil), (*BackendService)(nil), (*BucketObject)(nil), (*Bucket)(nil), (*CloudFunction)(nil), (*CloudRun)(nil), (*CloudSQLDatabase)(nil), (*CloudSQLUser)(nil), (*CloudSQL)(nil), (*ForwardingRule)(nil), (*Image)(nil), (*ManagedSSL)(nil), (*SelfManagedSSL)(nil), (*ServerlessNEG)(nil), (*TargetHTTPProxy)(nil), (*TargetHTTPSProxy)(nil), (*URLMap)(nil), (*UptimeCheckConfig)(nil), (*UptimeAlertPolicy)(nil), (*NotificationChannel)(nil), (*CloudSchedulerJob)(nil), }
Functions ¶
func BucketCORS ¶ added in v0.1.80
func BucketCORS(in []storage.CORS) fields.ArrayInputField
func ComputeOperationError ¶ added in v0.1.87
func ComputeOperationError(err *compute.OperationError) error
func ErrExtractMissingAPI ¶ added in v0.1.91
func GlobalIDField ¶ added in v0.1.37
func GlobalIDField(e env.Enver, gcpProject, resourceID string) fields.StringInputField
func GlobalRandomIDField ¶ added in v0.1.49
func GlobalRandomIDField(e env.Enver, gcpProject, resourceID string) fields.StringInputField
func IDField ¶ added in v0.1.37
func IDField(e env.Enver, resourceID string) fields.StringInputField
func RandomIDField ¶ added in v0.1.42
func RandomIDField(e env.Enver, resourceID string) fields.StringInputField
func RegionToGCR ¶
func RegisterTypes ¶ added in v0.1.68
func SQLOperationError ¶ added in v0.1.87
func SQLOperationError(err *sqladmin.OperationErrors) error
func ShortShaID ¶ added in v0.1.31
func WaitForArtifactRegistryOperation ¶ added in v0.1.114
func WaitForArtifactRegistryOperation(ctx context.Context, cli *artifactregistry.Service, op *artifactregistry.Operation) error
func WaitForCloudResourceManagerOperation ¶ added in v0.1.6
func WaitForCloudResourceManagerOperation(ctx context.Context, cli *cloudresourcemanager.Service, op *cloudresourcemanager.Operation) error
func WaitForGlobalComputeOperation ¶ added in v0.1.5
func WaitForRegionComputeOperation ¶ added in v0.1.5
func WaitForSQLOperation ¶ added in v0.1.19
func WaitForServiceUsageOperation ¶ added in v0.1.5
func WaitForServiceUsageOperation(ctx context.Context, cli *serviceusage.Service, op *serviceusage.Operation) error
Types ¶
type APIService ¶
type APIService struct {
registry.ResourceBase
ProjectNumber fields.IntInputField `state:"force_new"`
Name fields.StringInputField `state:"force_new"`
}
func (*APIService) GetName ¶
func (o *APIService) GetName() string
func (*APIService) ReferenceID ¶ added in v0.1.42
func (o *APIService) ReferenceID() string
type Address ¶
type Address struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
IP fields.StringOutputField
}
func (*Address) ReferenceID ¶ added in v0.1.42
type BackendService ¶
type BackendService struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
NEG fields.StringInputField `state:"force_new"`
CDN struct {
Enabled fields.BoolInputField
CacheMode fields.StringInputField `default:"CACHE_ALL_STATIC"`
CacheKeyPolicy struct {
IncludeHost fields.BoolInputField `default:"1"`
IncludeProtocol fields.BoolInputField `default:"1"`
IncludeQueryString fields.BoolInputField `default:"1"`
}
DefaultTTL fields.IntInputField `default:"3600"`
MaxTTL fields.IntInputField `default:"86400"`
ClientTTL fields.IntInputField `default:"3600"`
}
Fingerprint string `state:"-"`
}
func (*BackendService) Create ¶
func (o *BackendService) Create(ctx context.Context, meta any) error
func (*BackendService) Delete ¶
func (o *BackendService) Delete(ctx context.Context, meta any) error
func (*BackendService) GetName ¶
func (o *BackendService) GetName() string
func (*BackendService) RefField ¶ added in v0.1.21
func (o *BackendService) RefField() fields.StringInputField
func (*BackendService) ReferenceID ¶ added in v0.1.42
func (o *BackendService) ReferenceID() string
type Bucket ¶
type Bucket struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
Location fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField
Versioning fields.BoolInputField
DeleteInDays fields.IntInputField
ExpireVersionsInDays fields.IntInputField
MaxVersions fields.IntInputField
Public fields.BoolInputField
CORS fields.ArrayInputField
Critical bool `state:"-"`
}
func (*Bucket) IsCritical ¶ added in v0.1.60
func (*Bucket) ReferenceID ¶ added in v0.1.42
type BucketObject ¶
type BucketObject struct {
registry.ResourceBase
BucketName fields.StringInputField `state:"force_new"`
ContentType fields.StringInputField
Name fields.StringInputField `state:"force_new"`
Hash fields.StringInputField
IsPublic fields.BoolInputField
CacheControl fields.StringInputField
Path string `state:"-"`
}
func (*BucketObject) GetName ¶
func (o *BucketObject) GetName() string
func (*BucketObject) ReferenceID ¶ added in v0.1.42
func (o *BucketObject) ReferenceID() string
type CloudFunction ¶ added in v0.1.99
type CloudFunction struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
Region fields.StringInputField `state:"force_new"`
Entrypoint fields.StringInputField
Runtime fields.StringInputField
SourceBucket fields.StringInputField
SourceObject fields.StringInputField
IsPublic fields.BoolInputField
URL fields.StringOutputField
Ready fields.BoolOutputField
StatusMessage fields.StringOutputField
MinScale fields.IntInputField `default:"0"`
MaxScale fields.IntInputField `default:"3000"`
MemoryLimit fields.IntInputField `default:"128"`
TimeoutSeconds fields.IntInputField `default:"300"`
EnvVars fields.MapInputField
Ingress fields.StringInputField `default:"ALLOW_ALL" state:"force_new"` // options: ALLOW_INTERNAL_AND_GCLB, ALLOW_INTERNAL_ONLY
}
func (*CloudFunction) Create ¶ added in v0.1.99
func (o *CloudFunction) Create(ctx context.Context, meta any) error
func (*CloudFunction) Delete ¶ added in v0.1.99
func (o *CloudFunction) Delete(ctx context.Context, meta any) error
func (*CloudFunction) GetName ¶ added in v0.1.99
func (o *CloudFunction) GetName() string
func (*CloudFunction) Read ¶ added in v0.1.99
func (o *CloudFunction) Read(ctx context.Context, meta any) error
func (*CloudFunction) ReferenceID ¶ added in v0.1.99
func (o *CloudFunction) ReferenceID() string
type CloudRun ¶
type CloudRun struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
Region fields.StringInputField `state:"force_new"`
Command fields.ArrayInputField
Args fields.ArrayInputField
Image fields.StringInputField
IsPublic fields.BoolInputField
CloudSQLInstances fields.StringInputField
MinScale fields.IntInputField `default:"0"`
MaxScale fields.IntInputField `default:"100"`
CPULimit fields.StringInputField `default:"1000m"`
MemoryLimit fields.StringInputField `default:"128Mi"`
ContainerConcurrency fields.IntInputField `default:"250"`
TimeoutSeconds fields.IntInputField `default:"300"`
Port fields.IntInputField `default:"80"`
EnvVars fields.MapInputField
Ingress fields.StringInputField `default:"all"` // options: internal-and-cloud-load-balancing
ExecutionEnvironment fields.StringInputField `default:"gen1"` // options: gen2
CPUThrottling fields.BoolInputField `default:"true"`
StartupCPUBoost fields.BoolInputField `default:"false"`
ServiceAccountName fields.StringInputField `default:""`
EgressNetwork fields.StringInputField `default:""` // VPC egress network name
EgressSubnet fields.StringInputField `default:""` // VPC egress subnet name
EgressMode fields.StringInputField `default:"private-ranges-only"`
LivenessProbeHTTPPath fields.StringInputField
LivenessProbeGRPCService fields.StringInputField
LivenessProbePort fields.IntInputField
LivenessProbeInitialDelaySeconds fields.IntInputField `default:"0"`
LivenessProbePeriodSeconds fields.IntInputField `default:"10"`
LivenessProbeTimeoutSeconds fields.IntInputField `default:"1"`
LivenessProbeFailureThreshold fields.IntInputField `default:"3"`
StartupProbeHTTPPath fields.StringInputField
StartupProbeGRPCService fields.StringInputField
StartupProbePort fields.IntInputField
StartupProbeInitialDelaySeconds fields.IntInputField `default:"0"`
StartupProbePeriodSeconds fields.IntInputField `default:"10"`
StartupProbeTimeoutSeconds fields.IntInputField `default:"1"`
StartupProbeFailureThreshold fields.IntInputField `default:"3"`
// Outputs
URL fields.StringOutputField
Ready fields.BoolOutputField
StatusMessage fields.StringOutputField
}
func (*CloudRun) ReferenceID ¶ added in v0.1.42
type CloudRunNetworkInterface ¶ added in v0.1.126
type CloudSQL ¶ added in v0.1.19
type CloudSQL struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
Region fields.StringInputField `state:"force_new"`
DatabaseVersion fields.StringInputField
PublicIP fields.StringOutputField
PrivateIP fields.StringOutputField
ConnectionName fields.StringOutputField
Tier fields.StringInputField `default:"db-f1-micro"`
AvailabilityZone fields.StringInputField `default:"ZONAL"`
IPConfiguration struct {
Ipv4Enabled fields.BoolInputField `default:"true"`
}
BackupConfiguration struct {
Enabled fields.BoolInputField `default:"true"`
StartTime fields.StringInputField `default:"05:00"`
}
InsightsConfiguration struct {
Enabled fields.BoolInputField `default:"true"`
}
DatabaseFlags fields.MapInputField
SettingsVersion int64 `state:"-"`
}
func (*CloudSQL) IsCritical ¶ added in v0.1.39
func (*CloudSQL) ReferenceID ¶ added in v0.1.42
type CloudSQLDatabase ¶ added in v0.1.19
type CloudSQLDatabase struct {
registry.ResourceBase
ProjectID fields.StringInputField `state:"force_new"`
Instance fields.StringInputField `state:"force_new"`
Name fields.StringInputField `state:"force_new"`
}
func (*CloudSQLDatabase) Create ¶ added in v0.1.19
func (o *CloudSQLDatabase) Create(ctx context.Context, meta any) error
func (*CloudSQLDatabase) Delete ¶ added in v0.1.19
func (o *CloudSQLDatabase) Delete(ctx context.Context, meta any) error
func (*CloudSQLDatabase) GetName ¶ added in v0.1.19
func (o *CloudSQLDatabase) GetName() string
func (*CloudSQLDatabase) IsCritical ¶ added in v0.1.39
func (o *CloudSQLDatabase) IsCritical(t registry.DiffType, fieldList []string) bool
func (*CloudSQLDatabase) Read ¶ added in v0.1.19
func (o *CloudSQLDatabase) Read(ctx context.Context, meta any) error
func (*CloudSQLDatabase) ReferenceID ¶ added in v0.1.42
func (o *CloudSQLDatabase) ReferenceID() string
type CloudSQLUser ¶ added in v0.1.19
type CloudSQLUser struct {
registry.ResourceBase
ProjectID fields.StringInputField `state:"force_new"`
Instance fields.StringInputField `state:"force_new"`
Name fields.StringInputField `state:"force_new"`
Password fields.StringInputField
Hostname fields.StringInputField
}
func (*CloudSQLUser) Create ¶ added in v0.1.19
func (o *CloudSQLUser) Create(ctx context.Context, meta any) error
func (*CloudSQLUser) Delete ¶ added in v0.1.19
func (o *CloudSQLUser) Delete(ctx context.Context, meta any) error
func (*CloudSQLUser) GetName ¶ added in v0.1.19
func (o *CloudSQLUser) GetName() string
func (*CloudSQLUser) Read ¶ added in v0.1.19
func (o *CloudSQLUser) Read(ctx context.Context, meta any) error
func (*CloudSQLUser) ReferenceID ¶ added in v0.1.42
func (o *CloudSQLUser) ReferenceID() string
type CloudSchedulerJob ¶ added in v0.1.107
type CloudSchedulerJob struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
Region fields.StringInputField `state:"force_new"`
Schedule fields.StringInputField `state:"force_new"`
HTTPMethod fields.StringInputField `state:"force_new" default:"GET"`
HTTPURL fields.StringInputField `state:"force_new"`
HTTPHeaders fields.MapInputField `state:"force_new"`
}
func (*CloudSchedulerJob) Create ¶ added in v0.1.107
func (o *CloudSchedulerJob) Create(ctx context.Context, meta any) error
func (*CloudSchedulerJob) Delete ¶ added in v0.1.107
func (o *CloudSchedulerJob) Delete(ctx context.Context, meta any) error
func (*CloudSchedulerJob) GetName ¶ added in v0.1.107
func (o *CloudSchedulerJob) GetName() string
func (*CloudSchedulerJob) Read ¶ added in v0.1.107
func (o *CloudSchedulerJob) Read(ctx context.Context, meta any) error
func (*CloudSchedulerJob) ReferenceID ¶ added in v0.1.107
func (o *CloudSchedulerJob) ReferenceID() string
type ForwardingRule ¶
type ForwardingRule struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
IPAddress fields.StringInputField `state:"force_new"`
Target fields.StringInputField `state:"hard_link"`
PortRange fields.StringInputField
Fingerprint string `state:"-"`
}
func (*ForwardingRule) Create ¶
func (o *ForwardingRule) Create(ctx context.Context, meta any) error
func (*ForwardingRule) Delete ¶
func (o *ForwardingRule) Delete(ctx context.Context, meta any) error
func (*ForwardingRule) GetName ¶
func (o *ForwardingRule) GetName() string
func (*ForwardingRule) ReferenceID ¶ added in v0.1.42
func (o *ForwardingRule) ReferenceID() string
type Image ¶
type Image struct {
registry.ResourceBase
Name fields.StringInputField
Tag fields.StringInputField
ProjectID fields.StringInputField `state:"force_new"`
Region fields.StringInputField `state:"force_new"`
Digest fields.StringOutputField
Source fields.StringInputField
SourceHash fields.StringInputField
Pull bool `state:"-"`
PullAuth bool `state:"-"`
}
func (*Image) ImageName ¶
func (o *Image) ImageName() fields.StringInputField
func (*Image) ReferenceID ¶ added in v0.1.42
type ManagedSSL ¶
type ManagedSSL struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
Domains fields.ArrayInputField `state:"force_new"`
Status fields.StringOutputField
DomainStatus fields.MapOutputField
}
func (*ManagedSSL) GetName ¶
func (o *ManagedSSL) GetName() string
func (*ManagedSSL) RefField ¶ added in v0.1.21
func (o *ManagedSSL) RefField() fields.StringInputField
func (*ManagedSSL) ReferenceID ¶ added in v0.1.42
func (o *ManagedSSL) ReferenceID() string
type NotificationChannel ¶ added in v0.1.101
type NotificationChannel struct {
registry.ResourceBase
ID fields.StringOutputField
DisplayName fields.StringInputField `default:"Outblocks Notification Channel"`
ProjectID fields.StringInputField `state:"force_new"`
Type fields.StringInputField
Labels fields.MapInputField
}
func (*NotificationChannel) Create ¶ added in v0.1.101
func (o *NotificationChannel) Create(ctx context.Context, meta any) error
func (*NotificationChannel) Delete ¶ added in v0.1.101
func (o *NotificationChannel) Delete(ctx context.Context, meta any) error
func (*NotificationChannel) GetName ¶ added in v0.1.101
func (o *NotificationChannel) GetName() string
func (*NotificationChannel) Read ¶ added in v0.1.101
func (o *NotificationChannel) Read(ctx context.Context, meta any) error
func (*NotificationChannel) ReferenceID ¶ added in v0.1.101
func (o *NotificationChannel) ReferenceID() string
type SelfManagedSSL ¶ added in v0.1.43
type SelfManagedSSL struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
Certificate fields.StringInputField `state:"force_new"`
PrivateKey fields.StringInputField `state:"force_new"`
}
func (*SelfManagedSSL) Create ¶ added in v0.1.43
func (o *SelfManagedSSL) Create(ctx context.Context, meta any) error
func (*SelfManagedSSL) Delete ¶ added in v0.1.43
func (o *SelfManagedSSL) Delete(ctx context.Context, meta any) error
func (*SelfManagedSSL) GetName ¶ added in v0.1.43
func (o *SelfManagedSSL) GetName() string
func (*SelfManagedSSL) Read ¶ added in v0.1.43
func (o *SelfManagedSSL) Read(ctx context.Context, meta any) error
func (*SelfManagedSSL) RefField ¶ added in v0.1.43
func (o *SelfManagedSSL) RefField() fields.StringInputField
func (*SelfManagedSSL) ReferenceID ¶ added in v0.1.43
func (o *SelfManagedSSL) ReferenceID() string
type ServerlessNEG ¶
type ServerlessNEG struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
Region fields.StringInputField `state:"force_new"`
CloudRun fields.StringInputField `state:"force_new"`
CloudFunction fields.StringInputField `state:"force_new"`
}
func (*ServerlessNEG) GetName ¶
func (o *ServerlessNEG) GetName() string
func (*ServerlessNEG) RefField ¶ added in v0.1.21
func (o *ServerlessNEG) RefField() fields.StringInputField
func (*ServerlessNEG) ReferenceID ¶ added in v0.1.42
func (o *ServerlessNEG) ReferenceID() string
type TargetHTTPProxy ¶
type TargetHTTPProxy struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
URLMap fields.StringInputField `state:"hard_link"`
Fingerprint string `state:"-"`
}
func (*TargetHTTPProxy) Create ¶
func (o *TargetHTTPProxy) Create(ctx context.Context, meta any) error
func (*TargetHTTPProxy) Delete ¶
func (o *TargetHTTPProxy) Delete(ctx context.Context, meta any) error
func (*TargetHTTPProxy) GetName ¶
func (o *TargetHTTPProxy) GetName() string
func (*TargetHTTPProxy) RefField ¶ added in v0.1.21
func (o *TargetHTTPProxy) RefField() fields.StringInputField
func (*TargetHTTPProxy) ReferenceID ¶ added in v0.1.42
func (o *TargetHTTPProxy) ReferenceID() string
type TargetHTTPSProxy ¶
type TargetHTTPSProxy struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
URLMap fields.StringInputField `state:"hard_link"`
SSLCertificates fields.ArrayInputField
Fingerprint string `state:"-"`
}
func (*TargetHTTPSProxy) Create ¶
func (o *TargetHTTPSProxy) Create(ctx context.Context, meta any) error
func (*TargetHTTPSProxy) Delete ¶
func (o *TargetHTTPSProxy) Delete(ctx context.Context, meta any) error
func (*TargetHTTPSProxy) GetName ¶
func (o *TargetHTTPSProxy) GetName() string
func (*TargetHTTPSProxy) Read ¶
func (o *TargetHTTPSProxy) Read(ctx context.Context, meta any) error
func (*TargetHTTPSProxy) RefField ¶ added in v0.1.21
func (o *TargetHTTPSProxy) RefField() fields.StringInputField
func (*TargetHTTPSProxy) ReferenceID ¶ added in v0.1.42
func (o *TargetHTTPSProxy) ReferenceID() string
type URLMap ¶
type URLMap struct {
registry.ResourceBase
Name fields.StringInputField `state:"force_new"`
ProjectID fields.StringInputField `state:"force_new"`
URLMapping fields.MapInputField `state:"hard_link"`
AppMapping fields.MapInputField
HTTPSRedirect fields.BoolInputField
Fingerprint string `state:"-"`
}
func (*URLMap) MakeURLMap ¶ added in v0.1.68
func (*URLMap) RefField ¶ added in v0.1.21
func (o *URLMap) RefField() fields.StringInputField
func (*URLMap) ReferenceID ¶ added in v0.1.42
type URLMapping ¶
type URLMapping struct {
Host string
PathMatcher []*URLPathMatcher
}
type URLPathMatcher ¶
type UptimeAlertPolicy ¶ added in v0.1.101
type UptimeAlertPolicy struct {
registry.ResourceBase
ID fields.StringOutputField
DisplayName fields.StringInputField `default:"Outblocks Notification Channel"`
ProjectID fields.StringInputField `state:"force_new"`
CheckID fields.StringInputField
NotificationChannelIDs fields.ArrayInputField
}
func (*UptimeAlertPolicy) Create ¶ added in v0.1.101
func (o *UptimeAlertPolicy) Create(ctx context.Context, meta any) error
func (*UptimeAlertPolicy) Delete ¶ added in v0.1.101
func (o *UptimeAlertPolicy) Delete(ctx context.Context, meta any) error
func (*UptimeAlertPolicy) GetName ¶ added in v0.1.101
func (o *UptimeAlertPolicy) GetName() string
func (*UptimeAlertPolicy) Read ¶ added in v0.1.101
func (o *UptimeAlertPolicy) Read(ctx context.Context, meta any) error
func (*UptimeAlertPolicy) ReferenceID ¶ added in v0.1.101
func (o *UptimeAlertPolicy) ReferenceID() string
type UptimeCheckConfig ¶ added in v0.1.101
type UptimeCheckConfig struct {
registry.ResourceBase
ID fields.StringOutputField
DisplayName fields.StringInputField `default:"Outblocks Uptime Check"`
ProjectID fields.StringInputField `state:"force_new"`
URL fields.StringInputField
Frequency fields.IntInputField `default:"5"`
Timeout fields.IntInputField `default:"60"`
Regions fields.ArrayInputField
}
func (*UptimeCheckConfig) Create ¶ added in v0.1.101
func (o *UptimeCheckConfig) Create(ctx context.Context, meta any) error
func (*UptimeCheckConfig) Delete ¶ added in v0.1.101
func (o *UptimeCheckConfig) Delete(ctx context.Context, meta any) error
func (*UptimeCheckConfig) GetName ¶ added in v0.1.101
func (o *UptimeCheckConfig) GetName() string
func (*UptimeCheckConfig) Read ¶ added in v0.1.101
func (o *UptimeCheckConfig) Read(ctx context.Context, meta any) error
func (*UptimeCheckConfig) ReferenceID ¶ added in v0.1.101
func (o *UptimeCheckConfig) ReferenceID() string
Source Files
¶
- address.go
- api_service.go
- backend_service.go
- bucket.go
- bucket_object.go
- cloud_function.go
- cloud_run.go
- cloud_scheduler_job.go
- cloud_sql.go
- cloud_sql_database.go
- cloud_sql_user.go
- consts.go
- forwarding_rule.go
- image.go
- managed_ssl.go
- notification_channel.go
- self_managed_ssl.go
- serverless_neg.go
- target_http_proxy.go
- target_https_proxy.go
- uptime_alert_policy.go
- uptime_check_config.go
- url_map.go
- util.go
Click to show internal directories.
Click to hide internal directories.