reposcaffolding

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TemplateRepo       = "dtm-scaffolding-golang"
	TemplateOrg        = "devstream-io"
	TransitBranch      = "init-with-devstream"
	MainBranch         = "main"
	AppNamePlaceHolder = "_app_name_"
)

Variables

This section is empty.

Functions

func CreateAndRenderLocalRepo

func CreateAndRenderLocalRepo(workpath string, opts *Options) error

func Validate

func Validate(opts *Options) []error

Validate validates the options provided by the core.

Types

type Config

type Config struct {
	AppName   string
	ImageRepo string
	Repo      Repo
}

type Options

type Options struct {
	Owner             string `validate:"required_without=Org"`
	Org               string `validate:"required_without=Owner"`
	Repo              string `validate:"required"`
	Branch            string `validate:"required"`
	PathWithNamespace string
	ImageRepo         string `mapstructure:"image_repo"`
}

type Repo

type Repo struct {
	Name  string
	Owner string
}

Jump to

Keyboard shortcuts

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