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

providerconformance

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 6 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) DiagnosticSafe

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

func (*FakeDriver) Preflight

func (*FakeDriver) Provision

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

func (*FakeDriver) SetFailure

func (d *FakeDriver) SetFailure(mode FailureMode)

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 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

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