dummy

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileService

type FileService map[string]string

FileService serves a map[string]string of files -> file contents

func (FileService) DecodeURL

func (f FileService) DecodeURL(url string) (org, repo, path, branch string)

DecodeURL decodes a URL

func (FileService) Download

func (f FileService) Download(org, repo, file, branch string) (string, error)

Download returns a file from the map

func (FileService) EncodeURL

func (f FileService) EncodeURL(org, repo, path, branch string) string

EncodeURL encodes a URL

type Push

type Push struct {
	RepoName  string
	OrgName   string
	FileNames []string
}

Push contains data about a push full of commits

func (*Push) Branch

func (p *Push) Branch() string

Branch returns the branch of the push

func (*Push) ContainsFile

func (p *Push) ContainsFile(file string) bool

ContainsFile checks to see if a given file is in the push.

func (*Push) Files

func (p *Push) Files() []string

Files returns a slice containing filenames that were added/modified

func (*Push) Name

func (p *Push) Name() string

Name returns the name of the provider to be used in configuration

func (*Push) Org

func (p *Push) Org() string

Org returns the name of the project.

func (*Push) Repo

func (p *Push) Repo() string

Repo returns the name of the repo.

func (*Push) SetCommitStatus

func (p *Push) SetCommitStatus(s git.Status)

SetCommitStatus sets a commit status

Jump to

Keyboard shortcuts

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