v1beta1

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceHandler

type NamespaceHandler struct {
	pb.UnimplementedNamespaceServiceServer
	// contains filtered or unexported fields
}

func NewNamespaceHandler

func NewNamespaceHandler(l log.Logger, nsService NamespaceService) *NamespaceHandler

func (*NamespaceHandler) GetNamespace

func (nh *NamespaceHandler) GetNamespace(ctx context.Context, request *pb.GetNamespaceRequest) (
	*pb.GetNamespaceResponse, error,
)

func (*NamespaceHandler) ListProjectNamespaces

func (*NamespaceHandler) RegisterProjectNamespace

type ProjectHandler

type ProjectHandler struct {
	pb.UnimplementedProjectServiceServer
	// contains filtered or unexported fields
}

func NewProjectHandler

func NewProjectHandler(l log.Logger, projectService ProjectService) *ProjectHandler

func (*ProjectHandler) GetProject

func (*ProjectHandler) ListProjects

func (*ProjectHandler) RegisterProject

type ProjectService

type ProjectService interface {
	Save(context.Context, *tenant.Project) error
	Get(context.Context, tenant.ProjectName) (*tenant.Project, error)
	GetAll(context.Context) ([]*tenant.Project, error)
}

type SecretHandler

type SecretHandler struct {
	pb.UnimplementedSecretServiceServer
	// contains filtered or unexported fields
}

func NewSecretsHandler

func NewSecretsHandler(l log.Logger, secretService SecretService) *SecretHandler

func (*SecretHandler) DeleteSecret

func (*SecretHandler) ListSecrets

func (*SecretHandler) RegisterSecret

func (*SecretHandler) UpdateSecret

type SecretService

type SecretService interface {
	Save(ctx context.Context, projName tenant.ProjectName, nsName string, pts *tenant.PlainTextSecret) error
	Update(ctx context.Context, projName tenant.ProjectName, nsName string, pts *tenant.PlainTextSecret) error
	Delete(ctx context.Context, projName tenant.ProjectName, nsName string, secretName tenant.SecretName) error
	GetSecretsInfo(ctx context.Context, projName tenant.ProjectName) ([]*dto.SecretInfo, error)
}

type TenantService

type TenantService interface {
	GetDetails(ctx context.Context, tnnt tenant.Tenant) (*tenant.WithDetails, error)
	GetSecrets(ctx context.Context, tnnt tenant.Tenant) ([]*tenant.PlainTextSecret, error)
	GetSecret(ctx context.Context, tnnt tenant.Tenant, name string) (*tenant.PlainTextSecret, error)
}

Jump to

Keyboard shortcuts

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