Documentation
¶
Index ¶
- Constants
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func IsConflictError(err error) bool
- func IsForbiddenError(err error) bool
- func IsNotFoundError(err error) bool
- func Register(name string, f SweeperFunc, dependencies ...string)
- func SetMinLevel(level string)
- func SetOutput(w io.Writer)
- func SharedClient(ctx context.Context) (*client.CrowdStrikeAPISpecification, error)
- func ShouldIgnoreError(err error) bool
- func SkipSweepError(err error) bool
- func SweepOrchestrator(ctx context.Context, sweepables []Sweepable) error
- func Trace(format string, v ...interface{})
- func Warn(format string, v ...interface{})
- type Sweepable
- type SweeperFunc
Constants ¶
View Source
const ResourcePrefix = "tf-acc-test-"
ResourcePrefix is the standard prefix for all test resources.
Variables ¶
This section is empty.
Functions ¶
func IsConflictError ¶
IsConflictError checks if the error is a 409 Conflict response.
func IsForbiddenError ¶
IsForbiddenError checks if the error is a 403 Forbidden response.
func IsNotFoundError ¶
IsNotFoundError checks if the error is a 404 Not Found response.
func Register ¶
func Register(name string, f SweeperFunc, dependencies ...string)
func SetMinLevel ¶
func SetMinLevel(level string)
func SharedClient ¶
func SharedClient(ctx context.Context) (*client.CrowdStrikeAPISpecification, error)
func ShouldIgnoreError ¶
ShouldIgnoreError determines if a delete operation should ignore an error Returns true for errors that indicate the resource is already gone (404, 409) or that we don't have permission (403) - we can't fix permission issues in sweeper.
func SkipSweepError ¶
Types ¶
type Sweepable ¶
func NewSweepResource ¶
type SweeperFunc ¶
Click to show internal directories.
Click to hide internal directories.