Skip to main content

abstractANodeAction

The base class of every resource action: an action implementing IResourceAction must extend it. It gives the action the Container, and a log() that goes through Octo's event stream so its output lands in the command's report alongside everything else.

@example
@Action(MyResource)
export class AddMyResourceAction extends ANodeAction implements IResourceAction<MyResource> { ... }
@group

Functions/Node

Hierarchy

Index

Properties

Methods

Properties

readonlycontainer

container: Container

The container, for resolving whatever services or SDK clients the action needs.

Methods

log

  • log(diff: Diff, message: string, metadata?: Record<string, unknown>): void
  • To report what the action is doing for diff, the diff its handle() was given. The message is emitted as an ActionEvent, so it is picked up by whatever listeners the command has, rather than written straight to the console.


    Parameters

    • diff: Diff
    • message: string
    • metadata: Record<string, unknown> = {}

    Returns void

Page Options