private

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanUserPush added in v1.3.0

func CanUserPush(protectedBranchID, userID int64) (bool, error)

CanUserPush returns if user can push

func GetProtectedBranchBy

func GetProtectedBranchBy(repoID int64, branchName string) (*models.ProtectedBranch, error)

GetProtectedBranchBy get protected branch information

func PushUpdate

func PushUpdate(opt models.PushUpdateOptions) error

PushUpdate update publick key updates

func UpdatePublicKeyUpdated

func UpdatePublicKeyUpdated(keyID int64) error

UpdatePublicKeyUpdated update publick key updates

Types

type Response

type Response struct {
	Err string `json:"err"`
}

Response internal request response

Jump to

Keyboard shortcuts

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