Documentation ¶
Index ¶
- func NewGithubClient() github.Client
- func NewMockService() services.Service
- type GithubClient
- func (g *GithubClient) Do(req *http.Request) (*http.Response, error)
- func (g *GithubClient) GetStatus() bool
- func (g *GithubClient) HealthCheck() (bool, github.GHError)
- func (g *GithubClient) ListKeys(username string) ([]github.Key, github.GHError)
- func (g *GithubClient) SetCircuitBreaker(breaker services.Breaker)
- func (g *GithubClient) SetRetryPolicy(policy services.RetryPolicy)
- func (g *GithubClient) SetStatus(status bool)
- func (g *GithubClient) SetTransport(transport *http.Transport)
- type KubernetesClient
- type MockService
- func (m *MockService) Do(req *http.Request) (*http.Response, error)
- func (m *MockService) GetStatus() bool
- func (m *MockService) SetCircuitBreaker(breaker services.Breaker)
- func (m *MockService) SetRetryPolicy(policy services.RetryPolicy)
- func (m *MockService) SetStatus(status bool)
- func (m *MockService) SetTransport(transport *http.Transport)
- type S3Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GithubClient ¶
GithubClient ...
func (*GithubClient) GetStatus ¶
func (g *GithubClient) GetStatus() bool
GetStatus returns whether or not the backing service is down or not
func (*GithubClient) HealthCheck ¶
func (g *GithubClient) HealthCheck() (bool, github.GHError)
HealthCheck ...
func (*GithubClient) SetCircuitBreaker ¶
func (g *GithubClient) SetCircuitBreaker(breaker services.Breaker)
SetCircuitBreaker allows you to change the default circuit-breaker for the client
func (*GithubClient) SetRetryPolicy ¶
func (g *GithubClient) SetRetryPolicy(policy services.RetryPolicy)
SetRetryPolicy allows you to change the default retry-policy for the client
func (*GithubClient) SetStatus ¶
func (g *GithubClient) SetStatus(status bool)
SetStatus allows the client to specify if the backing service is down or not
func (*GithubClient) SetTransport ¶
func (g *GithubClient) SetTransport(transport *http.Transport)
SetTransport allows you to change the default http-transport for the client
type KubernetesClient ¶
type KubernetesClient struct{}
KubernetesClient ...
func (*KubernetesClient) CreateDeployment ¶
func (m *KubernetesClient) CreateDeployment(config kubernetes.DeploymentConfig) error
CreateDeployment ...
type MockService ¶
type MockService struct { RetryPolicy services.RetryPolicy CircuitBreaker services.Breaker Client *http.Client Status services.Status }
MockService ...
func (*MockService) SetCircuitBreaker ¶
func (m *MockService) SetCircuitBreaker(breaker services.Breaker)
SetCircuitBreaker ...
func (*MockService) SetRetryPolicy ¶
func (m *MockService) SetRetryPolicy(policy services.RetryPolicy)
SetRetryPolicy ...
func (*MockService) SetTransport ¶
func (m *MockService) SetTransport(transport *http.Transport)
SetTransport ...
Click to show internal directories.
Click to hide internal directories.