create_app

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(
	reader domain.AppsReader,
	writer domain.AppsWriter,
) bus.RequestHandler[string, Command]

Types

type Command

type Command struct {
	bus.Command[string]

	Name string                                               `json:"name"`
	VCS  monad.Maybe[VCSConfig]                               `json:"vcs"`
	Env  monad.Maybe[map[string]map[string]map[string]string] `json:"env"` // This is not so sweet but hey!
}

Create a new application.

func (Command) Name_

func (Command) Name_() string

type VCSConfig

type VCSConfig struct {
	Url   string              `json:"url"`
	Token monad.Maybe[string] `json:"token"`
}

Jump to

Keyboard shortcuts

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