v1beta1

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 14 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) ApplyResources added in v0.9.0

func (ResourceHandler) ChangeResourceNamespace added in v0.8.0

func (ResourceHandler) CreateResource

func (ResourceHandler) DeleteResource added in v0.12.0

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, logWriter writer.LogWriter) error
	Delete(ctx context.Context, req *resource.DeleteRequest) (*resource.DeleteResponse, error)
	ChangeNamespace(ctx context.Context, datastore resource.Store, resourceFullName string, oldTenant, newTenant tenant.Tenant) 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, logWriter writer.LogWriter) error
	SyncResources(ctx context.Context, tnnt tenant.Tenant, store resource.Store, names []string) (*resource.SyncResponse, error)
}

Jump to

Keyboard shortcuts

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