barrel

package
v0.0.0-...-9847a95 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseDirectory     = "/var/www/data"
	ComposerDirectory = BaseDirectory + "/project"
	WebDirectory      = ComposerDirectory + "/web"
	OntologyDirectory = SitesDirectory + "/default/files/ontology"
	SitesDirectory    = WebDirectory + "/sites"
	WissKIDirectory   = WebDirectory + "/modules/contrib/wisski"

	LocalSettingsPath  = "/settings/local.php"
	GlobalSettingsPath = "/settings/global.php"

	PHPIniPath = "/usr/local/etc/php/conf.d/zzz_custom.ini"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Barrel

type Barrel struct {
	ingredient.Base
	// contains filtered or unexported fields
}

Barrel provides access to the underlying Barrel.

func (*Barrel) BashScript

func (barrel *Barrel) BashScript(ctx context.Context, io stream.IOStream, commands ...string) (e error)

BashScript executes the given command as a bash script inside the container.

func (*Barrel) Build

func (barrel *Barrel) Build(ctx context.Context, progress io.Writer, start bool) (e error)

Build builds or rebuilds the barrel connected to this instance.

It also logs the current time into the metadata belonging to this instance.

func (Barrel) LastRebuild

func (barrel Barrel) LastRebuild(ctx context.Context) (t time.Time, err error)

func (*Barrel) OpenStack

func (barrel *Barrel) OpenStack() (component.StackWithResources, error)

Barrel returns a stack representing the running WissKI Instance.

func (*Barrel) Running

func (barrel *Barrel) Running(ctx context.Context) (r bool, e error)

Running checks if this WissKI is currently running.

type ExitError

type ExitError int

func (ExitError) Code

func (ee ExitError) Code() exit.ExitCode

func (ExitError) Error

func (ee ExitError) Error() string

type LastRebuildFetcher

type LastRebuildFetcher struct {
	ingredient.Base
	// contains filtered or unexported fields
}

func (*LastRebuildFetcher) Fetch

func (lbr *LastRebuildFetcher) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)

type RunningFetcher

type RunningFetcher struct {
	ingredient.Base
	// contains filtered or unexported fields
}

func (*RunningFetcher) Fetch

func (rf *RunningFetcher) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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