git

package
v2.0.0-beta4+incompatible Latest Latest
Warning

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

Go to latest
Published: May 11, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Receive

func Receive(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)

Receive receives a Git repo. This will only work for git-receive-pack.

Params:

  • operation (string): e.g. git-receive-pack
  • repoName (string): The repository name, in the form '/REPO.git'.
  • channel (ssh.Channel): The channel.
  • request (*ssh.Request): The channel.
  • gitHome (string): Defaults to /home/git.
  • userInfo (*controller.UserInfo): Deis user information.

Returns:

  • nothing

Types

type ErrInvalidGitSha

type ErrInvalidGitSha struct {
	// contains filtered or unexported fields
}

ErrInvalidGitSha is returned by NewSha if the given raw sha is invalid for any reason.

func (ErrInvalidGitSha) Error

func (e ErrInvalidGitSha) Error() string

Error is the error interface implementation.

type SHA

type SHA struct {
	// contains filtered or unexported fields
}

SHA is the representaton of a git sha

func NewSha

func NewSha(rawSha string) (*SHA, error)

NewSha creates a raw string to a SHA. Returns ErrInvalidGitSha if the sha was invalid.

func (SHA) Full

func (s SHA) Full() string

Full returns the full git sha.

func (SHA) Short

func (s SHA) Short() string

Short returns the first 8 characters of the sha.

Jump to

Keyboard shortcuts

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