Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetryLogFunc ¶
RetryLogFunc returns a retry log function depending on the given showErrors parameter. If it is set to true, exact errors are shown when retrying to connect to the git information service. Otherwise they are not shown.
Types ¶
type ConfigValidator ¶ added in v1.3.1
ConfigValidator validates a Config
func (ConfigValidator) Validate ¶ added in v1.3.1
func (c ConfigValidator) Validate() error
Validate validates the config
type GitInformationClient ¶
type GitInformationClient struct {
// contains filtered or unexported fields
}
func NewGitInformationClient ¶
func NewGitInformationClient(address string, token string) (*GitInformationClient, error)
NewGitInformationClient returns a client which can be used to retrieve metadata information about a given git repository
func (*GitInformationClient) RepositoryInformation ¶
func (g *GitInformationClient) RepositoryInformation(ctx context.Context, git apps.GitTarget, auth util.GitAuth) (*apps.GitExploreResponse, error)
RepositoryInformation returns information about a given git repository and optionally checks if a given revision can be found in the repo. It retries on client connection issues.
func (*GitInformationClient) SetLogRetryFunc ¶
func (g *GitInformationClient) SetLogRetryFunc(f func(err error))
SetLogRetryFunc allows to set the function which logs retries when doing requests to the git information service
func (*GitInformationClient) SetRetryBackoffs ¶
func (g *GitInformationClient) SetRetryBackoffs(backoff wait.Backoff)
SetRetryBackoffs sets the backoff properties for retries
type RepositoryValidator ¶
RepositoryValidator validates a git repository