Documentation ¶
Index ¶
- type BackupHandler
- func (b BackupHandler) CreateBackup(ctx context.Context, req *pb.CreateBackupRequest) (*pb.CreateBackupResponse, error)
- func (b BackupHandler) GetBackup(ctx context.Context, req *pb.GetBackupRequest) (*pb.GetBackupResponse, error)
- func (b BackupHandler) ListBackups(ctx context.Context, req *pb.ListBackupsRequest) (*pb.ListBackupsResponse, error)
- type BackupService
- type ResourceHandler
- func (rh ResourceHandler) CreateResource(ctx context.Context, req *pb.CreateResourceRequest) (*pb.CreateResourceResponse, error)
- func (rh ResourceHandler) DeployResourceSpecification(stream pb.ResourceService_DeployResourceSpecificationServer) error
- func (rh ResourceHandler) ListResourceSpecification(ctx context.Context, req *pb.ListResourceSpecificationRequest) (*pb.ListResourceSpecificationResponse, error)
- func (rh ResourceHandler) ReadResource(ctx context.Context, req *pb.ReadResourceRequest) (*pb.ReadResourceResponse, error)
- func (rh ResourceHandler) UpdateResource(ctx context.Context, req *pb.UpdateResourceRequest) (*pb.UpdateResourceResponse, error)
- type ResourceService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupHandler ¶
type BackupHandler struct { pb.UnimplementedBackupServiceServer // contains filtered or unexported fields }
func NewBackupHandler ¶
func NewBackupHandler(l log.Logger, service BackupService) *BackupHandler
func (BackupHandler) CreateBackup ¶
func (b BackupHandler) CreateBackup(ctx context.Context, req *pb.CreateBackupRequest) (*pb.CreateBackupResponse, error)
func (BackupHandler) GetBackup ¶
func (b BackupHandler) GetBackup(ctx context.Context, req *pb.GetBackupRequest) (*pb.GetBackupResponse, error)
func (BackupHandler) ListBackups ¶
func (b BackupHandler) ListBackups(ctx context.Context, req *pb.ListBackupsRequest) (*pb.ListBackupsResponse, error)
type BackupService ¶
type ResourceHandler ¶
type ResourceHandler struct { pb.UnimplementedResourceServiceServer // contains filtered or unexported fields }
func NewResourceHandler ¶
func NewResourceHandler(l log.Logger, resourceService ResourceService) *ResourceHandler
func (ResourceHandler) CreateResource ¶
func (rh ResourceHandler) CreateResource(ctx context.Context, req *pb.CreateResourceRequest) (*pb.CreateResourceResponse, error)
func (ResourceHandler) DeployResourceSpecification ¶
func (rh ResourceHandler) DeployResourceSpecification(stream pb.ResourceService_DeployResourceSpecificationServer) error
func (ResourceHandler) ListResourceSpecification ¶
func (rh ResourceHandler) ListResourceSpecification(ctx context.Context, req *pb.ListResourceSpecificationRequest) (*pb.ListResourceSpecificationResponse, error)
func (ResourceHandler) ReadResource ¶
func (rh ResourceHandler) ReadResource(ctx context.Context, req *pb.ReadResourceRequest) (*pb.ReadResourceResponse, error)
func (ResourceHandler) UpdateResource ¶
func (rh ResourceHandler) UpdateResource(ctx context.Context, req *pb.UpdateResourceRequest) (*pb.UpdateResourceResponse, error)
type ResourceService ¶
type ResourceService interface { Create(ctx context.Context, res *resource.Resource) error Update(ctx context.Context, res *resource.Resource) error Get(ctx context.Context, tnnt tenant.Tenant, store resource.Store, resourceName string) (*resource.Resource, error) GetAll(ctx context.Context, tnnt tenant.Tenant, store resource.Store) ([]*resource.Resource, error) Deploy(ctx context.Context, tnnt tenant.Tenant, store resource.Store, resources []*resource.Resource) error }
Click to show internal directories.
Click to hide internal directories.