connection

package
v0.0.0-...-901927a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationError

type ValidationError interface {
	error
	Reason() v1alpha1.ConnectionFailureReason
}

ValidationError holds message and reason of an error that occurred during a connection validation

func ValidateGitSource

func ValidateGitSource(log *log.GitSourceLogger, gitSource *v1alpha1.GitSource) ValidationError

ValidateGitSource validates if a git repository defined by the given GitSource is reachable and if it contains the defined branch (master if empty)

func ValidateGitSourceWithSecret

func ValidateGitSourceWithSecret(log *log.GitSourceLogger, gitSource *v1alpha1.GitSource, secret git.Secret) ValidationError

ValidateGitSourceWithSecret detects build tools and languages using the given secret in the git repository defined by the given v1alpha1.GitSource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL