gitresource

package
v0.0.0-...-a9ed6da Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package gitresource implements the methods to access resources from git

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitInfo

type GitInfo struct {
	Owner      string `json:"owner"`
	Repository string `json:"repository"`
	Path       string `json:"path"`
	GetOptions string `json:"getOptions"`
	TokenInfo  string `json:"tokenInfo"`
}

GitInfo represents the sourceInfo type sent by runcommand

type GitResource

type GitResource struct {
	Info GitInfo
	// contains filtered or unexported fields
}

GitResource is a struct for the remote resource of type git

func NewGitResource

func NewGitResource(log log.T, info string, token privategithub.PrivateGithubAccess) (git *GitResource, err error)

NewGitResource is a constructor of type GitResource

func (*GitResource) DownloadRemoteResource

func (git *GitResource) DownloadRemoteResource(log log.T, filesys filemanager.FileSystem, destPath string) (err error, result *remoteresource.DownloadResult)

DownloadRemoteResource calls download to pull down files or directory from github

func (*GitResource) ValidateLocationInfo

func (git *GitResource) ValidateLocationInfo() (valid bool, err error)

ValidateLocationInfo ensures that the required parameters of SourceInfo are specified

Directories

Path Synopsis
Package privategithub deals with all the authorization invocations to access private github
Package privategithub deals with all the authorization invocations to access private github

Jump to

Keyboard shortcuts

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