Documentation ¶
Index ¶
- Constants
- func Metadata(r io.Reader) func(*App) error
- func MetadataFile(file string) func(*App) error
- func WithCleanup(f func()) func(*App) error
- func WithComposeFiles(files ...string) func(*App) error
- func WithComposes(readers ...io.Reader) func(*App) error
- func WithName(name string) func(*App) error
- func WithPath(path string) func(*App) error
- func WithSettings(readers ...io.Reader) func(*App) error
- func WithSettingsFiles(files ...string) func(*App) error
- type App
- type InitialComposeFile
- type InitialService
Constants ¶
const SingleFileSeparator = "\n---\n"
SingleFileSeparator is the separator used in single-file app
Variables ¶
This section is empty.
Functions ¶
func MetadataFile ¶
MetadataFile adds the specified metadata file to the app
func WithCleanup ¶
WithCleanup sets the cleanup function of the app
func WithComposeFiles ¶
WithComposeFiles adds the specified compose files to the app
func WithComposes ¶
WithComposes adds the specified compose readers to the app
func WithSettings ¶
WithSettings adds the specified settings readers to the app
func WithSettingsFiles ¶
WithSettingsFiles adds the specified settings files to the app
Types ¶
type App ¶
type App struct { Name string Path string Cleanup func() // contains filtered or unexported fields }
App represents an app
func NewAppFromDefaultFiles ¶
NewAppFromDefaultFiles creates a new docker app using the default files in the specified path. If one of those file doesn't exists, it will error out.
type InitialComposeFile ¶
type InitialComposeFile struct { Version string Services map[string]InitialService }
InitialComposeFile represents an initial composefile (used by the init command)
func NewInitialComposeFile ¶
func NewInitialComposeFile() InitialComposeFile
NewInitialComposeFile returns an empty InitialComposeFile object
type InitialService ¶
type InitialService struct {
Image string
}
InitialService represents an initial service (used by the init command)