Documentation
¶
Overview ¶
Package namespaces manages project credentials and enrolled project relays. Relay ownership uses a recorded service identity or a non-sensitive marker; enrollment certificates and keys remain sensitive variables.
Index ¶
- Variables
- func RelayHostname(hostname string) string
- func RelayRuntime(publicURL, namespace string) infra.RuntimeSpec
- type Backend
- type EventRecorder
- type Options
- type PlatformUnavailableError
- type Registry
- func (r *Registry) AgentURL(ns string) string
- func (r *Registry) Authorize(ctx context.Context, ns string, cert *x509.Certificate) error
- func (r *Registry) Backend(ns string) (infra.Backend, error)
- func (r *Registry) Close() error
- func (r *Registry) ClusterCount(ctx context.Context, namespace string) (int, error)
- func (r *Registry) Create(ctx context.Context, name, projectID, token, description, kind string, ...) (*domain.Namespace, error)
- func (r *Registry) Delete(ctx context.Context, name string) error
- func (r *Registry) Dialer(ns string) engine.ContextDialer
- func (r *Registry) Get(ctx context.Context, name string) (*domain.Namespace, error)
- func (r *Registry) List(ctx context.Context) ([]domain.Namespace, error)
- func (r *Registry) RotateToken(ctx context.Context, name, token string) (*domain.Namespace, error)
- func (r *Registry) Run(ctx context.Context) error
- func (r *Registry) Update(ctx context.Context, name, description string) (*domain.Namespace, error)
- func (r *Registry) Validate(ctx context.Context, name string) (*domain.Namespace, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConflict = store.ErrConflict
View Source
var ErrInvalid = errors.New("invalid namespace")
View Source
var ErrNotFound = store.ErrNotFound
Functions ¶
func RelayHostname ¶
RelayHostname preserves the usual name while bounding long control-plane names.
func RelayRuntime ¶ added in v0.2.0
func RelayRuntime(publicURL, namespace string) infra.RuntimeSpec
RelayRuntime contains public configuration only; enrollment uses env secrets.
Types ¶
type Options ¶
type Options struct {
Store *store.Store
DefaultBackend Backend
Backends *infra.Registry
DefaultTarget infra.Target
PublicURL, AdvertiseURL, RelayHostname string
Events EventRecorder
Logger *slog.Logger
Artifact engine.ArtifactSource
ExecutableHash string
RelayTargets func(*domain.Cluster) []string
}
type PlatformUnavailableError ¶
type PlatformUnavailableError struct {
// contains filtered or unexported fields
}
PlatformUnavailableError exposes a safe validation diagnostic without misclassifying a platform failure as invalid namespace credentials.
func (*PlatformUnavailableError) Error ¶
func (e *PlatformUnavailableError) Error() string
Click to show internal directories.
Click to hide internal directories.