Kunal Verma
03/28/2024, 12:10 PMresource := cerbos.NewResource("posts", )
Apart from this, if you could pls guide me in the right direction regarding my rest of the implementation, that would mean a lot
ThanksSam Lock (Cerbos)
03/28/2024, 12:33 PMKunal Verma
03/28/2024, 3:15 PMvar posts = []Post{
{
Id: "3123",
Title: "Kubernetes API Guide",
Summary: "Covers the fundamental aspects of K8s api",
UserId: 2,
Flagged: false,
},
{
Id: "4636",
Title: "Golang Basics 101",
Summary: "Covers the basics of Golang",
UserId: 1,
Flagged: false,
},
}
So, if the resource id is basically a unique id which represents an entire resource, for instance, if resource id = 1, that means we are talking about the 1st post:
{
Id: "3123",
Title: "Kubernetes API Guide",
Summary: "Covers the fundamental aspects of K8s api",
UserId: 2,
Flagged: false,
},
Is this the correct way of seeing this?Kunal Verma
03/28/2024, 3:19 PMKunal Verma
03/28/2024, 3:44 PMCharith (Cerbos)
NEW
.Kunal Verma
03/29/2024, 8:49 AM