tryghost-ghost

Namespace

tryghost-ghost

Description:
  • Experience the power of Ghost, the leading open-source Node.js CMS! With Ghost(Pro), launch a secure, high-performance site in 2 minutes, featuring worldwide CDN, backups, and maintenance.

Author:
See:

Methods

(async, static) createTryghostGhostInstance(context, body) → {TryghostGhost}

Description:
  • Create a new Ghost instance

Example
import { Context } from '@osaas/client-core';
import { createTryghostGhostInstance } from '@osaas/client-services';

const ctx = new Context();
const body: TryghostGhostConfig = { name: 'myinstance', ... };
const instance = await createTryghostGhostInstance(ctx, body);
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

body TryghostGhostConfig

Service instance configuration

Returns:
  • Service instance
Type
TryghostGhost

(async, static) getTryghostGhostInstance(context, name) → {TryghostGhost}

Description:
  • Get a Ghost instance

Example
import { Context } from '@osaas/client-core';
import { getTryghostGhostInstance } from '@osaas/client-services';

const ctx = new Context();
const instance = await getTryghostGhostInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the ghost to be retrieved

Returns:
  • Service instance
Type
TryghostGhost

(async, static) removeTryghostGhostInstance(context, name)

Description:
  • Remove a Ghost instance

Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the ghost to be removed