Class AbstractOrasParameterDefinition
java.lang.Object
hudson.model.ParameterDefinition
io.jenkins.plugins.oras.parameter.AbstractOrasParameterDefinition
- All Implemented Interfaces:
ExtensionPoint,Describable<ParameterDefinition>,Serializable
- Direct Known Subclasses:
OrasPlatformParameterDefinition,OrasRepositoryParameterDefinition,OrasTagParameterDefinition
Base class for ORAS parameter definition
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.ParameterDefinition
ParameterDefinition.ParameterDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class hudson.model.ParameterDefinition
LIST -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractOrasParameterDefinition(@NonNull String name, String description, String containerRef) -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotationsFromDigest(land.oras.ContainerRef effectiveRef, String digest) getAnnotationsFromTag(land.oras.ContainerRef effectiveRef, String tag) protected StringGet a digest from a ref and cache it if neededabstract Stringprotected land.oras.ContainerRefbooleanprotected static com.cloudbees.plugins.credentials.common.UsernamePasswordCredentialsresolveCredentials(String credentialsId) voidsetCredentialsId(String credentialsId) voidsetInsecure(boolean insecure) Methods inherited from class hudson.model.ParameterDefinition
all, copyWithDefaultValue, createValue, createValue, createValue, createValue, createValue, equals, getDefaultParameterValue, getDescription, getDescriptor, getFormattedDescription, getName, getType, hashCode, isValid, setDescription
-
Field Details
-
containerRef
-
credentialsId
-
insecure
protected boolean insecure
-
-
Constructor Details
-
AbstractOrasParameterDefinition
-
-
Method Details
-
getCredentialsId
-
getEffectiveDefaultTag
-
setCredentialsId
-
getContainerRef
-
isInsecure
public boolean isInsecure() -
setInsecure
@DataBoundSetter public void setInsecure(boolean insecure) -
getEffectiveReference
protected land.oras.ContainerRef getEffectiveReference() -
getDigest
Get a digest from a ref and cache it if needed- Parameters:
effectiveRef- The reftag- The tag to resolve- Returns:
- The digest
-
getAnnotationsFromTag
-
getAnnotationsFromDigest
-
resolveCredentials
@Nullable protected static com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials resolveCredentials(@Nullable String credentialsId)
-