Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed fixtures/sample.docker-compose.yaml SampleComposeAppYAML string ErrComposeExtensionNameXCasaOSNotFound = fmt.Errorf("extension `%s` not found", common.ComposeExtensionNameXCasaOS) ErrMainAppNotFound = fmt.Errorf("main app not found") )
Functions ¶
func Standardize ¶
Types ¶
type App ¶
type App types.ServiceConfig
type AppStore ¶
type AppStore struct {
// contains filtered or unexported fields
}
func NewAppStore ¶
func (*AppStore) Catalog ¶
func (s *AppStore) Catalog() map[string]*ComposeApp
func (*AppStore) ComposeApp ¶
func (s *AppStore) ComposeApp(appStoreID string) *ComposeApp
type ComposeApp ¶
type ComposeApp codegen.ComposeApp
func NewComposeAppFromYAML ¶
func NewComposeAppFromYAML(yaml []byte) (*ComposeApp, error)
func (*ComposeApp) App ¶
func (a *ComposeApp) App(name string) *App
func (*ComposeApp) Apps ¶
func (a *ComposeApp) Apps() map[string]*App
func (*ComposeApp) StoreInfo ¶
func (a *ComposeApp) StoreInfo() (*codegen.ComposeAppStoreInfo, error)
func (*ComposeApp) YAML ¶
func (a *ComposeApp) YAML() *string
type ComposeService ¶
type ComposeService struct{}
func NewComposeService ¶
func NewComposeService() *ComposeService
func (*ComposeService) Install ¶
func (s *ComposeService) Install(projectName string, composeYAML []byte) (*codegen.ComposeApp, error)
func (*ComposeService) PrepareWorkingDirectory ¶
func (s *ComposeService) PrepareWorkingDirectory(projectName string, composeYAML []byte) (string, error)
func (*ComposeService) Pull ¶
func (s *ComposeService) Pull(ctx context.Context, composeApp *codegen.ComposeApp) error
Click to show internal directories.
Click to hide internal directories.