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) IsDirectResource() 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 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(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, config *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, config *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) bool
func (ResourceContext) IsDirectResource ¶ added in v1.118.0
func (rc ResourceContext) IsDirectResource() bool
func (ResourceContext) SupportsLabels ¶
func (rc ResourceContext) SupportsLabels(smLoader *servicemappingloader.ServiceMappingLoader) bool
Source Files ¶
- accesscontextmanager_context.go
- alloydb_context.go
- bigquery_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.