devresources

package
v0.0.0-...-611bec0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectName

func ProjectName(configPath string) string

func Reset

func Reset(ctx context.Context, open docker.OpenFunc, stateDir, projectName string) error

Types

type Backend

type Backend struct {
	Kinds   []resourcesv1.ResourceType
	Resolve func(ctx context.Context, project string, resources []declaration.Resource) ([]binding.Resolved, error)
	Close   func(ctx context.Context, stopContainers bool) error
	// contains filtered or unexported fields
}

type Options

type Options struct {
	Open       docker.OpenFunc
	StateDir   string
	Project    *project.Project
	AppOrigins func() []string
	Announce   func(line string)
}

type Resources

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

func New

func New(projectName string, opts Options) *Resources

func (*Resources) Close

func (r *Resources) Close(ctx context.Context) error

func (*Resources) Queue

func (r *Resources) Queue() *queue.Backend

func (*Resources) Resolve

func (r *Resources) Resolve(ctx context.Context, resources []declaration.Resource) ([]binding.Resolved, error)

func (*Resources) Services

func (r *Resources) Services() bindingproxy.Services

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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