policy

package
v0.0.0-...-4b711b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

NewServer creates a server with its client.

func (*Server) AddPolicyMembers

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 (*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

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

RemovePolicyMembers takes in a new list of policy members and completely replaces all policy members for given policy with new list.

func (*Server) ReplacePolicyMembers

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL