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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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