Help us shape the future of Go! Take the 2026 Go Developer Survey

providerconformance

package
v0.4.26 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Require

func Require(report Report) error

Types

type Check

type Check struct {
	Name    string `json:"name"`
	Status  Status `json:"status"`
	Message string `json:"message,omitempty"`
}

type Destroyer

type Destroyer interface {
	ConformanceDestroy(context.Context, capability.Resource) error
}

type Drifter

type Drifter interface {
	ConformanceDrift()
}

type FailureMode

type FailureMode string
const (
	FailureNone             FailureMode = ""
	FailureUnavailable      FailureMode = "unavailable"
	FailureProvision        FailureMode = "provision"
	FailureMalformedBinding FailureMode = "malformed-binding"
	FailureVerify           FailureMode = "verify"
)

type FakeDriver

type FakeDriver struct {
	// contains filtered or unexported fields
}

func NewFakeDriver

func NewFakeDriver(provider capability.Provider) *FakeDriver

func (*FakeDriver) Bind

func (d *FakeDriver) Bind(_ context.Context, resource capability.Resource, binding capability.Binding) error

func (*FakeDriver) ConformanceDestroy

func (d *FakeDriver) ConformanceDestroy(_ context.Context, resource capability.Resource) error

func (*FakeDriver) ConformanceDrift

func (d *FakeDriver) ConformanceDrift()

func (*FakeDriver) ConformanceStateDigest

func (d *FakeDriver) ConformanceStateDigest() string

func (*FakeDriver) Descriptor

func (d *FakeDriver) Descriptor() capability.Provider

func (*FakeDriver) DesiredState added in v0.4.14

func (d *FakeDriver) DesiredState(resource capability.Resource, binding capability.Binding) reconciliation.Desired

func (*FakeDriver) DiagnosticSafe

func (d *FakeDriver) DiagnosticSafe(err error) bool

func (*FakeDriver) Observe added in v0.4.14

func (*FakeDriver) Preflight

func (*FakeDriver) Provision

func (d *FakeDriver) Provision(_ context.Context, resource capability.Resource, _ capability.Binding) error

func (*FakeDriver) SetConflict added in v0.4.14

func (d *FakeDriver) SetConflict(value bool)

func (*FakeDriver) SetDegraded added in v0.4.14

func (d *FakeDriver) SetDegraded(value bool)

func (*FakeDriver) SetFailure

func (d *FakeDriver) SetFailure(mode FailureMode)

func (*FakeDriver) SetReconciliationOwnership added in v0.4.14

func (d *FakeDriver) SetReconciliationOwnership(owner reconciliation.Ownership)

func (*FakeDriver) SetUnsupported added in v0.4.14

func (d *FakeDriver) SetUnsupported(value bool)

func (*FakeDriver) Stats

func (d *FakeDriver) Stats() FakeStats

func (*FakeDriver) Verify

type FakeStats

type FakeStats struct {
	Creates  int
	Noops    int
	Repairs  int
	Destroys int
}

type FaultFixture added in v0.4.22

type FaultFixture interface{ SetFailure(FailureMode) }

FaultFixture is implemented by disposable fixtures, not production drivers. It injects a failure at the selected phase and restores normal behavior with FailureNone. State fingerprints exclude injected controls and counters.

type OwnershipFixture added in v0.4.22

type OwnershipFixture interface {
	SetReconciliationOwnership(reconciliation.Ownership)
}

type Report

type Report struct {
	Provider capability.ProviderKind `json:"provider"`
	Status   Status                  `json:"status"`
	Checks   []Check                 `json:"checks"`
}

func Run

func Run(ctx context.Context, target Target) Report

func RunScenarios added in v0.4.22

func RunScenarios(ctx context.Context, target Target) Report

RunScenarios extends the original lifecycle harness with the same failure, recovery and ownership checks used by the in-tree provider proof. It never invokes a shell or assumes a particular provider deployment technology.

type StateDigester

type StateDigester interface {
	ConformanceStateDigest() string
}

type Status

type Status string
const (
	Pass Status = "pass"
	Fail Status = "fail"
)

type Target

type Target struct {
	Descriptor       capability.IntegrationDescriptor
	Request          capability.Request
	Application      string
	UnsupportedScope capability.ProviderScope
}

Jump to

Keyboard shortcuts

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