reposcaffolding

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteRepo

func DeleteRepo(options plugininstaller.RawOptions) error

DeleteRepo will delete repo by options

func InstallRepo

func InstallRepo(options plugininstaller.RawOptions) error

InstallRepo will install repo by opts config

func SetDefaultTemplateRepo

func SetDefaultTemplateRepo(options plugininstaller.RawOptions) (plugininstaller.RawOptions, error)

SetDefaultTemplateRepo set default value for repo

func Validate

Validate validates the options provided by the core.

Types

type Options

type Options struct {
	SourceRepo      *common.Repo `validate:"required" mapstructure:"sourceRepo"`
	DestinationRepo *common.Repo `validate:"required" mapstructure:"destinationRepo"`
	Vars            map[string]interface{}
}

func NewOptions

func NewOptions(options plugininstaller.RawOptions) (*Options, error)

func (*Options) Encode

func (opts *Options) Encode() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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