Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient interface { LoadReposList(ctx context.Context) ([]repository.Repository, error) CreatePR(ctx context.Context, r repository.Repository, name string) (CreatePRResponse, error) }
type Client ¶
func (*Client) CreatePR ¶
func (c *Client) CreatePR( ctx context.Context, repo repository.Repository, branchName string) (CreatePRResponse, error)
func (*Client) LoadReposList ¶
func (c *Client) LoadReposList(ctx context.Context) ([]repository.Repository, error)
type CreatePRResponse ¶
type CreatePRResponse struct {
Links struct {
HTML linkWrapper `json:"html"`
} `json:"links"`
}
type DryRunAPIClient ¶
type DryRunAPIClient struct {
// contains filtered or unexported fields
}
func (*DryRunAPIClient) CreatePR ¶
func (c *DryRunAPIClient) CreatePR( ctx context.Context, r repository.Repository, name string) (CreatePRResponse, error)
func (*DryRunAPIClient) LoadReposList ¶
func (c *DryRunAPIClient) LoadReposList(ctx context.Context) ([]repository.Repository, error)
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner( gcp *git.ClientProvider, expectedFile []byte, log *zap.SugaredLogger, client APIClient, cfg *Config) *Runner
type RunnerBuilder ¶
type RunnerBuilder struct{}
func (RunnerBuilder) Config ¶
func (r RunnerBuilder) Config() interface{}
func (RunnerBuilder) CreateRunner ¶
func (r RunnerBuilder) CreateRunner(log *zap.SugaredLogger, config interface{}) runner.Runner
Click to show internal directories.
Click to hide internal directories.