package role

import (
    "fmt"
)

func Any() string {
    return "any"
}

func User(id, status string) string {
    if status != "" {
        return fmt.Sprintf("user:%s/%s", id, status)
    }
    return fmt.Sprintf("user:%s", id)
}

func Users(status string) string{
    if status != "" {
        return fmt.Sprintf("users/%s", status)
    }
    return "users"
}

func Guests() string {
    return "guests"
}

func Team(id, role string) string {
    if role != "" {
        return fmt.Sprintf("team:%s/%s", id, role)
    }
    return fmt.Sprintf("team:%s", id)
}

func Member(id string) string {
    return fmt.Sprintf("member:%s", id)
}

func Label(id string) string {
    return fmt.Sprintf("label:%s", id)
}
