Entitlement

public struct Entitlement

Represents an entitlement related to using Sudo service APIs. Currently only entitlement that’s used in Sudo service is “sudoplatform.sudo.max” to represent the maximum number of Sudos each user is allowed to provision.

  • Entitlement name, e.g “sudoplatform.sudo.max” for maximum number of Sudos.

    Declaration

    Swift

    public let name: String
  • Entitlement value.

    Declaration

    Swift

    public let value: Int
  • Default memberwise initializer.

    Declaration

    Swift

    public init(name: String, value: Int)

    Parameters

    name

    Entitlement name.

    value

    Entitlement value.