Documentation ¶
Index ¶
- Constants
- type Barrel
- func (barrel *Barrel) Build(ctx context.Context, progress io.Writer, start bool) error
- func (barrel Barrel) LastRebuild(ctx context.Context) (t time.Time, err error)
- func (barrel *Barrel) Running(ctx context.Context) (bool, error)
- func (barrel *Barrel) Shell(ctx context.Context, io stream.IOStream, argv ...string) error
- func (barrel *Barrel) ShellScript(ctx context.Context, io stream.IOStream, commands ...string) error
- func (barrel *Barrel) Stack() component.StackWithResources
- type ExitError
- type LastRebuildFetcher
- type RunningFetcher
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) Build ¶
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) Shell ¶
Shell executes a shell with the given command line arguments inside the container. If an error occurs, it is of type ExitError.
func (*Barrel) ShellScript ¶
func (barrel *Barrel) ShellScript(ctx context.Context, io stream.IOStream, commands ...string) error
ShellScript quotes the given command and executes it as a shell script inside the container.
func (*Barrel) Stack ¶
func (barrel *Barrel) Stack() component.StackWithResources
Barrel returns a stack representing the running WissKI Instance
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)
Click to show internal directories.
Click to hide internal directories.