Package codes.grow.packages.vault
Record Class MountInfo
java.lang.Object
java.lang.Record
codes.grow.packages.vault.MountInfo
- Record Components:
type- engine type, e.g.kv,approledescription- descriptionaccessor- mount accessoroptions- engine options (e.g.version=2)config- mount config (TTLs, token type, ...)local- whether the mount is local to the clustersealWrap- whether seal wrapping is on
public record MountInfo(String type, String description, String accessor, Map<String,String> options, Map<String,String> config, boolean local, boolean sealWrap)
extends Record
A secrets engine or auth method mount.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessor()Returns the value of theaccessorrecord component.config()Returns the value of theconfigrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlocal()Returns the value of thelocalrecord component.options()Returns the value of theoptionsrecord component.booleansealWrap()Returns the value of thesealWraprecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
MountInfo
public MountInfo(String type, String description, String accessor, Map<String, String> options, Map<String, String> config, boolean local, boolean sealWrap) Creates the record; maps are copied.- Parameters:
type- typedescription- descriptionaccessor- accessoroptions- optionsconfig- configlocal- local flagsealWrap- seal wrap flag
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
accessor
Returns the value of theaccessorrecord component.- Returns:
- the value of the
accessorrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
local
public boolean local()Returns the value of thelocalrecord component.- Returns:
- the value of the
localrecord component
-
sealWrap
public boolean sealWrap()Returns the value of thesealWraprecord component.- Returns:
- the value of the
sealWraprecord component
-