C# Class Elastacloud.AzureManagement.Fluent.Clients.GithubClient

Used to connect to the Github repos
Inheritance: IGithubClient
Exibir arquivo Open project: azurecoder/fluent-management Class Usage Examples

Public Methods

Method Description
GetHooks ( string repoName ) : string>.Dictionary

Gets the hooks associated with the repo

GetOAuthToken ( string accountName, string repoName ) : void

Gets a new oauth token for an application

GetRepositories ( string uri = "https://api.github.com/user/repos" ) : string>.Dictionary

Used to get all of the repos from Github

GithubClient ( IWebsiteRequestHelper helper ) : System
SetServiceHook ( string publishingUsername, string publishingPassword, string azureRepoName, string accountName, string repoName ) : string

Sets the service hook to allow the azure remote repo to connect and deploy

TestServiceHook ( string hook ) : void

Tests any service hook

Method Details

GetHooks() public method

Gets the hooks associated with the repo
public GetHooks ( string repoName ) : string>.Dictionary
repoName string
return string>.Dictionary

GetOAuthToken() public method

Gets a new oauth token for an application
public GetOAuthToken ( string accountName, string repoName ) : void
accountName string
repoName string
return void

GetRepositories() public method

Used to get all of the repos from Github
public GetRepositories ( string uri = "https://api.github.com/user/repos" ) : string>.Dictionary
uri string
return string>.Dictionary

GithubClient() public method

public GithubClient ( IWebsiteRequestHelper helper ) : System
helper IWebsiteRequestHelper
return System

SetServiceHook() public method

Sets the service hook to allow the azure remote repo to connect and deploy
public SetServiceHook ( string publishingUsername, string publishingPassword, string azureRepoName, string accountName, string repoName ) : string
publishingUsername string
publishingPassword string
azureRepoName string
accountName string
repoName string
return string

TestServiceHook() public method

Tests any service hook
public TestServiceHook ( string hook ) : void
hook string
return void