Documentation ¶
Index ¶
- func IsNotFoundError(err error) bool
- type ResourceContext
- func (rc ResourceContext) Create(ctx context.Context, _ *testing.T, u *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (rc ResourceContext) Delete(ctx context.Context, _ *testing.T, u *unstructured.Unstructured, ...) error
- func (rc ResourceContext) Get(ctx context.Context, _ *testing.T, u *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (rc ResourceContext) IsAutoGenerated(smLoader *servicemappingloader.ServiceMappingLoader, ...) bool
- func (rc ResourceContext) SupportsLabels(smLoader *servicemappingloader.ServiceMappingLoader, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFoundError ¶
Types ¶
type ResourceContext ¶
type ResourceContext struct { ResourceGVK schema.GroupVersionKind ResourceKind string SkipNoChange bool SkipUpdate bool SkipDelete bool // Hack: Optionally wait before getting the object in GCP. This is to work around some issues with troublesome // services in GCP that claim to be done with creating / updating the resource before it is actually available. PostModifyDelay time.Duration // If true, skip drift detection test. SkipDriftDetection bool // fields related to DCL-based resources DCLSchema *openapi.Schema }
func GetResourceContext ¶
func GetResourceContext(fixture resourcefixture.ResourceFixture, serviceMetadataLoader dclmetadata.ServiceMetadataLoader, dclSchemaLoader dclschemaloader.DCLSchemaLoader) (ResourceContext, error)
func (ResourceContext) Create ¶
func (rc ResourceContext) Create(ctx context.Context, _ *testing.T, u *unstructured.Unstructured, provider *tfschema.Provider, c client.Client, smLoader *servicemappingloader.ServiceMappingLoader, config *mmdcl.Config, dclConverter *dclconversion.Converter) (*unstructured.Unstructured, error)
func (ResourceContext) Delete ¶
func (rc ResourceContext) Delete(ctx context.Context, _ *testing.T, u *unstructured.Unstructured, provider *tfschema.Provider, c client.Client, smLoader *servicemappingloader.ServiceMappingLoader, cfg *mmdcl.Config, dclConverter *dclconversion.Converter, httpClient *http.Client) error
func (ResourceContext) Get ¶
func (rc ResourceContext) Get(ctx context.Context, _ *testing.T, u *unstructured.Unstructured, provider *tfschema.Provider, c client.Client, smLoader *servicemappingloader.ServiceMappingLoader, cfg *mmdcl.Config, dclConverter *dclconversion.Converter, httpClient *http.Client) (*unstructured.Unstructured, error)
func (ResourceContext) IsAutoGenerated ¶ added in v1.98.0
func (rc ResourceContext) IsAutoGenerated(smLoader *servicemappingloader.ServiceMappingLoader, u *unstructured.Unstructured) bool
func (ResourceContext) SupportsLabels ¶
func (rc ResourceContext) SupportsLabels(smLoader *servicemappingloader.ServiceMappingLoader, u *unstructured.Unstructured) bool
Source Files ¶
- accesscontextmanager_context.go
- alloydb_context.go
- bigquery_context.go
- bigquerydatatransfer_context.go
- compute_context.go
- configcontroller_context.go
- container_context.go
- dataflow_context.go
- dataproc_context.go
- dlp_context.go
- firestore_context.go
- iam_context.go
- iap_context.go
- identityplatform_context.go
- kms_context.go
- monitoring_context.go
- privateca_context.go
- pubsub_context.go
- pusublite_context.go
- redis_context.go
- register.go
- resourcemanager_context.go
- secretmanager_context.go
- serviceusage_context.go
- spanner_context.go
- sql_context.go
- storage_context.go
- vpcaccess_context.go
Click to show internal directories.
Click to hide internal directories.