Documentation
¶
Overview ¶
Package reseller owns the node-local reseller registry. Tenant access is enabled only after panel, REST, webhook and customer-data paths enforce it.
Index ¶
- func ValidatePermissions(scopes []string) ([]string, error)
- type Account
- type Service
- func (s *Service) Create(ctx context.Context, slug, displayName string, scopes []string) (*Account, error)
- func (s *Service) Get(ctx context.Context, id string) (*Account, error)
- func (s *Service) List(ctx context.Context) ([]Account, error)
- func (s *Service) SetEnabled(ctx context.Context, id string, enabled bool) error
- func (s *Service) SetPermissions(ctx context.Context, id string, scopes []string) error
- func (s *Service) SetTemplates(ctx context.Context, id string, templateIDs []string) error
- func (s *Service) Templates(ctx context.Context, id string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePermissions ¶
ValidatePermissions rejects family wildcards so a later registry addition cannot silently widen an existing reseller grant.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) SetEnabled ¶
func (*Service) SetPermissions ¶
func (*Service) SetTemplates ¶ added in v0.1.4
SetTemplates replaces the owner's technical-template assignment atomically. An empty selection closes provisioning without altering existing subscriptions.
Click to show internal directories.
Click to hide internal directories.