contexts

package
v1.123.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

Types

type ResourceContext

type ResourceContext struct {
	ResourceGVK  schema.GroupVersionKind
	ResourceKind string

	SkipNoChange bool
	SkipUpdate   bool
	SkipDelete   bool

	IsTFResource     bool
	IsDCLResource    bool
	IsDirectResource 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

	// Time to delay before recreating the resource as part of the drift detection test.
	// The default wait time is 10 seconds. However, some resources appear to need to
	// wait longer before recreating, so this value is customizable.
	RecreateDelay 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) Delete

func (ResourceContext) Get

func (ResourceContext) IsAutoGenerated added in v1.98.0

func (rc ResourceContext) IsAutoGenerated(smLoader *servicemappingloader.ServiceMappingLoader) bool

func (ResourceContext) SupportsLabels

func (rc ResourceContext) SupportsLabels(smLoader *servicemappingloader.ServiceMappingLoader) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL