Documentation ¶
Index ¶
- type NamespaceHandler
- func (nh *NamespaceHandler) GetNamespace(ctx context.Context, request *pb.GetNamespaceRequest) (*pb.GetNamespaceResponse, error)
- func (nh *NamespaceHandler) ListProjectNamespaces(ctx context.Context, req *pb.ListProjectNamespacesRequest) (*pb.ListProjectNamespacesResponse, error)
- func (nh *NamespaceHandler) RegisterProjectNamespace(ctx context.Context, req *pb.RegisterProjectNamespaceRequest) (*pb.RegisterProjectNamespaceResponse, error)
- type NamespaceService
- type ProjectHandler
- func (ph *ProjectHandler) GetProject(ctx context.Context, req *pb.GetProjectRequest) (*pb.GetProjectResponse, error)
- func (ph *ProjectHandler) ListProjects(ctx context.Context, _ *pb.ListProjectsRequest) (*pb.ListProjectsResponse, error)
- func (ph *ProjectHandler) RegisterProject(ctx context.Context, req *pb.RegisterProjectRequest) (*pb.RegisterProjectResponse, error)
- type ProjectService
- type SecretHandler
- func (sv *SecretHandler) DeleteSecret(ctx context.Context, req *pb.DeleteSecretRequest) (*pb.DeleteSecretResponse, error)
- func (sv *SecretHandler) ListSecrets(ctx context.Context, req *pb.ListSecretsRequest) (*pb.ListSecretsResponse, error)
- func (sv *SecretHandler) RegisterSecret(ctx context.Context, req *pb.RegisterSecretRequest) (*pb.RegisterSecretResponse, error)
- func (sv *SecretHandler) UpdateSecret(ctx context.Context, req *pb.UpdateSecretRequest) (*pb.UpdateSecretResponse, error)
- type SecretService
- type TenantService
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 (nh *NamespaceHandler) ListProjectNamespaces(ctx context.Context, req *pb.ListProjectNamespacesRequest) ( *pb.ListProjectNamespacesResponse, error)
func (*NamespaceHandler) RegisterProjectNamespace ¶
func (nh *NamespaceHandler) RegisterProjectNamespace(ctx context.Context, req *pb.RegisterProjectNamespaceRequest) ( *pb.RegisterProjectNamespaceResponse, error)
type NamespaceService ¶
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 (ph *ProjectHandler) GetProject(ctx context.Context, req *pb.GetProjectRequest) (*pb.GetProjectResponse, error)
func (*ProjectHandler) ListProjects ¶
func (ph *ProjectHandler) ListProjects(ctx context.Context, _ *pb.ListProjectsRequest) (*pb.ListProjectsResponse, error)
func (*ProjectHandler) RegisterProject ¶
func (ph *ProjectHandler) RegisterProject(ctx context.Context, req *pb.RegisterProjectRequest) (*pb.RegisterProjectResponse, error)
type ProjectService ¶
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 (sv *SecretHandler) DeleteSecret(ctx context.Context, req *pb.DeleteSecretRequest) (*pb.DeleteSecretResponse, error)
func (*SecretHandler) ListSecrets ¶
func (sv *SecretHandler) ListSecrets(ctx context.Context, req *pb.ListSecretsRequest) (*pb.ListSecretsResponse, error)
func (*SecretHandler) RegisterSecret ¶
func (sv *SecretHandler) RegisterSecret(ctx context.Context, req *pb.RegisterSecretRequest) (*pb.RegisterSecretResponse, error)
func (*SecretHandler) UpdateSecret ¶
func (sv *SecretHandler) UpdateSecret(ctx context.Context, req *pb.UpdateSecretRequest) (*pb.UpdateSecretResponse, error)
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 ¶
Click to show internal directories.
Click to hide internal directories.