testutils

package
v1.0.0-beta.231 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanSubscriptionAdapter

type PlanSubscriptionAdapter interface {
	// GetPlan returns the plan for the Ref with all it's dependent resources.
	//
	// If the Plan is Not Found, it should return a PlanNotFoundError.
	GetVersion(ctx context.Context, namespace string, ref plansubscription.PlanRefInput) (subscription.Plan, error)

	// Converts a plan.CreatePlanInput to a subscription.Plan.
	FromInput(ctx context.Context, namespace string, input plan.CreatePlanInput) (subscription.Plan, error)
}

TODO: we can get rid of this

type PlanSubscriptionAdapterConfig

type PlanSubscriptionAdapterConfig struct {
	PlanService plan.Service
	Logger      *slog.Logger
}

Jump to

Keyboard shortcuts

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