ui

package
v0.5.24 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	Organizations                OrganizationService
	RestrictOrganizationCreation bool
}

func NewHandlers

func NewHandlers(organizations OrganizationService, restrictOrganizationCreation bool) *Handlers

func (*Handlers) AddHandlers

func (h *Handlers) AddHandlers(r *mux.Router)

type OrganizationService

type OrganizationService interface {
	CreateOrganization(ctx context.Context, opts organization.CreateOptions) (*organization.Organization, error)
	UpdateOrganization(ctx context.Context, name organization.Name, opts organization.UpdateOptions) (*organization.Organization, error)
	GetOrganization(ctx context.Context, name organization.Name) (*organization.Organization, error)
	ListOrganizations(ctx context.Context, opts organization.ListOptions) (*resource.Page[*organization.Organization], error)
	DeleteOrganization(ctx context.Context, name organization.Name) error
	CreateOrganizationToken(ctx context.Context, opts organization.CreateOrganizationTokenOptions) (*organization.OrganizationToken, []byte, error)
	ListOrganizationTokens(ctx context.Context, org organization.Name) ([]*organization.OrganizationToken, error)
	DeleteOrganizationToken(ctx context.Context, org organization.Name) error
}

Jump to

Keyboard shortcuts

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