file

package
v0.0.0-...-2435b8f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeDir

func ChangeDir(dir string) (string, func() error, error)

ChangeDir changes into the specified directory. It returns the old directory and a function that can be defered to change back into it.

func CopyCloudRepo

func CopyCloudRepo(project string, revision string, workspace string) (string, error)

CopyCloudRepo copies down the cloud repo specified with project id and revision and returns a path to the local repo root.

func SetupCloudRepo

func SetupCloudRepo(project string, revision string,
	localRepoBase string, volumeRepoBase string) (*spb.SourceContext, string, error)

SetupCloudRepo creates a CloudRepo source context and copies down the corresponding cloud repo. The root of the repo is returned together with the source context.

Types

type AccessToken

type AccessToken struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int64  `json:"expires_in"`
	TokenType   string `json:"token_type"`
}

Jump to

Keyboard shortcuts

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