- java.lang.Object
-
- io.helidon.config.git.GitConfigSourceBuilder.GitEndpoint
-
- Enclosing class:
- GitConfigSourceBuilder
public static class GitConfigSourceBuilder.GitEndpoint extends Object
Git source endpoint descriptor.Holds attributes necessary to get a configuration from a remote Git repository.
-
-
Constructor Summary
Constructors Constructor Description GitEndpoint(URI uri, String branch, Path directory, String path, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
Creates a descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
branch()
Returns a git branch.org.eclipse.jgit.transport.CredentialsProvider
credentialsProvider()
Returns an instance ofCredentialsProvider
.Path
directory()
Returns a local git directory.String
path()
Returns a relative path to the configuration file.URI
uri()
Returns a remote git repository uri.
-
-
-
Constructor Detail
-
GitEndpoint
public GitEndpoint(URI uri, String branch, Path directory, String path, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
Creates a descriptor.- Parameters:
uri
- a remote git repository uribranch
- a git branchdirectory
- a local git directorypath
- a relative path to the configuration filecredentialsProvider
- a credentials provider
-
-
Method Detail
-
uri
public URI uri()
Returns a remote git repository uri.- Returns:
- a remote git repository uri
-
branch
public String branch()
Returns a git branch.- Returns:
- a git branch
-
directory
public Path directory()
Returns a local git directory.- Returns:
- a local git directory
-
path
public String path()
Returns a relative path to the configuration file.- Returns:
- a relative path to the configuration file
-
credentialsProvider
public org.eclipse.jgit.transport.CredentialsProvider credentialsProvider()
Returns an instance ofCredentialsProvider
.- Returns:
- credentials provider instance
-
-