Class GitConfigSourceBuilder.GitEndpoint

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 Details

    • 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 uri
      branch - a git branch
      directory - a local git directory
      path - a relative path to the configuration file
      credentialsProvider - a credentials provider
  • Method Details

    • 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 of CredentialsProvider.
      Returns:
      credentials provider instance