shieldv1grpc

package
v1.2.0-20230223111443-... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShieldService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "odpf.shield.v1.ShieldService",
	HandlerType: (*ShieldServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListUsers",
			Handler:    _ShieldService_ListUsers_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _ShieldService_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _ShieldService_GetUser_Handler,
		},
		{
			MethodName: "GetCurrentUser",
			Handler:    _ShieldService_GetCurrentUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _ShieldService_UpdateUser_Handler,
		},
		{
			MethodName: "UpdateCurrentUser",
			Handler:    _ShieldService_UpdateCurrentUser_Handler,
		},
		{
			MethodName: "ListGroups",
			Handler:    _ShieldService_ListGroups_Handler,
		},
		{
			MethodName: "CreateGroup",
			Handler:    _ShieldService_CreateGroup_Handler,
		},
		{
			MethodName: "GetGroup",
			Handler:    _ShieldService_GetGroup_Handler,
		},
		{
			MethodName: "ListGroupUsers",
			Handler:    _ShieldService_ListGroupUsers_Handler,
		},
		{
			MethodName: "UpdateGroup",
			Handler:    _ShieldService_UpdateGroup_Handler,
		},
		{
			MethodName: "ListRoles",
			Handler:    _ShieldService_ListRoles_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _ShieldService_CreateRole_Handler,
		},
		{
			MethodName: "GetRole",
			Handler:    _ShieldService_GetRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _ShieldService_UpdateRole_Handler,
		},
		{
			MethodName: "ListOrganizations",
			Handler:    _ShieldService_ListOrganizations_Handler,
		},
		{
			MethodName: "CreateOrganization",
			Handler:    _ShieldService_CreateOrganization_Handler,
		},
		{
			MethodName: "GetOrganization",
			Handler:    _ShieldService_GetOrganization_Handler,
		},
		{
			MethodName: "UpdateOrganization",
			Handler:    _ShieldService_UpdateOrganization_Handler,
		},
		{
			MethodName: "ListProjects",
			Handler:    _ShieldService_ListProjects_Handler,
		},
		{
			MethodName: "CreateProject",
			Handler:    _ShieldService_CreateProject_Handler,
		},
		{
			MethodName: "GetProject",
			Handler:    _ShieldService_GetProject_Handler,
		},
		{
			MethodName: "UpdateProject",
			Handler:    _ShieldService_UpdateProject_Handler,
		},
		{
			MethodName: "ListActions",
			Handler:    _ShieldService_ListActions_Handler,
		},
		{
			MethodName: "CreateAction",
			Handler:    _ShieldService_CreateAction_Handler,
		},
		{
			MethodName: "GetAction",
			Handler:    _ShieldService_GetAction_Handler,
		},
		{
			MethodName: "UpdateAction",
			Handler:    _ShieldService_UpdateAction_Handler,
		},
		{
			MethodName: "ListNamespaces",
			Handler:    _ShieldService_ListNamespaces_Handler,
		},
		{
			MethodName: "CreateNamespace",
			Handler:    _ShieldService_CreateNamespace_Handler,
		},
		{
			MethodName: "GetNamespace",
			Handler:    _ShieldService_GetNamespace_Handler,
		},
		{
			MethodName: "UpdateNamespace",
			Handler:    _ShieldService_UpdateNamespace_Handler,
		},
		{
			MethodName: "ListPolicies",
			Handler:    _ShieldService_ListPolicies_Handler,
		},
		{
			MethodName: "CreatePolicy",
			Handler:    _ShieldService_CreatePolicy_Handler,
		},
		{
			MethodName: "GetPolicy",
			Handler:    _ShieldService_GetPolicy_Handler,
		},
		{
			MethodName: "UpdatePolicy",
			Handler:    _ShieldService_UpdatePolicy_Handler,
		},
		{
			MethodName: "ListRelations",
			Handler:    _ShieldService_ListRelations_Handler,
		},
		{
			MethodName: "CreateRelation",
			Handler:    _ShieldService_CreateRelation_Handler,
		},
		{
			MethodName: "GetRelation",
			Handler:    _ShieldService_GetRelation_Handler,
		},
		{
			MethodName: "UpdateRelation",
			Handler:    _ShieldService_UpdateRelation_Handler,
		},
		{
			MethodName: "ListResources",
			Handler:    _ShieldService_ListResources_Handler,
		},
		{
			MethodName: "CreateResource",
			Handler:    _ShieldService_CreateResource_Handler,
		},
		{
			MethodName: "GetResource",
			Handler:    _ShieldService_GetResource_Handler,
		},
		{
			MethodName: "UpdateResource",
			Handler:    _ShieldService_UpdateResource_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "odpf/shield/v1/shield.proto",
}

