类 Requirements.Dependency

  • 封闭类:
    Requirements

    public static final class Requirements.Dependency
    extends Object
    A description of a subchart that should be present in a parent Helm chart; not normally used directly by end users.
    作者:
    Laird Nelson
    另请参阅:
    Requirements
    • 方法详细资料

      • setName

        public final void setName​(String name)
        Sets the name of the subchart being represented by this Requirements.Dependency.
        参数:
        name - the new name; may be null
        另请参阅:
        getName()
      • getVersion

        public final String getVersion()
        Returns the range of acceptable semantic versions of the subchart being represented by this Requirements.Dependency.

        This method may return null.

        返回:
        the range of acceptable semantic versions of the subchart being represented by this Requirements.Dependency, or null
        另请参阅:
        setVersion(String)
      • setVersion

        public final void setVersion​(String versionRange)
        Sets the range of acceptable semantic versions of the subchart being represented by this Requirements.Dependency.
        参数:
        versionRange - the new semantic version range; may be null
        另请参阅:
        getVersion()
      • getRepository

        public final String getRepository()
        Returns the String representation of a URI which, when index.yaml is appended to it, results in a URI designating a Helm chart repository index.

        This method may return null.

        返回:
        the String representation of a URI which, when index.yaml is appended to it, results in a URI designating a Helm chart repository index, or null
        另请参阅:
        setRepository(String)
      • setRepository

        public final void setRepository​(String repository)
        Sets the String representation of a URI which, when index.yaml is appended to it, results in a URI designating a Helm chart repository index.
        参数:
        repository - the String representation of a URI which, when index.yaml is appended to it, results in a URI designating a Helm chart repository index, or null
        另请参阅:
        getRepository()
      • getCondition

        public final String getCondition()
        Returns a period-separated path that, when evaluated against a Map of Maps representing user-supplied or default values, will hopefully result in a value that can, in turn, be evaluated as a truth-value to aid in the enabling and disabling of subcharts.

        This method may return null.

        This method may return a value that actually holds several such paths separated by commas. This is an artifact of the design of Helm's requirements.yaml file.

        返回:
        a period-separated path that, when evaluated against a Map of Maps representing user-supplied or default values, will hopefully result in a value that can, in turn, be evaluated as a truth-value to aid in the enabling and disabling of subcharts, or null
        另请参阅:
        setCondition(String)
      • setCondition

        public final void setCondition​(String condition)
        Sets the period-separated path that, when evaluated against a Map of Maps representing user-supplied or default values, will hopefully result in a value that can, in turn, be evaluated as a truth-value to aid in the enabling and disabling of subcharts.
        参数:
        condition - a period-separated path that, when evaluated against a Map of Maps representing user-supplied or default values, will hopefully result in a value that can, in turn, be evaluated as a truth-value to aid in the enabling and disabling of subcharts, or null
        另请参阅:
        getCondition()
      • getTags

        public final Collection<String> getTags()
        Returns the Collection of tags that can be used to enable or disable subcharts.

        This method may return null.

        返回:
        the Collection of tags that can be used to enable or disable subcharts, or null
        另请参阅:
        setTags(Collection)
      • setTags

        public final void setTags​(Collection<String> tags)
        Sets the Collection of tags that can be used to enable or disable subcharts.
        参数:
        tags - the Collection of tags that can be used to enable or disable subcharts; may be null
        另请参阅:
        getTags()
      • setEnabled

        public final void setEnabled​(boolean enabled)
        Sets whether the subchart this Requirements.Dependency identifies is to be considered enabled.
        参数:
        enabled - whether the subchart this Requirements.Dependency identifies is to be considered enabled
        另请参阅:
        isEnabled()