Documentation ¶
Index ¶
- func IsNotFoundError(err error) bool
- type ResourceContext
- func (rc ResourceContext) Create(t *testing.T, u *unstructured.Unstructured, provider *tfschema.Provider, ...) (*unstructured.Unstructured, error)
- func (rc ResourceContext) Delete(t *testing.T, u *unstructured.Unstructured, provider *tfschema.Provider, ...) error
- func (rc ResourceContext) DoPreActuationTransformFor(u *unstructured.Unstructured, provider *tfschema.Provider, ...) (*unstructured.Unstructured, error)
- func (rc ResourceContext) Get(t *testing.T, u *unstructured.Unstructured, provider *tfschema.Provider, ...) (*unstructured.Unstructured, error)
- 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 SkipDriftDetection bool SkipDelete bool // fields related to DCL-based resources DCLSchema *openapi.Schema DCLBased bool }
func GetResourceContext ¶
func GetResourceContext(fixture resourcefixture.ResourceFixture, serviceMetadataLoader dclmetadata.ServiceMetadataLoader, dclSchemaLoader dclschemaloader.DCLSchemaLoader) ResourceContext
func (ResourceContext) Create ¶
func (rc ResourceContext) Create(t *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(t *testing.T, u *unstructured.Unstructured, provider *tfschema.Provider, c client.Client, smLoader *servicemappingloader.ServiceMappingLoader, config *mmdcl.Config, dclConverter *dclconversion.Converter) error
func (ResourceContext) DoPreActuationTransformFor ¶
func (rc ResourceContext) DoPreActuationTransformFor(u *unstructured.Unstructured, provider *tfschema.Provider, smLoader *servicemappingloader.ServiceMappingLoader, dclConverter *dclconversion.Converter) (*unstructured.Unstructured, error)
func (ResourceContext) Get ¶
func (rc ResourceContext) Get(t *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) SupportsLabels ¶
func (rc ResourceContext) SupportsLabels(smLoader *servicemappingloader.ServiceMappingLoader) bool
Source Files ¶
- bigquery_context.go
- bigtable_context.go
- compute_context.go
- configcontroller_context.go
- container_context.go
- dataflow_context.go
- dataproc_context.go
- firestore_context.go
- iam_context.go
- iap_context.go
- identityplatform_context.go
- kms_context.go
- monitoring_context.go
- privateca_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.