类 BuildOwner

java.lang.Object
cn.taketoday.buildpack.platform.build.BuildOwner
所有已实现的接口:
Owner

class BuildOwner extends Object implements Owner
The Owner that should perform the build.
从以下版本开始:
4.0
作者:
Phillip Webb, Andy Wilkinson, Harry Yang
  • 字段详细资料

    • USER_PROPERTY_NAME

      private static final String USER_PROPERTY_NAME
      另请参阅:
    • GROUP_PROPERTY_NAME

      private static final String GROUP_PROPERTY_NAME
      另请参阅:
    • uid

      private final long uid
    • gid

      private final long gid
  • 构造器详细资料

    • BuildOwner

      BuildOwner(Map<String,String> env)
    • BuildOwner

      BuildOwner(long uid, long gid)
  • 方法详细资料

    • getValue

      private long getValue(Map<String,String> env, String name)
    • getUid

      public long getUid()
      从接口复制的说明: Owner
      Return the user identifier (UID) of the owner.
      指定者:
      getUid 在接口中 Owner
      返回:
      the user identifier
    • getGid

      public long getGid()
      从接口复制的说明: Owner
      Return the group identifier (GID) of the owner.
      指定者:
      getGid 在接口中 Owner
      返回:
      the group identifier
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • fromEnv

      static BuildOwner fromEnv(Map<String,String> env)
      Factory method to create the BuildOwner by inspecting the image env for CNB_USER_ID/CNB_GROUP_ID variables.
      参数:
      env - the env to parse
      返回:
      a BuildOwner instance extracted from the env
      抛出:
      IllegalStateException - if the env does not contain the correct CNB variables
    • of

      static BuildOwner of(long uid, long gid)
      Factory method to create a new BuildOwner with specified user/group identifier.
      参数:
      uid - the user identifier
      gid - the group identifier
      返回:
      a new BuildOwner instance