ShieldService_ServiceDesc is the grpc.ServiceDesc for ShieldService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterShieldServiceServer

func RegisterShieldServiceServer(s grpc.ServiceRegistrar, srv ShieldServiceServer)

Types

type ShieldServiceClient

type ShieldServiceClient interface {
	ListUsers(ctx context.Context, in *v1.ListUsersRequest, opts ...grpc.CallOption) (*v1.ListUsersResponse, error)
	CreateUser(ctx context.Context, in *v1.CreateUserRequest, opts ...grpc.CallOption) (*v1.CreateUserResponse, error)
	GetUser(ctx context.Context, in *v1.GetUserRequest, opts ...grpc.CallOption) (*v1.GetUserResponse, error)
	GetCurrentUser(ctx context.Context, in *v1.GetCurrentUserRequest, opts ...grpc.CallOption) (*v1.GetCurrentUserResponse, error)
	UpdateUser(ctx context.Context, in *v1.UpdateUserRequest, opts ...grpc.CallOption) (*v1.UpdateUserResponse, error)
	UpdateCurrentUser(ctx context.Context, in *v1.UpdateCurrentUserRequest, opts ...grpc.CallOption) (*v1.UpdateCurrentUserResponse, error)
	ListGroups(ctx context.Context, in *v1.ListGroupsRequest, opts ...grpc.CallOption) (*v1.ListGroupsResponse, error)
	CreateGroup(ctx context.Context, in *v1.CreateGroupRequest, opts ...grpc.CallOption) (*v1.CreateGroupResponse, error)
	GetGroup(ctx context.Context, in *v1.GetGroupRequest, opts ...grpc.CallOption) (*v1.GetGroupResponse, error)
	ListGroupUsers(ctx context.Context, in *v1.ListGroupUsersRequest, opts ...grpc.CallOption) (*v1.ListGroupUsersResponse, error)
	UpdateGroup(ctx context.Context, in *v1.UpdateGroupRequest, opts ...grpc.CallOption) (*v1.UpdateGroupResponse, error)
	ListRoles(ctx context.Context, in *v1.ListRolesRequest, opts ...grpc.CallOption) (*v1.ListRolesResponse, error)
	CreateRole(ctx context.Context, in *v1.CreateRoleRequest, opts ...grpc.CallOption) (*v1.CreateRoleResponse, error)
	GetRole(ctx context.Context, in *v1.GetRoleRequest, opts ...grpc.CallOption) (*v1.GetRoleResponse, error)
	UpdateRole(ctx context.Context, in *v1.UpdateRoleRequest, opts ...grpc.CallOption) (*v1.UpdateRoleResponse, error)
	ListOrganizations(ctx context.Context, in *v1.ListOrganizationsRequest, opts ...grpc.CallOption) (*v1.ListOrganizationsResponse, error)
	CreateOrganization(ctx context.Context, in *v1.CreateOrganizationRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationResponse, error)
	GetOrganization(ctx context.Context, in *v1.GetOrganizationRequest, opts ...grpc.CallOption) (*v1.GetOrganizationResponse, error)
	UpdateOrganization(ctx context.Context, in *v1.UpdateOrganizationRequest, opts ...grpc.CallOption) (*v1.UpdateOrganizationResponse, error)
	ListProjects(ctx context.Context, in *v1.ListProjectsRequest, opts ...grpc.CallOption) (*v1.ListProjectsResponse, error)
	CreateProject(ctx context.Context, in *v1.CreateProjectRequest, opts ...grpc.CallOption) (*v1.CreateProjectResponse, error)
	GetProject(ctx context.Context, in *v1.GetProjectRequest, opts ...grpc.CallOption) (*v1.GetProjectResponse, error)
	UpdateProject(ctx context.Context, in *v1.UpdateProjectRequest, opts ...grpc.CallOption) (*v1.UpdateProjectResponse, error)
	ListActions(ctx context.Context, in *v1.ListActionsRequest, opts ...grpc.CallOption) (*v1.ListActionsResponse, error)
	CreateAction(ctx context.Context, in *v1.CreateActionRequest, opts ...grpc.CallOption) (*v1.CreateActionResponse, error)
	GetAction(ctx context.Context, in *v1.GetActionRequest, opts ...grpc.CallOption) (*v1.GetActionResponse, error)
	UpdateAction(ctx context.Context, in *v1.UpdateActionRequest, opts ...grpc.CallOption) (*v1.UpdateActionResponse, error)
	ListNamespaces(ctx context.Context, in *v1.ListNamespacesRequest, opts ...grpc.CallOption) (*v1.ListNamespacesResponse, error)
	CreateNamespace(ctx context.Context, in *v1.CreateNamespaceRequest, opts ...grpc.CallOption) (*v1.CreateNamespaceResponse, error)
	GetNamespace(ctx context.Context, in *v1.GetNamespaceRequest, opts ...grpc.CallOption) (*v1.GetNamespaceResponse, error)
	UpdateNamespace(ctx context.Context, in *v1.UpdateNamespaceRequest, opts ...grpc.CallOption) (*v1.UpdateNamespaceResponse, error)
	ListPolicies(ctx context.Context, in *v1.ListPoliciesRequest, opts ...grpc.CallOption) (*v1.ListPoliciesResponse, error)
	CreatePolicy(ctx context.Context, in *v1.CreatePolicyRequest, opts ...grpc.CallOption) (*v1.CreatePolicyResponse, error)
	GetPolicy(ctx context.Context, in *v1.GetPolicyRequest, opts ...grpc.CallOption) (*v1.GetPolicyResponse, error)
	UpdatePolicy(ctx context.Context, in *v1.UpdatePolicyRequest, opts ...grpc.CallOption) (*v1.UpdatePolicyResponse, error)
	ListRelations(ctx context.Context, in *v1.ListRelationsRequest, opts ...grpc.CallOption) (*v1.ListRelationsResponse, error)
	CreateRelation(ctx context.Context, in *v1.CreateRelationRequest, opts ...grpc.CallOption) (*v1.CreateRelationResponse, error)
	GetRelation(ctx context.Context, in *v1.GetRelationRequest, opts ...grpc.CallOption) (*v1.GetRelationResponse, error)
	UpdateRelation(ctx context.Context, in *v1.UpdateRelationRequest, opts ...grpc.CallOption) (*v1.UpdateRelationResponse, error)
	ListResources(ctx context.Context, in *v1.ListResourcesRequest, opts ...grpc.CallOption) (*v1.ListResourcesResponse, error)
	CreateResource(ctx context.Context, in *v1.CreateResourceRequest, opts ...grpc.CallOption) (*v1.CreateResourceResponse, error)
	GetResource(ctx context.Context, in *v1.GetResourceRequest, opts ...grpc.CallOption) (*v1.GetResourceResponse, error)
	UpdateResource(ctx context.Context, in *v1.UpdateResourceRequest, opts ...grpc.CallOption) (*v1.UpdateResourceResponse, error)
}

