package repository

import (
	"context"
	"time"

	"github.com/ocdp/cluster-service/internal/domain/entity"
)

// TenantKubeClient provisions namespace-scoped Kubernetes access for tenants.
type TenantKubeClient interface {
	EnsureTenant(ctx context.Context, cluster *entity.Cluster, binding entity.TenantBinding) error
	IssueKubeconfig(ctx context.Context, cluster *entity.Cluster, binding entity.TenantBinding, ttl time.Duration) (*entity.TenantKubeconfig, error)
	SuspendTenant(ctx context.Context, cluster *entity.Cluster, binding entity.TenantBinding) error
}
