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

exposure

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(ctx context.Context, compose bhruntime.Compose, runtime application.RuntimeFiles) error

func Load

func Load(runtime application.RuntimeFiles) (State, Files, error)

func ProjectName

func ProjectName(m application.Manifest) string

func Stop

func Stop(ctx context.Context, compose bhruntime.Compose, runtime application.RuntimeFiles) error

Types

type Deployment

type Deployment struct {
	Hostname string
	TLSMode  string
	TLSDir   string
}

type Driver

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

func NewDriver

func NewDriver(compose bhruntime.Compose, m application.Manifest, runtime application.RuntimeFiles, deployment Deployment) *Driver

func (*Driver) Bind

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

func (*Driver) Descriptor

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

func (*Driver) IntegrationDescriptor

func (d *Driver) IntegrationDescriptor() capability.IntegrationDescriptor

func (*Driver) Preflight

func (d *Driver) Preflight(ctx context.Context, resource capability.Resource, binding capability.Binding) error

func (*Driver) Provision

func (d *Driver) Provision(ctx context.Context, resource capability.Resource, binding capability.Binding) error

func (*Driver) Rollback

func (d *Driver) Rollback(ctx context.Context) error

func (*Driver) State

func (d *Driver) State() State

func (*Driver) Verify

func (d *Driver) Verify(ctx context.Context, resource capability.Resource, binding capability.Binding) error

type Files

type Files struct {
	Dir     string
	Compose string
	Env     string
	State   string
}

func FilesFor

func FilesFor(runtime application.RuntimeFiles) Files

type Route

type Route struct {
	Name           string `json:"name"`
	Service        string `json:"service"`
	TargetPort     int    `json:"target_port"`
	Protocol       string `json:"protocol"`
	Visibility     string `json:"visibility"`
	PublishedPort  int    `json:"published_port"`
	TLSFingerprint string `json:"tls_fingerprint,omitempty"`
}

type State

type State struct {
	Version int     `json:"version"`
	Project string  `json:"project"`
	Network string  `json:"network"`
	Host    string  `json:"host"`
	Routes  []Route `json:"routes"`
}

Jump to

Keyboard shortcuts

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