organization

package
v1.3.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package organization is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

type MockService struct {
	// contains filtered or unexported fields
}

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockService) ListAllOrganizations

ListAllOrganizations mocks base method.

func (*MockService) ListOrganizations

ListOrganizations mocks base method.

type MockServiceMockRecorder

type MockServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) ListAllOrganizations

func (mr *MockServiceMockRecorder) ListAllOrganizations(ctx, params any) *gomock.Call

ListAllOrganizations indicates an expected call of ListAllOrganizations.

func (*MockServiceMockRecorder) ListOrganizations

func (mr *MockServiceMockRecorder) ListOrganizations(ctx, params any) *gomock.Call

ListOrganizations indicates an expected call of ListOrganizations.

type Service

type Service interface {
	ListOrganizations(ctx context.Context, params domain.ListOrganizationsParams) (*domain.OrganizationList, domain.Status)
	ListAllOrganizations(ctx context.Context, params domain.ListOrganizationsParams) (*domain.OrganizationList, domain.Status)
}

func WrapWithTracing

func WrapWithTracing(inner Service) Service

WrapWithTracing returns a Service that wraps inner with tracing spans, or nil if inner is nil.

type ServiceHandler

type ServiceHandler struct {
	// contains filtered or unexported fields
}

func NewServiceHandler

func NewServiceHandler(store organizationstore.Store) *ServiceHandler

NewServiceHandler creates a new organization ServiceHandler instance.

func (*ServiceHandler) ListAllOrganizations

ListAllOrganizations returns every organization in the system, bypassing identity-based scoping. It is intended for trusted internal callers (workers, periodic tasks, alert exporter) that need a system-wide view rather than the requesting identity's own organizations.

func (*ServiceHandler) ListOrganizations

ListOrganizations returns the organizations the caller's mapped identity belongs to.

type TracedService

type TracedService struct {
	// contains filtered or unexported fields
}

TracedService wraps a Service implementation with OpenTelemetry tracing.

func (*TracedService) ListAllOrganizations

func (_d *TracedService) ListAllOrganizations(ctx context.Context, params domain.ListOrganizationsParams) (op1 *domain.OrganizationList, s1 domain.Status)

func (*TracedService) ListOrganizations

func (_d *TracedService) ListOrganizations(ctx context.Context, params domain.ListOrganizationsParams) (op1 *domain.OrganizationList, s1 domain.Status)

Jump to

Keyboard shortcuts

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