ShieldServiceClient is the client API for ShieldService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewShieldServiceClient

func NewShieldServiceClient(cc grpc.ClientConnInterface) ShieldServiceClient

type ShieldServiceServer

type ShieldServiceServer interface {
	ListUsers(context.Context, *v1.ListUsersRequest) (*v1.ListUsersResponse, error)
	CreateUser(context.Context, *v1.CreateUserRequest) (*v1.CreateUserResponse, error)
	GetUser(context.Context, *v1.GetUserRequest) (*v1.GetUserResponse, error)
	GetCurrentUser(context.Context, *v1.GetCurrentUserRequest) (*v1.GetCurrentUserResponse, error)
	UpdateUser(context.Context, *v1.UpdateUserRequest) (*v1.UpdateUserResponse, error)
	UpdateCurrentUser(context.Context, *v1.UpdateCurrentUserRequest) (*v1.UpdateCurrentUserResponse, error)
	ListGroups(context.Context, *v1.ListGroupsRequest) (*v1.ListGroupsResponse, error)
	CreateGroup(context.Context, *v1.CreateGroupRequest) (*v1.CreateGroupResponse, error)
	GetGroup(context.Context, *v1.GetGroupRequest) (*v1.GetGroupResponse, error)
	ListGroupUsers(context.Context, *v1.ListGroupUsersRequest) (*v1.ListGroupUsersResponse, error)
	UpdateGroup(context.Context, *v1.UpdateGroupRequest) (*v1.UpdateGroupResponse, error)
	ListRoles(context.Context, *v1.ListRolesRequest) (*v1.ListRolesResponse, error)
	CreateRole(context.Context, *v1.CreateRoleRequest) (*v1.CreateRoleResponse, error)
	GetRole(context.Context, *v1.GetRoleRequest) (*v1.GetRoleResponse, error)
	UpdateRole(context.Context, *v1.UpdateRoleRequest) (*v1.UpdateRoleResponse, error)
	ListOrganizations(context.Context, *v1.ListOrganizationsRequest) (*v1.ListOrganizationsResponse, error)
	CreateOrganization(context.Context, *v1.CreateOrganizationRequest) (*v1.CreateOrganizationResponse, error)
	GetOrganization(context.Context, *v1.GetOrganizationRequest) (*v1.GetOrganizationResponse, error)
	UpdateOrganization(context.Context, *v1.UpdateOrganizationRequest) (*v1.UpdateOrganizationResponse, error)
	ListProjects(context.Context, *v1.ListProjectsRequest) (*v1.ListProjectsResponse, error)
	CreateProject(context.Context, *v1.CreateProjectRequest) (*v1.CreateProjectResponse, error)
	GetProject(context.Context, *v1.GetProjectRequest) (*v1.GetProjectResponse, error)
	UpdateProject(context.Context, *v1.UpdateProjectRequest) (*v1.UpdateProjectResponse, error)
	ListActions(context.Context, *v1.ListActionsRequest) (*v1.ListActionsResponse, error)
	CreateAction(context.Context, *v1.CreateActionRequest) (*v1.CreateActionResponse, error)
	GetAction(context.Context, *v1.GetActionRequest) (*v1.GetActionResponse, error)
	UpdateAction(context.Context, *v1.UpdateActionRequest) (*v1.UpdateActionResponse, error)
	ListNamespaces(context.Context, *v1.ListNamespacesRequest) (*v1.ListNamespacesResponse, error)
	CreateNamespace(context.Context, *v1.CreateNamespaceRequest) (*v1.CreateNamespaceResponse, error)
	GetNamespace(context.Context, *v1.GetNamespaceRequest) (*v1.GetNamespaceResponse, error)
	UpdateNamespace(context.Context, *v1.UpdateNamespaceRequest) (*v1.UpdateNamespaceResponse, error)
	ListPolicies(context.Context, *v1.ListPoliciesRequest) (*v1.ListPoliciesResponse, error)
	CreatePolicy(context.Context, *v1.CreatePolicyRequest) (*v1.CreatePolicyResponse, error)
	GetPolicy(context.Context, *v1.GetPolicyRequest) (*v1.GetPolicyResponse, error)
	UpdatePolicy(context.Context, *v1.UpdatePolicyRequest) (*v1.UpdatePolicyResponse, error)
	ListRelations(context.Context, *v1.ListRelationsRequest) (*v1.ListRelationsResponse, error)
	CreateRelation(context.Context, *v1.CreateRelationRequest) (*v1.CreateRelationResponse, error)
	GetRelation(context.Context, *v1.GetRelationRequest) (*v1.GetRelationResponse, error)
	UpdateRelation(context.Context, *v1.UpdateRelationRequest) (*v1.UpdateRelationResponse, error)
	ListResources(context.Context, *v1.ListResourcesRequest) (*v1.ListResourcesResponse, error)
	CreateResource(context.Context, *v1.CreateResourceRequest) (*v1.CreateResourceResponse, error)
	GetResource(context.Context, *v1.GetResourceRequest) (*v1.GetResourceResponse, error)
	UpdateResource(context.Context, *v1.UpdateResourceRequest) (*v1.UpdateResourceResponse, error)
}

