config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIGateway

type APIGateway struct {
	StackName string             `yaml:"stack_name"`
	APIDomain string             `yaml:"api_domain"`
	APIG      bool               `yaml:"apig"`
	Lambdas   []APIGatewayLambda `yaml:"lambdas"`
}

type APIGatewayLambda

type APIGatewayLambda struct {
	Name        string              `yaml:"name"`
	Description string              `yaml:"description"`
	Envars      []map[string]string `yaml:"envars,omitempty"`
	Verb        string              `yaml:"verb"`
	Path        string              `yaml:"path"`
	Code        []Code              `yaml:"code,omitempty"`
}

type Code

type Code struct {
	Key     string   `yaml:"key"`
	Tmpl    string   `yaml:"tmpl,omitempty"`
	Imports []string `yaml:"imports,omitempty"`
}

type Config

type Config struct {
	Structure   Structure    `yaml:"structure,omitempty"`
	Lambdas     []Lambda     `yaml:"lambdas,omitempty"`
	APIGateways []APIGateway `yaml:"apigateways,omitempty"`
	SQSs        []SQS        `yaml:"sqs,omitempty"`
	Buckets     []S3         `yaml:"buckets,omitempty"`
	RestfulAPIs []RestfulAPI `yaml:"restfulapis,omitempty"`
}

type Cron

type Cron struct {
	ScheduleExpression string `yaml:"schedule_expression"`
	IsEnabled          string `yaml:"is_enabled"`
}

type File

type File struct {
	Name string `yaml:"name"`
	Tmpl string `yaml:"tmpl,omitempty"`
}

type Folder

type Folder struct {
	Name  string `yaml:"name"`
	Files []File `yaml:"files"`
}

type Lambda

type Lambda struct {
	Name        string              `yaml:"name"`
	Description string              `yaml:"description"`
	Envars      []map[string]string `yaml:"envars,omitempty"`
	SQSTriggers []SQSTrigger        `yaml:"sqs-triggers,omitempty"`
	Crons       []Cron              `yaml:"crons,omitempty"`
	Code        []Code              `yaml:"code,omitempty"`
}

type RestfulAPI

type RestfulAPI struct {
	Name string `yaml:"name"`
}

type S3

type S3 struct {
	Name   string `yaml:"name"`
	Key    string `yaml:"key,omitempty"`
	Source string `yaml:"source,omitempty"`
}

type SQS

type SQS struct {
	Name            string `yaml:"name"`
	MaxReceiveCount int32  `yaml:"max_receive_count"`
}

type SQSTrigger

type SQSTrigger struct {
	SourceARN string `yaml:"source_arn"`
}

type Stack

type Stack struct {
	StackName string   `yaml:"stack_name"`
	Folders   []Folder `yaml:"folders"`
}

type Structure

type Structure struct {
	Stacks           []Stack             `yaml:"stacks"`
	DefaultTemplates []map[string]string `yaml:"default_templates"`
}

type YAML

type YAML struct {
	// contains filtered or unexported fields
}

func NewYAML

func NewYAML(fileName string) *YAML

func (*YAML) Parse

func (y *YAML) Parse() (*Config, error)

Jump to

Keyboard shortcuts

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