Class GitRepoArtifactCredentials
- java.lang.Object
-
- com.netflix.spinnaker.clouddriver.artifacts.gitRepo.GitRepoArtifactCredentials
-
- All Implemented Interfaces:
ArtifactCredentials,com.netflix.spinnaker.credentials.Credentials
public class GitRepoArtifactCredentials extends java.lang.Object implements ArtifactCredentials
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCREDENTIALS_TYPE
-
Constructor Summary
Constructors Constructor Description GitRepoArtifactCredentials(GitJobExecutor executor, GitRepoFileSystem gitRepoFileSystem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamdownload(com.netflix.spinnaker.kork.artifacts.model.Artifact artifact)Download the specified artifactjava.lang.StringgetType()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.netflix.spinnaker.clouddriver.artifacts.config.ArtifactCredentials
getArtifactNames, getArtifactVersions, getName, getTypes, handlesType, resolveArtifactName, resolveArtifactVersion
-
-
-
-
Field Detail
-
CREDENTIALS_TYPE
public static final java.lang.String CREDENTIALS_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GitRepoArtifactCredentials
public GitRepoArtifactCredentials(GitJobExecutor executor, GitRepoFileSystem gitRepoFileSystem)
-
-
Method Detail
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfacecom.netflix.spinnaker.credentials.Credentials
-
download
public java.io.InputStream download(com.netflix.spinnaker.kork.artifacts.model.Artifact artifact) throws java.io.IOExceptionDescription copied from interface:ArtifactCredentialsDownload the specified artifact- Specified by:
downloadin interfaceArtifactCredentials- Returns:
- a stream containing the contents of artifact. It is the caller's responsibility to close this stream as soon as possible.
- Throws:
java.io.IOException
-
-