install

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstalIface

type InstalIface interface {
	// Install install template
	Install(handle, template string) (ret int)
}

InstalIface ...

type Install

type Install struct {
	ConfigFile *config.File
	// contains filtered or unexported fields
}

Install manage installation of templates

func New

func New(opts *Options) *Install

New constructor

func (*Install) Install

func (i *Install) Install(handle, template string) (ret int)

Install install template

type Options

type Options struct {
	Client     *client.Client     `validate:"required"`
	ConfigFile *config.File       `validate:"required"`
	ORM        *gorm.DB           `validate:"required"`
	Log        logger.OutputIface `validate:"required"`
	Exit       *exit.Handler      `validate:"required"`
	Err        *errs.Handler      `validate:"required"`
	Stderr     io.Writer          `validate:"required"`
	Stdin      io.Reader          `validate:"required"`
	Stdout     io.Writer          `validate:"required"`
	Sync       sync.SyncIface     `validate:"required"`
}

Options options to constructor

Jump to

Keyboard shortcuts

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