v1beta1

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 (BackupHandler) GetBackup

func (BackupHandler) ListBackups

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 (ResourceHandler) DeployResourceSpecification

func (rh ResourceHandler) DeployResourceSpecification(stream pb.ResourceService_DeployResourceSpecificationServer) error

func (ResourceHandler) ReadResource

func (ResourceHandler) UpdateResource

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
}

Jump to

Keyboard shortcuts

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