app

package
v0.0.0-...-f615b5e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: CC0-1.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New() (*App, error)

func (*App) Run

func (a *App) Run(ctx context.Context, requests []*Request) error

type Config

type Config struct {
	Region   string `env:"REGION" envDefault:"us-east-1"`
	Bucket   string `env:"BUCKET"`
	RepoURL  string `env:"REPO_URL"`
	GitToken string `env:"GIT_TOKEN" envDefault:""`
	RoleName string `env:"ROLE_NAME" envDefault:"OrganizationAccountAccessRole"`
}

Config holds all variables read from the ENV

type Module

type Module struct {
	Key     string
	Source  string
	Dir     string
	RootDir string `json:"-"`
}

type Request

type Request struct {
	ID        string                 `json:"id"`
	Name      string                 `json:"name"`
	Version   string                 `json:"version"`
	LogLevel  string                 `json:"log_level"`
	Variables map[string]interface{} `json:"variables"`
}

Request is a struct that contains the request data.

Jump to

Keyboard shortcuts

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