Plugin API

pkg/plugins/api

func RegisterParser

func RegisterParser(
    parser func(
      name string,
      data string,
    ) (
      conditions TemplateObject,
      metadata TemplateObject,
      mappings TemplateObject,
      outputs TemplateObject,
      parameters TemplateObject,
      resources TemplateObject,
      errors []error,
    )
) func(
    name string,
    data string,
) []byte

RegisterMapping for your plugin

func RegisterOutput

func RegisterOutput(
    output func(
        name string,
        data string,
    ) (cf types.TemplateObject),
) func(
    name string,
    data string,
) []byte

RegisterOutput for your plugin

func RegisterPlugin

func RegisterPlugin(config apiTypes.Config) []byte

RegisterPlugin to provide the name, prefix and version, and requiresAWSSession