actions

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: BSD-3-Clause-Clear Imports: 11 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ActionService_GetAction_FullMethodName    = "/policy.actions.ActionService/GetAction"
	ActionService_ListActions_FullMethodName  = "/policy.actions.ActionService/ListActions"
	ActionService_CreateAction_FullMethodName = "/policy.actions.ActionService/CreateAction"
	ActionService_UpdateAction_FullMethodName = "/policy.actions.ActionService/UpdateAction"
	ActionService_DeleteAction_FullMethodName = "/policy.actions.ActionService/DeleteAction"
)

Variables

View Source
var ActionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "policy.actions.ActionService",
	HandlerType: (*ActionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAction",
			Handler:    _ActionService_GetAction_Handler,
		},
		{
			MethodName: "ListActions",
			Handler:    _ActionService_ListActions_Handler,
		},
		{
			MethodName: "CreateAction",
			Handler:    _ActionService_CreateAction_Handler,
		},
		{
			MethodName: "UpdateAction",
			Handler:    _ActionService_UpdateAction_Handler,
		},
		{
			MethodName: "DeleteAction",
			Handler:    _ActionService_DeleteAction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "policy/actions/actions.proto",
}

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

View Source
var File_policy_actions_actions_proto protoreflect.FileDescriptor

Functions

func RegisterActionServiceServer

func RegisterActionServiceServer(s grpc.ServiceRegistrar, srv ActionServiceServer)

Types

type ActionServiceClient

type ActionServiceClient interface {
	GetAction(ctx context.Context, in *GetActionRequest, opts ...grpc.CallOption) (*GetActionResponse, error)
	ListActions(ctx context.Context, in *ListActionsRequest, opts ...grpc.CallOption) (*ListActionsResponse, error)
	CreateAction(ctx context.Context, in *CreateActionRequest, opts ...grpc.CallOption) (*CreateActionResponse, error)
	UpdateAction(ctx context.Context, in *UpdateActionRequest, opts ...grpc.CallOption) (*UpdateActionResponse, error)
	DeleteAction(ctx context.Context, in *DeleteActionRequest, opts ...grpc.CallOption) (*DeleteActionResponse, error)
}

ActionServiceClient is the client API for ActionService 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.

type ActionServiceServer

type ActionServiceServer interface {
	GetAction(context.Context, *GetActionRequest) (*GetActionResponse, error)
	ListActions(context.Context, *ListActionsRequest) (*ListActionsResponse, error)
	CreateAction(context.Context, *CreateActionRequest) (*CreateActionResponse, error)
	UpdateAction(context.Context, *UpdateActionRequest) (*UpdateActionResponse, error)
	DeleteAction(context.Context, *DeleteActionRequest) (*DeleteActionResponse, error)
	// contains filtered or unexported methods
}

ActionServiceServer is the server API for ActionService service. All implementations must embed UnimplementedActionServiceServer for forward compatibility

type CreateActionRequest

type CreateActionRequest struct {

	// Required
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional
	Metadata *common.MetadataMutable `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Create a new Custom action name with optional metadata. Creation of Standard actions is not supported.

func (*CreateActionRequest) Descriptor deprecated

func (*CreateActionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateActionRequest.ProtoReflect.Descriptor instead.

func (*CreateActionRequest) GetMetadata

func (x *CreateActionRequest) GetMetadata() *common.MetadataMutable

func (*CreateActionRequest) GetName

func (x *CreateActionRequest) GetName() string

func (*CreateActionRequest) ProtoMessage

func (*CreateActionRequest) ProtoMessage()

func (*CreateActionRequest) ProtoReflect

func (x *CreateActionRequest) ProtoReflect() protoreflect.Message

func (*CreateActionRequest) Reset

func (x *CreateActionRequest) Reset()

func (*CreateActionRequest) String

func (x *CreateActionRequest) String() string

type CreateActionResponse

type CreateActionResponse struct {
	Action *policy.Action `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateActionResponse) Descriptor deprecated

