Class HelmArtifactCredentials
- java.lang.Object
-
- com.netflix.spinnaker.clouddriver.artifacts.config.BaseHttpArtifactCredentials<HelmArtifactAccount>
-
- com.netflix.spinnaker.clouddriver.artifacts.helm.HelmArtifactCredentials
-
- All Implemented Interfaces:
ArtifactCredentials,com.netflix.spinnaker.credentials.Credentials
public class HelmArtifactCredentials extends BaseHttpArtifactCredentials<HelmArtifactAccount> implements ArtifactCredentials
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCREDENTIALS_TYPE
-
Constructor Summary
Constructors Constructor Description HelmArtifactCredentials(HelmArtifactAccount account, com.squareup.okhttp.OkHttpClient okHttpClient)
-
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.util.List<java.lang.String>getArtifactNames()java.util.List<java.lang.String>getArtifactVersions(java.lang.String artifactName)java.lang.StringgetType()booleanhandlesType(java.lang.String type)-
Methods inherited from class com.netflix.spinnaker.clouddriver.artifacts.config.BaseHttpArtifactCredentials
fetchUrl, fetchUrl, getHeaders, parseUrl
-
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
getName, getTypes, resolveArtifactName, resolveArtifactVersion
-
-
-
-
Field Detail
-
CREDENTIALS_TYPE
public static final java.lang.String CREDENTIALS_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HelmArtifactCredentials
public HelmArtifactCredentials(HelmArtifactAccount account, com.squareup.okhttp.OkHttpClient okHttpClient)
-
-
Method Detail
-
handlesType
public boolean handlesType(java.lang.String type)
- Specified by:
handlesTypein interfaceArtifactCredentials
-
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
-
getArtifactNames
public java.util.List<java.lang.String> getArtifactNames()
- Specified by:
getArtifactNamesin interfaceArtifactCredentials
-
getArtifactVersions
public java.util.List<java.lang.String> getArtifactVersions(java.lang.String artifactName)
- Specified by:
getArtifactVersionsin interfaceArtifactCredentials
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfacecom.netflix.spinnaker.credentials.Credentials
-
-