Documentation ¶
Index ¶
- type Server
- func (p *Server) AddPolicyMembers(ctx context.Context, in *pb_req.AddPolicyMembersReq) (*pb_resp.AddPolicyMembersResp, error)
- func (p *Server) CreatePolicy(ctx context.Context, in *pb_req.CreatePolicyReq) (*pb_resp.CreatePolicyResp, error)
- func (p *Server) CreateProject(ctx context.Context, in *pb_req.CreateProjectReq) (*pb_resp.CreateProjectResp, error)
- func (p *Server) CreateRole(ctx context.Context, in *pb_req.CreateRoleReq) (*pb_resp.CreateRoleResp, error)
- func (p *Server) DeletePolicy(ctx context.Context, in *pb_req.DeletePolicyReq) (*pb_resp.DeletePolicyResp, error)
- func (p *Server) DeleteProject(ctx context.Context, in *pb_req.DeleteProjectReq) (*pb_resp.DeleteProjectResp, error)
- func (p *Server) DeleteRole(ctx context.Context, in *pb_req.DeleteRoleReq) (*pb_resp.DeleteRoleResp, error)
- func (p *Server) GetPolicy(ctx context.Context, in *pb_req.GetPolicyReq) (*pb_resp.GetPolicyResp, error)
- func (p *Server) GetPolicyVersion(ctx context.Context, in *pb_req.GetPolicyVersionReq) (*pb_resp.GetPolicyVersionResp, error)
- func (p *Server) GetProject(ctx context.Context, in *pb_req.GetProjectReq) (*pb_resp.GetProjectResp, error)
- func (p *Server) GetRole(ctx context.Context, in *pb_req.GetRoleReq) (*pb_resp.GetRoleResp, error)
- func (p *Server) IntrospectAllProjects(ctx context.Context, req *pb_req.ListProjectsReq) (*pb_resp.ListProjectsResp, error)
- func (p *Server) ListPolicies(ctx context.Context, _ *pb_req.ListPoliciesReq) (*pb_resp.ListPoliciesResp, error)
- func (p *Server) ListPolicyMembers(ctx context.Context, in *pb_req.ListPolicyMembersReq) (*pb_resp.ListPolicyMembersResp, error)
- func (p *Server) ListProjects(ctx context.Context, _ *pb_req.ListProjectsReq) (*pb_resp.ListProjectsResp, error)
- func (p *Server) ListRoles(ctx context.Context, _ *pb_req.ListRolesReq) (*pb_resp.ListRolesResp, error)
- func (p *Server) RemovePolicyMembers(ctx context.Context, in *pb_req.RemovePolicyMembersReq) (*pb_resp.RemovePolicyMembersResp, error)
- func (p *Server) ReplacePolicyMembers(ctx context.Context, in *pb_req.ReplacePolicyMembersReq) (*pb_resp.ReplacePolicyMembersResp, error)
- func (p *Server) UpdatePolicy(ctx context.Context, in *pb_req.UpdatePolicyReq) (*pb_resp.UpdatePolicyResp, error)
- func (p *Server) UpdateProject(ctx context.Context, in *pb_req.UpdateProjectReq) (*pb_resp.UpdateProjectResp, error)
- func (p *Server) UpdateRole(ctx context.Context, in *pb_req.UpdateRoleReq) (*pb_resp.UpdateRoleResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the server interface
func NewServer ¶
func NewServer( policies authz.PoliciesServiceClient, projects authz.ProjectsServiceClient, authz authz.AuthorizationServiceClient) *Server
NewServer creates a server with its client.
func (*Server) AddPolicyMembers ¶
func (p *Server) AddPolicyMembers( ctx context.Context, in *pb_req.AddPolicyMembersReq) (*pb_resp.AddPolicyMembersResp, error)
AddPolicyMembers add members to the policy then returns the list of members
func (*Server) CreatePolicy ¶
func (p *Server) CreatePolicy( ctx context.Context, in *pb_req.CreatePolicyReq) (*pb_resp.CreatePolicyResp, error)
CreatePolicy creates a new policy.
func (*Server) CreateProject ¶
func (p *Server) CreateProject( ctx context.Context, in *pb_req.CreateProjectReq) (*pb_resp.CreateProjectResp, error)
CreateProject creates a new project.
func (*Server) CreateRole ¶
func (p *Server) CreateRole( ctx context.Context, in *pb_req.CreateRoleReq) (*pb_resp.CreateRoleResp, error)
CreateRole creates a new role.
func (*Server) DeletePolicy ¶
func (p *Server) DeletePolicy( ctx context.Context, in *pb_req.DeletePolicyReq) (*pb_resp.DeletePolicyResp, error)
DeletePolicy deletes a specific policy.
func (*Server) DeleteProject ¶
func (p *Server) DeleteProject( ctx context.Context, in *pb_req.DeleteProjectReq) (*pb_resp.DeleteProjectResp, error)
DeleteProject deletes a project.
func (*Server) DeleteRole ¶
func (p *Server) DeleteRole( ctx context.Context, in *pb_req.DeleteRoleReq) (*pb_resp.DeleteRoleResp, error)
DeleteRole deletes a specific role.
func (*Server) GetPolicy ¶
func (p *Server) GetPolicy( ctx context.Context, in *pb_req.GetPolicyReq) (*pb_resp.GetPolicyResp, error)
GetPolicy returns a specific policy.
func (*Server) GetPolicyVersion ¶
func (p *Server) GetPolicyVersion( ctx context.Context, in *pb_req.GetPolicyVersionReq) (*pb_resp.GetPolicyVersionResp, error)
func (*Server) GetProject ¶
func (p *Server) GetProject( ctx context.Context, in *pb_req.GetProjectReq) (*pb_resp.GetProjectResp, error)
GetProject returns a specific project.
func (*Server) GetRole ¶
func (p *Server) GetRole( ctx context.Context, in *pb_req.GetRoleReq) (*pb_resp.GetRoleResp, error)
GetRole returns a specific role.
func (*Server) IntrospectAllProjects ¶
func (p *Server) IntrospectAllProjects( ctx context.Context, req *pb_req.ListProjectsReq) (*pb_resp.ListProjectsResp, error)
IntrospectAllProjects returns the list of all projects for display in the global projects filter, so it may include unassigned.
func (*Server) ListPolicies ¶
func (p *Server) ListPolicies( ctx context.Context, _ *pb_req.ListPoliciesReq) (*pb_resp.ListPoliciesResp, error)
ListPolicies returns the list of all policies.
func (*Server) ListPolicyMembers ¶
func (p *Server) ListPolicyMembers( ctx context.Context, in *pb_req.ListPolicyMembersReq) (*pb_resp.ListPolicyMembersResp, error)
ListPolicyMembers returns the list of members for a specific policy.
func (*Server) ListProjects ¶
func (p *Server) ListProjects( ctx context.Context, _ *pb_req.ListProjectsReq) (*pb_resp.ListProjectsResp, error)
ListProjects returns the list of all projects.
func (*Server) ListRoles ¶
func (p *Server) ListRoles( ctx context.Context, _ *pb_req.ListRolesReq) (*pb_resp.ListRolesResp, error)
ListRoles returns the list of all roles.
func (*Server) RemovePolicyMembers ¶
func (p *Server) RemovePolicyMembers( ctx context.Context, in *pb_req.RemovePolicyMembersReq) (*pb_resp.RemovePolicyMembersResp, error)
RemovePolicyMembers takes in a new list of policy members and completely replaces all policy members for given policy with new list.
func (*Server) ReplacePolicyMembers ¶
func (p *Server) ReplacePolicyMembers( ctx context.Context, in *pb_req.ReplacePolicyMembersReq) (*pb_resp.ReplacePolicyMembersResp, error)
ReplacePolicyMembers takes in a new list of policy members and completely replaces all policy members for given policy with new list.
func (*Server) UpdatePolicy ¶
func (p *Server) UpdatePolicy( ctx context.Context, in *pb_req.UpdatePolicyReq) (*pb_resp.UpdatePolicyResp, error)
UpdatePolicy returns the updated policy.
func (*Server) UpdateProject ¶
func (p *Server) UpdateProject( ctx context.Context, in *pb_req.UpdateProjectReq) (*pb_resp.UpdateProjectResp, error)
UpdateProject creates a new project.
func (*Server) UpdateRole ¶
func (p *Server) UpdateRole( ctx context.Context, in *pb_req.UpdateRoleReq) (*pb_resp.UpdateRoleResp, error)
UpdateRole returns the updated role.