v1beta1

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 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 ResourceChangeLogService added in v0.15.0

type ResourceChangeLogService interface {
	GetChangelogs(ctx context.Context, projectName tenant.ProjectName, resourceName resource.Name) ([]*resource.ChangeLog, error)
}

type ResourceHandler

type ResourceHandler struct {
	pb.UnimplementedResourceServiceServer
	// contains filtered or unexported fields
}

func NewResourceHandler

func NewResourceHandler(l log.Logger, resourceService ResourceService, changelogService ResourceChangeLogService) *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) GetResourceChangelogs added in v0.15.0

func (ResourceHandler) ReadResource

func (ResourceHandler) UpdateResource

func (ResourceHandler) UpsertResource added in v0.14.0

type ResourceService

type ResourceService interface {
	Create(ctx context.Context, res *resource.Resource) error
	Update(ctx context.Context, res *resource.Resource, logWriter writer.LogWriter) error
	Upsert(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