Documentation
¶
Overview ¶
Package bind provides interfaces and types for use when binding an app to a service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddInstanceArgs ¶
type AddInstanceArgs struct {
Envs []ServiceEnvVar
Writer io.Writer
ShouldRestart bool
}
type App ¶
type App interface {
// GetAddresses returns the app addresses.
GetAddresses() ([]string, error)
// GetName returns the app name.
GetName() string
// GetUUID returns the App v4 UUID
GetUUID() (string, error)
// GetUnits returns the app units.
GetUnits() ([]Unit, error)
// AddInstance adds an instance to the application.
AddInstance(args AddInstanceArgs) error
// RemoveInstance removes an instance from the application.
RemoveInstance(args RemoveInstanceArgs) error
}
type EnvVar ¶
type EnvVar struct {
Name string `json:"name"`
Value string `json:"value"`
Public bool `json:"public"`
}
EnvVar represents a environment variable for an app.
type RemoveInstanceArgs ¶
type ServiceEnvVar ¶
Click to show internal directories.
Click to hide internal directories.