v2

package
v0.4.2-alpha3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

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

func Standardize(text string) string

Types

type App

type App types.ServiceConfig

func (*App) State

func (a *App) State() error

func (*App) StoreInfo

func (a *App) StoreInfo() (*codegen.AppStoreInfo, error)

type AppStore

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

func NewAppStore

func NewAppStore() (*AppStore, error)

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

Jump to

Keyboard shortcuts

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