v2

package
v0.4.2-alpha2 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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