Documentation ¶
Index ¶
- func GetConfigPrefix(req WithResourceId, userId string) string
- func GetConfigPrefixForCloud(userId string, cloud commonpb.CloudProvider) string
- type CreateRequest
- type Service
- func (s Service[Arg, OutT]) Create(ctx context.Context, in CreateRequest[Arg]) (out OutT, err error)
- func (s Service[Arg, OutT]) Delete(ctx context.Context, in WithResourceId) (_ *commonpb.Empty, err error)
- func (s Service[Arg, OutT]) Read(ctx context.Context, in WithResourceId) (out OutT, err error)
- func (s Service[Arg, OutT]) Update(ctx context.Context, in UpdateRequest[Arg]) (out OutT, err error)
- type UpdateRequest
- type WithResourceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigPrefix ¶ added in v0.1.56
func GetConfigPrefix(req WithResourceId, userId string) string
func GetConfigPrefixForCloud ¶ added in v0.1.56
func GetConfigPrefixForCloud(userId string, cloud commonpb.CloudProvider) string
Types ¶
type CreateRequest ¶
type Service ¶
type Service[Arg proto.Message, OutT proto.Message] struct { ServiceContext *service_context.ResourceServiceContext ResourceName string }
func NewService ¶ added in v0.1.36
func NewService[Arg proto.Message, OutT proto.Message](resourceName string, db *service_context.ResourceServiceContext) Service[Arg, OutT]
func (Service[Arg, OutT]) Create ¶
func (s Service[Arg, OutT]) Create(ctx context.Context, in CreateRequest[Arg]) (out OutT, err error)
type UpdateRequest ¶
type UpdateRequest[Arg proto.Message] interface { GetResource() Arg WithResourceId }
type WithResourceId ¶
Click to show internal directories.
Click to hide internal directories.