bindings

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServiceBindings = map[string]ServiceBindingBuilder{}
)

Functions

func RegisterServiceBinding

func RegisterServiceBinding(name string, serviceBindingBuilder ServiceBindingBuilder)

RegisterServiceBinding registers a service binding

Types

type PostgresServiceBinding

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

func (*PostgresServiceBinding) GenerateAccount

func (b *PostgresServiceBinding) GenerateAccount(ctx context.Context, bindingId string, isStaging bool) (map[string]string, error)

func (*PostgresServiceBinding) InitBaseBinding

func (b *PostgresServiceBinding) InitBaseBinding(ctx context.Context, bindingConfig map[string]string) error

func (*PostgresServiceBinding) InitDerivedBinding

func (b *PostgresServiceBinding) InitDerivedBinding(ctx context.Context, grants []string, bindingConfig map[string]string) error

func (*PostgresServiceBinding) InitService

func (b *PostgresServiceBinding) InitService(ctx context.Context, serviceConfig map[string]string) error

type ServiceBinding

type ServiceBinding interface {
	InitService(ctx context.Context, serviceConfig map[string]string) error                           // Initialize the service with the given config
	InitBaseBinding(ctx context.Context, bindingConfig map[string]string) error                       // Initialize the base binding against service with the given config
	InitDerivedBinding(ctx context.Context, grants []string, bindingConfig map[string]string) error   // Initialize the derived binding against service with the given config
	GenerateAccount(ctx context.Context, bindingId string, isStaging bool) (map[string]string, error) // Generate the account based on the binding config
}

func NewPostgresServiceBinding

func NewPostgresServiceBinding() ServiceBinding

type ServiceBindingBuilder

type ServiceBindingBuilder func() ServiceBinding

Jump to

Keyboard shortcuts

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