utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvLoadError

func EnvLoadError(env string, envName string)

func GetFileType

func GetFileType(filename string) string

GetFileType returns the content type of the file.

func GetURL added in v0.4.0

func GetURL(bucket string) string

func RunCommand added in v0.4.0

func RunCommand(command string) error

Execute runs the process with the supplied environment.

Types

type ProjectInfo added in v0.4.0

type ProjectInfo struct {
	PrNumber   int
	RepoOwner  string
	Branch     string
	RepoName   string
	DistFolder string
	Bucket     string
	IsBuild    bool
}

func GetInfo added in v0.4.0

func GetInfo(repo ProjectInfo, action string) ProjectInfo

func GetPRInfo added in v0.3.0

func GetPRInfo(repo ProjectInfo) ProjectInfo

Jump to

Keyboard shortcuts

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