stacks

package
v1.0.68-rc Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDoc added in v1.0.58

func GenerateDoc(formPath string, w io.Writer) error

GenerateDoc is the method used to generate documentation from a stackform

func NewCommands

func NewCommands() *cobra.Command

func NewGenDocCmd added in v1.0.58

func NewGenDocCmd() *cobra.Command

NewGendDocCmd returns the cobra command holding the forms gen-doc subcommand

func NewGetCommand

func NewGetCommand() *cobra.Command

func NewListCommand

func NewListCommand() *cobra.Command

func NewValidateFormCmd added in v1.0.58

func NewValidateFormCmd() *cobra.Command

func WithFlagForms added in v1.0.58

func WithFlagForms(cmd *cobra.Command) string

Types

type Parameter added in v1.0.58

type Parameter struct {
	// Key of the parameter
	Key string
	// Type of the parameter
	Type string
	// Default value, currently supported: string / integer
	Default interface{}
	// Description is the parameter description
	Description string
}

Parameter is the parameter described in the the section (e.g: required: true, type: string, etc.)

type Section added in v1.0.58

type Section struct {
	// Name is the name of the section
	Name string
	// Parameters holds the list
	// of the parameter in the section
	Parameters []Parameter
}

Section is the section described in the technology (e.g: ec2, network, etc.)

type Technology added in v1.0.58

type Technology struct {
	// Name is the name of the technology
	Name string
	// Sections holds the list
	// of sections in the technologoy
	Sections []Section
}

Technology is the technology described in the stack forms (e.g: terraform, pipeline, etc.)

type Usecase added in v1.0.58

type Usecase struct {
	// Name is the name of the usecase
	Name string
	// Technologies holds the list
	// of technologies in the stackforms
	Technologies []Technology
}

Usecase of the forms, default is `default` one

Jump to

Keyboard shortcuts

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