Documentation ¶
Index ¶
- Constants
- Variables
- func ErrIs404(err error) bool
- func ID(project, gcpProject, id string) string
- func RegionToGCR(region string) string
- type APIService
- func (o *APIService) Create(ctx context.Context, meta interface{}) error
- func (o *APIService) Delete(ctx context.Context, meta interface{}) error
- func (o *APIService) GetName() string
- func (o *APIService) Read(ctx context.Context, meta interface{}) error
- func (o *APIService) Update(ctx context.Context, meta interface{}) error
- type Address
- func (o *Address) Create(ctx context.Context, meta interface{}) error
- func (o *Address) Delete(ctx context.Context, meta interface{}) error
- func (o *Address) GetName() string
- func (o *Address) Read(ctx context.Context, meta interface{}) error
- func (o *Address) Update(ctx context.Context, meta interface{}) error
- type BackendService
- func (o *BackendService) Create(ctx context.Context, meta interface{}) error
- func (o *BackendService) Delete(ctx context.Context, meta interface{}) error
- func (o *BackendService) GetName() string
- func (o *BackendService) ID() fields.StringInputField
- func (o *BackendService) Read(ctx context.Context, meta interface{}) error
- func (o *BackendService) Update(ctx context.Context, meta interface{}) error
- type Bucket
- func (o *Bucket) Create(ctx context.Context, meta interface{}) error
- func (o *Bucket) Delete(ctx context.Context, meta interface{}) error
- func (o *Bucket) GetName() string
- func (o *Bucket) Read(ctx context.Context, meta interface{}) error
- func (o *Bucket) Update(ctx context.Context, meta interface{}) error
- type BucketObject
- func (o *BucketObject) Create(ctx context.Context, meta interface{}) error
- func (o *BucketObject) Delete(ctx context.Context, meta interface{}) error
- func (o *BucketObject) GetName() string
- func (o *BucketObject) Read(ctx context.Context, meta interface{}) error
- func (o *BucketObject) Update(ctx context.Context, meta interface{}) error
- type CloudRun
- func (o *CloudRun) Create(ctx context.Context, meta interface{}) error
- func (o *CloudRun) Delete(ctx context.Context, meta interface{}) error
- func (o *CloudRun) GetName() string
- func (o *CloudRun) Read(ctx context.Context, meta interface{}) error
- func (o *CloudRun) Update(ctx context.Context, meta interface{}) error
- type ForwardingRule
- func (o *ForwardingRule) Create(ctx context.Context, meta interface{}) error
- func (o *ForwardingRule) Delete(ctx context.Context, meta interface{}) error
- func (o *ForwardingRule) GetName() string
- func (o *ForwardingRule) Read(ctx context.Context, meta interface{}) error
- func (o *ForwardingRule) Update(ctx context.Context, meta interface{}) error
- type Image
- func (o *Image) Create(ctx context.Context, meta interface{}) error
- func (o *Image) Delete(ctx context.Context, meta interface{}) error
- func (o *Image) GetName() string
- func (o *Image) ImageName() fields.StringInputField
- func (o *Image) Read(ctx context.Context, meta interface{}) error
- func (o *Image) Update(ctx context.Context, meta interface{}) error
- type ManagedSSL
- func (o *ManagedSSL) Create(ctx context.Context, meta interface{}) error
- func (o *ManagedSSL) Delete(ctx context.Context, meta interface{}) error
- func (o *ManagedSSL) GetName() string
- func (o *ManagedSSL) ID() fields.StringInputField
- func (o *ManagedSSL) Read(ctx context.Context, meta interface{}) error
- func (o *ManagedSSL) Update(ctx context.Context, meta interface{}) error
- type ServerlessNEG
- func (o *ServerlessNEG) Create(ctx context.Context, meta interface{}) error
- func (o *ServerlessNEG) Delete(ctx context.Context, meta interface{}) error
- func (o *ServerlessNEG) GetName() string
- func (o *ServerlessNEG) ID() fields.StringInputField
- func (o *ServerlessNEG) Read(ctx context.Context, meta interface{}) error
- func (o *ServerlessNEG) Update(ctx context.Context, meta interface{}) error
- type TargetHTTPProxy
- func (o *TargetHTTPProxy) Create(ctx context.Context, meta interface{}) error
- func (o *TargetHTTPProxy) Delete(ctx context.Context, meta interface{}) error
- func (o *TargetHTTPProxy) GetName() string
- func (o *TargetHTTPProxy) ID() fields.StringInputField
- func (o *TargetHTTPProxy) Read(ctx context.Context, meta interface{}) error
- func (o *TargetHTTPProxy) Update(ctx context.Context, meta interface{}) error
- type TargetHTTPSProxy
- func (o *TargetHTTPSProxy) Create(ctx context.Context, meta interface{}) error
- func (o *TargetHTTPSProxy) Delete(ctx context.Context, meta interface{}) error
- func (o *TargetHTTPSProxy) GetName() string
- func (o *TargetHTTPSProxy) ID() fields.StringInputField
- func (o *TargetHTTPSProxy) Read(ctx context.Context, meta interface{}) error
- func (o *TargetHTTPSProxy) Update(ctx context.Context, meta interface{}) error
- type URLMap
- func (o *URLMap) Create(ctx context.Context, meta interface{}) error
- func (o *URLMap) Delete(ctx context.Context, meta interface{}) error
- func (o *URLMap) GetName() string
- func (o *URLMap) ID() fields.StringInputField
- func (o *URLMap) Read(ctx context.Context, meta interface{}) error
- func (o *URLMap) Update(ctx context.Context, meta interface{}) error
- type URLMapping
- type URLPathMatcher
Constants ¶
View Source
const ( ACLPublicRead = "publicRead" ACLProjectPrivate = "projectPrivate" GCSProxyImageName = "nginx-gcs-static-proxy:1.20" GCSProxyDockerImage = "docker.io/outblocks/nginx-gcs-static-proxy:1.20" )
Variables ¶
View Source
var (
APISRequired = []string{"run.googleapis.com", "containerregistry.googleapis.com", "compute.googleapis.com"}
)
View Source
var Types = []registry.Resource{ (*Address)(nil), (*APIService)(nil), (*BackendService)(nil), (*BucketObject)(nil), (*Bucket)(nil), (*CloudRun)(nil), (*ForwardingRule)(nil), (*Image)(nil), (*ManagedSSL)(nil), (*ServerlessNEG)(nil), (*TargetHTTPProxy)(nil), (*TargetHTTPSProxy)(nil), (*URLMap)(nil), }
Functions ¶
func RegionToGCR ¶
Types ¶
type APIService ¶
type APIService struct { registry.ResourceBase Name fields.StringInputField `state:"force_new"` }
func (*APIService) Create ¶
func (o *APIService) Create(ctx context.Context, meta interface{}) error
func (*APIService) Delete ¶
func (o *APIService) Delete(ctx context.Context, meta interface{}) error
func (*APIService) GetName ¶
func (o *APIService) GetName() string
type Address ¶
type Address struct { registry.ResourceBase Name fields.StringInputField `state:"force_new"` ProjectID fields.StringInputField `state:"force_new"` IP fields.StringInputField }
type BackendService ¶
type BackendService struct { registry.ResourceBase Name fields.StringInputField `state:"force_new"` ProjectID fields.StringInputField `state:"force_new"` NEG fields.StringInputField 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"` } }
func (*BackendService) Create ¶
func (o *BackendService) Create(ctx context.Context, meta interface{}) error
func (*BackendService) Delete ¶
func (o *BackendService) Delete(ctx context.Context, meta interface{}) error
func (*BackendService) GetName ¶
func (o *BackendService) GetName() string
func (*BackendService) ID ¶
func (o *BackendService) ID() fields.StringInputField
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 IsPublic fields.BoolInputField }
type BucketObject ¶
type BucketObject struct { registry.ResourceBase BucketName fields.StringInputField `state:"force_new"` Name fields.StringInputField `state:"force_new"` Hash fields.StringInputField Path string `state:"-"` }
func (*BucketObject) Create ¶
func (o *BucketObject) Create(ctx context.Context, meta interface{}) error
func (*BucketObject) Delete ¶
func (o *BucketObject) Delete(ctx context.Context, meta interface{}) error
func (*BucketObject) GetName ¶
func (o *BucketObject) GetName() 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"` Image fields.StringInputField IsPublic fields.BoolInputField 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 }
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 PortRange fields.StringInputField Fingerprint string `state:"-"` }
func (*ForwardingRule) Create ¶
func (o *ForwardingRule) Create(ctx context.Context, meta interface{}) error
func (*ForwardingRule) Delete ¶
func (o *ForwardingRule) Delete(ctx context.Context, meta interface{}) error
func (*ForwardingRule) GetName ¶
func (o *ForwardingRule) GetName() string
type Image ¶
type Image struct { registry.ResourceBase Name fields.StringInputField `state:"force_new"` ProjectID fields.StringInputField `state:"force_new"` GCR fields.StringInputField `state:"force_new"` Source fields.StringInputField `state:"force_new"` }
func (*Image) ImageName ¶
func (o *Image) ImageName() fields.StringInputField
type ManagedSSL ¶
type ManagedSSL struct { registry.ResourceBase Name fields.StringInputField `state:"force_new"` ProjectID fields.StringInputField `state:"force_new"` Domain fields.StringInputField `state:"force_new"` }
func (*ManagedSSL) Create ¶
func (o *ManagedSSL) Create(ctx context.Context, meta interface{}) error
func (*ManagedSSL) Delete ¶
func (o *ManagedSSL) Delete(ctx context.Context, meta interface{}) error
func (*ManagedSSL) GetName ¶
func (o *ManagedSSL) GetName() string
func (*ManagedSSL) ID ¶
func (o *ManagedSSL) ID() fields.StringInputField
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"` }
func (*ServerlessNEG) Create ¶
func (o *ServerlessNEG) Create(ctx context.Context, meta interface{}) error
func (*ServerlessNEG) Delete ¶
func (o *ServerlessNEG) Delete(ctx context.Context, meta interface{}) error
func (*ServerlessNEG) GetName ¶
func (o *ServerlessNEG) GetName() string
func (*ServerlessNEG) ID ¶
func (o *ServerlessNEG) ID() fields.StringInputField
type TargetHTTPProxy ¶
type TargetHTTPProxy struct { registry.ResourceBase Name fields.StringInputField `state:"force_new"` ProjectID fields.StringInputField `state:"force_new"` URLMap fields.StringInputField Fingerprint string `state:"-"` }
func (*TargetHTTPProxy) Create ¶
func (o *TargetHTTPProxy) Create(ctx context.Context, meta interface{}) error
func (*TargetHTTPProxy) Delete ¶
func (o *TargetHTTPProxy) Delete(ctx context.Context, meta interface{}) error
func (*TargetHTTPProxy) GetName ¶
func (o *TargetHTTPProxy) GetName() string
func (*TargetHTTPProxy) ID ¶
func (o *TargetHTTPProxy) ID() fields.StringInputField
type TargetHTTPSProxy ¶
type TargetHTTPSProxy struct { registry.ResourceBase Name fields.StringInputField `state:"force_new"` ProjectID fields.StringInputField `state:"force_new"` URLMap fields.StringInputField SSLCertificates fields.ArrayInputField Fingerprint string `state:"-"` }
func (*TargetHTTPSProxy) Create ¶
func (o *TargetHTTPSProxy) Create(ctx context.Context, meta interface{}) error
func (*TargetHTTPSProxy) Delete ¶
func (o *TargetHTTPSProxy) Delete(ctx context.Context, meta interface{}) error
func (*TargetHTTPSProxy) GetName ¶
func (o *TargetHTTPSProxy) GetName() string
func (*TargetHTTPSProxy) ID ¶
func (o *TargetHTTPSProxy) ID() fields.StringInputField
type URLMap ¶
type URLMap struct { registry.ResourceBase Name fields.StringInputField `state:"force_new"` ProjectID fields.StringInputField `state:"force_new"` URLMapping fields.MapInputField Fingerprint string `state:"-"` }
func (*URLMap) ID ¶
func (o *URLMap) ID() fields.StringInputField
type URLMapping ¶
type URLMapping struct { Host string PathMatcher []*URLPathMatcher }
type URLPathMatcher ¶
Click to show internal directories.
Click to hide internal directories.