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 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, url string, auth util.GitAuth) (*apps.GitExploreResponse, error)
RepositoryInformation returns information about a given git repository. 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
func (*RepositoryValidator) Validate ¶
func (v *RepositoryValidator) Validate(ctx context.Context, git *apps.ApplicationGitConfig, auth util.GitAuth) error
Validate validates the repository access and shows a visual spinner while doing so