func (*CreateActionResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateActionResponse.ProtoReflect.Descriptor instead.

func (*CreateActionResponse) GetAction

func (x *CreateActionResponse) GetAction() *policy.Action

func (*CreateActionResponse) ProtoMessage

func (*CreateActionResponse) ProtoMessage()

func (*CreateActionResponse) ProtoReflect

func (x *CreateActionResponse) ProtoReflect() protoreflect.Message

func (*CreateActionResponse) Reset

func (x *CreateActionResponse) Reset()

func (*CreateActionResponse) String

func (x *CreateActionResponse) String() string

type DeleteActionRequest

type DeleteActionRequest struct {

	// Required
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Custom only: deletion of Standard actions is not supported.

func (*DeleteActionRequest) Descriptor deprecated

func (*DeleteActionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteActionRequest.ProtoReflect.Descriptor instead.

func (*DeleteActionRequest) GetId

func (x *DeleteActionRequest) GetId() string

func (*DeleteActionRequest) ProtoMessage

func (*DeleteActionRequest) ProtoMessage()

func (*DeleteActionRequest) ProtoReflect

func (x *DeleteActionRequest) ProtoReflect() protoreflect.Message

func (*DeleteActionRequest) Reset

func (x *DeleteActionRequest) Reset()

func (*DeleteActionRequest) String

func (x *DeleteActionRequest) String() string

type DeleteActionResponse

type DeleteActionResponse struct {
	Action *policy.Action `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteActionResponse) Descriptor deprecated

func (*DeleteActionResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteActionResponse.ProtoReflect.Descriptor instead.

func (*DeleteActionResponse) GetAction

func (x *DeleteActionResponse) GetAction() *policy.Action

func (*DeleteActionResponse) ProtoMessage

func (*DeleteActionResponse) ProtoMessage()

func (*DeleteActionResponse) ProtoReflect

func (x *DeleteActionResponse) ProtoReflect() protoreflect.Message

func (*DeleteActionResponse) Reset

func (x *DeleteActionResponse) Reset()

func (*DeleteActionResponse) String

func (x *DeleteActionResponse) String() string

type GetActionRequest

type GetActionRequest struct {

	// Required
	//
	// Types that are assignable to Identifier:
	//
	//	*GetActionRequest_Id
	//	*GetActionRequest_Name
	Identifier isGetActionRequest_Identifier `protobuf_oneof:"identifier"`
	// contains filtered or unexported fields
}

func (*GetActionRequest) Descriptor deprecated

func (*GetActionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetActionRequest.ProtoReflect.Descriptor instead.

func (*GetActionRequest) GetId

func (x *GetActionRequest) GetId() string

func (*GetActionRequest) GetIdentifier

func (m *GetActionRequest) GetIdentifier() isGetActionRequest_Identifier

func (*GetActionRequest) GetName

func (x *GetActionRequest) GetName() string

func (*GetActionRequest) ProtoMessage

func (*GetActionRequest) ProtoMessage()

func (*GetActionRequest) ProtoReflect

func (x *GetActionRequest) ProtoReflect() protoreflect.Message

func (*GetActionRequest) Reset

func (x *GetActionRequest) Reset()

func (*GetActionRequest) String

func (x *GetActionRequest) String() string

type GetActionRequest_Id

type GetActionRequest_Id struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}

type GetActionRequest_Name

type GetActionRequest_Name struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

type GetActionResponse

type GetActionResponse struct {
	Action *policy.Action `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	// Subject Mappings driving entitlement to the action
	SubjectMappings []*policy.SubjectMapping `protobuf:"bytes,2,rep,name=subject_mappings,json=subjectMappings,proto3" json:"subject_mappings,omitempty"`
	// contains filtered or unexported fields
}

func (*GetActionResponse) Descriptor deprecated

func (*GetActionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetActionResponse.ProtoReflect.Descriptor instead.

func (*GetActionResponse) GetAction

func (x *GetActionResponse) GetAction() *policy.Action

func (*GetActionResponse) GetSubjectMappings

func (x *GetActionResponse) GetSubjectMappings() []*policy.SubjectMapping

func (*GetActionResponse) ProtoMessage

func (*GetActionResponse) ProtoMessage()

func (*GetActionResponse) ProtoReflect

func (x *GetActionResponse) ProtoReflect() protoreflect.Message

func (*GetActionResponse) Reset

func (x *GetActionResponse) Reset()

func (*GetActionResponse) String

func (x *GetActionResponse) String() string

type ListActionsRequest

type ListActionsRequest struct {

	// Optional
	Pagination *policy.PageRequest `protobuf:"bytes,10,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListActionsRequest) Descriptor deprecated

func (*ListActionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListActionsRequest.ProtoReflect.Descriptor instead.

func (*ListActionsRequest) GetPagination

func (x *ListActionsRequest) GetPagination() *policy.PageRequest

func (*ListActionsRequest) ProtoMessage

func (*ListActionsRequest) ProtoMessage()

func (*ListActionsRequest) ProtoReflect

func (x *ListActionsRequest) ProtoReflect() protoreflect.Message

func (*ListActionsRequest) Reset

func (x *ListActionsRequest) Reset()

func (*ListActionsRequest) String

func (x *ListActionsRequest) String() string

type ListActionsResponse

type ListActionsResponse struct {
	ActionsStandard []*policy.Action     `protobuf:"bytes,1,rep,name=actions_standard,json=actionsStandard,proto3" json:"actions_standard,omitempty"`
	ActionsCustom   []*policy.Action     `protobuf:"bytes,2,rep,name=actions_custom,json=actionsCustom,proto3" json:"actions_custom,omitempty"`
	Pagination      *policy.PageResponse `protobuf:"bytes,10,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListActionsResponse) Descriptor deprecated

func (*ListActionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListActionsResponse.ProtoReflect.Descriptor instead.

func (*ListActionsResponse) GetActionsCustom

func (x *ListActionsResponse) GetActionsCustom() []*policy.Action

func (*ListActionsResponse) GetActionsStandard

func (x *ListActionsResponse) GetActionsStandard() []*policy.Action

func (*ListActionsResponse) GetPagination

func (x *ListActionsResponse) GetPagination() *policy.PageResponse

func (*ListActionsResponse) ProtoMessage

func (*ListActionsResponse) ProtoMessage()

func (*ListActionsResponse) ProtoReflect

func (x *ListActionsResponse) ProtoReflect() protoreflect.Message

func (*ListActionsResponse) Reset

func (x *ListActionsResponse) Reset()

func (*ListActionsResponse) String

func (x *ListActionsResponse) String() string

type UnimplementedActionServiceServer

type UnimplementedActionServiceServer struct {
}

UnimplementedActionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedActionServiceServer) CreateAction

func (UnimplementedActionServiceServer) DeleteAction

func (UnimplementedActionServiceServer) GetAction

func (UnimplementedActionServiceServer) ListActions

func (UnimplementedActionServiceServer) UpdateAction

type UnsafeActionServiceServer

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

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

type UpdateActionRequest

type UpdateActionRequest struct {

	// Required
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Optional
	// Custom actions only: replaces the existing action name
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Common metadata
	Metadata               *common.MetadataMutable   `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"`
	MetadataUpdateBehavior common.MetadataUpdateEnum `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

Metadata may be updated for either Custom or Standard actions. Names may only be updated for Custom actions.

func (*UpdateActionRequest) Descriptor deprecated

func (*UpdateActionRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateActionRequest.ProtoReflect.Descriptor instead.

func (*UpdateActionRequest) GetId

func (x *UpdateActionRequest) GetId() string

func (*UpdateActionRequest) GetMetadata

func (x *UpdateActionRequest) GetMetadata() *common.MetadataMutable

func (*UpdateActionRequest) GetMetadataUpdateBehavior

func (x *UpdateActionRequest) GetMetadataUpdateBehavior() common.MetadataUpdateEnum

func (*UpdateActionRequest) GetName

func (x *UpdateActionRequest) GetName() string

func (*UpdateActionRequest) ProtoMessage

func (*UpdateActionRequest) ProtoMessage()

func (*UpdateActionRequest) ProtoReflect

func (x *UpdateActionRequest) ProtoReflect() protoreflect.Message

func (*UpdateActionRequest) Reset

func (x *UpdateActionRequest) Reset()

func (*UpdateActionRequest) String

func (x *UpdateActionRequest) String() string

type UpdateActionResponse

type UpdateActionResponse struct {
	Action *policy.Action `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateActionResponse) Descriptor deprecated

func (*UpdateActionResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateActionResponse.ProtoReflect.Descriptor instead.

func (*UpdateActionResponse) GetAction

func (x *UpdateActionResponse) GetAction() *policy.Action

func (*UpdateActionResponse) ProtoMessage

func (*UpdateActionResponse) ProtoMessage()

func (*UpdateActionResponse) ProtoReflect

func (x *UpdateActionResponse) ProtoReflect() protoreflect.Message

func (*UpdateActionResponse) Reset

func (x *UpdateActionResponse) Reset()

func (*UpdateActionResponse) String

func (x *UpdateActionResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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