ShieldServiceServer is the server API for ShieldService service. All implementations should embed UnimplementedShieldServiceServer for forward compatibility

type UnimplementedShieldServiceServer

type UnimplementedShieldServiceServer struct {
}

UnimplementedShieldServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedShieldServiceServer) CreateAction

func (UnimplementedShieldServiceServer) CreateGroup

func (UnimplementedShieldServiceServer) CreateNamespace

func (UnimplementedShieldServiceServer) CreateOrganization

func (UnimplementedShieldServiceServer) CreatePolicy

func (UnimplementedShieldServiceServer) CreateProject

func (UnimplementedShieldServiceServer) CreateRelation

func (UnimplementedShieldServiceServer) CreateResource

func (UnimplementedShieldServiceServer) CreateRole

func (UnimplementedShieldServiceServer) CreateUser

func (UnimplementedShieldServiceServer) GetAction

func (UnimplementedShieldServiceServer) GetCurrentUser

func (UnimplementedShieldServiceServer) GetGroup

func (UnimplementedShieldServiceServer) GetNamespace

func (UnimplementedShieldServiceServer) GetOrganization

func (UnimplementedShieldServiceServer) GetPolicy

func (UnimplementedShieldServiceServer) GetProject

func (UnimplementedShieldServiceServer) GetRelation

