package
0.4.0
Repository: https://github.com/athieriot/drone.git
Documentation: pkg.go.dev

# Functions

CreateHook is a heper function that creates a post-commit hook for the specified repository.
CreateKey is a helper function that creates a deploy key for the specified repository.
CreateUpdateHook is a heper function that creates a post-commit hook for the specified repository if it does not already exist, otherwise it updates the existing hook.
CreateUpdateKey is a helper function that creates a deployment key for the specified repository if it does not already exist, otherwise it updates the existing key.
No description provided by the author
DeleteKey is a helper function that deletes a deploy key for the specified repository.
GetAllRepos is a helper function that returns an aggregated list of all user and organization repositories.
GetFile is a heper function that retrieves a file from GitHub and returns its contents in byte array format.
GetHook is a heper function that retrieves a hook by hostname.
GetKey is a heper function that retrieves a public Key by title.
GetKeyTitle is a helper function that generates a title for the RSA public key based on the username and domain name.
GetOrgRepos is a helper function that returns a list of all org repositories.
GetOrgs is a helper function that returns a list of all orgs that a user belongs to.
GetPayload is a helper function that will parse the JSON payload.
GetRandom is a helper function that generates a 32-bit random key, base32 encoded as a string value.
GetRepo is a helper function that returns a named repo.
GetUserEmail is a heper function that retrieves the currently authenticated user from GitHub + Email address.
GetUserRepos is a helper function that returns a list of all user repositories.
No description provided by the author
NewClient is a helper function that returns a new GitHub client using the provided OAuth token.
UserBelongsToOrg returns true if the currently authenticated user is a member of any of the organizations provided.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author