logic

package
v0.0.0-...-53d016b Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiLogic

type ApiLogic struct {
	// contains filtered or unexported fields
}

func NewApiLogic

func NewApiLogic() *ApiLogic

func (*ApiLogic) Notify

func (t *ApiLogic) Notify() error

send notify to fuhsi-server with message

func (*ApiLogic) Option

func (t *ApiLogic) Option(opt *option.Option) *ApiLogic

func (*ApiLogic) UpdateBuildInfo

func (t *ApiLogic) UpdateBuildInfo(buildId int64, params map[string]interface{}) error

update build info from nvwa-agent

func (*ApiLogic) UploadPackage

func (t *ApiLogic) UploadPackage(buildId int64, pkgName, pkgFile string) error

update version package to fuhsi-server

type PkgLogic

type PkgLogic struct {
	// contains filtered or unexported fields
}

func NewPkgLogic

func NewPkgLogic() *PkgLogic

func (*PkgLogic) FormatKey

func (t *PkgLogic) FormatKey(app, pkgName string) string

format package file name

func (*PkgLogic) FormatPkgDir

func (t *PkgLogic) FormatPkgDir(app string) string

format target host's package dir

func (*PkgLogic) FormatPkgPath

func (t *PkgLogic) FormatPkgPath(app, pkgName string) string

format target host's package path

func (*PkgLogic) FormatVersionPackageName

func (t *PkgLogic) FormatVersionPackageName() string

format tar version package name

func (*PkgLogic) Option

func (t *PkgLogic) Option(opt *option.Option) *PkgLogic

func (*PkgLogic) Pull

func (t *PkgLogic) Pull() error

func (*PkgLogic) Push

func (t *PkgLogic) Push() error

func (*PkgLogic) Tar

func (t *PkgLogic) Tar(buildId int64, files []string, excludes []string) (string, error)

Jump to

Keyboard shortcuts

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