func (UnimplementedShieldServiceServer) GetResource

func (UnimplementedShieldServiceServer) GetRole

func (UnimplementedShieldServiceServer) GetUser

func (UnimplementedShieldServiceServer) ListActions

func (UnimplementedShieldServiceServer) ListGroupUsers

func (UnimplementedShieldServiceServer) ListGroups

func (UnimplementedShieldServiceServer) ListNamespaces

func (UnimplementedShieldServiceServer) ListOrganizations

func (UnimplementedShieldServiceServer) ListPolicies

func (UnimplementedShieldServiceServer) ListProjects

func (UnimplementedShieldServiceServer) ListRelations

func (UnimplementedShieldServiceServer) ListResources

func (UnimplementedShieldServiceServer) ListRoles

func (UnimplementedShieldServiceServer) ListUsers

func (UnimplementedShieldServiceServer) UpdateAction

func (UnimplementedShieldServiceServer) UpdateCurrentUser

func (UnimplementedShieldServiceServer) UpdateGroup

func (UnimplementedShieldServiceServer) UpdateNamespace

func (UnimplementedShieldServiceServer) UpdateOrganization

func (UnimplementedShieldServiceServer) UpdatePolicy

func (UnimplementedShieldServiceServer) UpdateProject

func (UnimplementedShieldServiceServer) UpdateRelation

func (UnimplementedShieldServiceServer) UpdateResource

func (UnimplementedShieldServiceServer) UpdateRole

func (UnimplementedShieldServiceServer) UpdateUser

type UnsafeShieldServiceServer

type UnsafeShieldServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeShieldServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShieldServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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