app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: MIT Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloudBuildFileName = "cloudbuild.bridge.yaml"

CloudBuildFileName default yaml file name for building

View Source
var GitFolder = "/gcb-bridge/git/"

GitFolder default location to put temp git repos

Functions

func GetAccessToken

func GetAccessToken(installationID string) string

GetAccessToken get access token by installation ID

func Init

func Init()

Init init app pacakge

func InitRepo

func InitRepo()

InitRepo init repo

func InitToken

func InitToken()

InitToken read RSAKey and App ID

Types

type Repo

type Repo struct {
	Event            string
	InstallationID   string
	RepositoryNodeID string
	Dir              string
	FullName         string
	Branch           string
	AssociatedBases  []string
	BaseBranch       string
	Tag              string
	BeforeSHA        string
	AfterSHA         string
	BuildFilePath    string
	Removed          bool
}

Repo repo struct

func (*Repo) GetChanges

func (repo *Repo) GetChanges() []string

GetChanges get changes filename between BeforeSHA and AfterSHA

func (*Repo) Init

func (repo *Repo) Init() bool

Init init repo

func (*Repo) LogError

func (repo *Repo) LogError(title string, err error) bool

LogError repo log error

func (*Repo) Remove

func (repo *Repo) Remove()

Remove remove repo

Jump to

Keyboard shortcuts

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