service

package
v0.165.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(client client.Client, rootNamespace string) *Service

func (*Service) GetAccount

func (s *Service) GetAccount(ctx context.Context, accountKey client.ObjectKey) (*v1alpha1.Account, error)

func (*Service) GetAccountForNamespace

func (s *Service) GetAccountForNamespace(ctx context.Context, namespace string) (*v1alpha1.Account, error)

func (*Service) GetFirstLevelAccountForAccount

func (s *Service) GetFirstLevelAccountForAccount(ctx context.Context, accountKey client.ObjectKey) (*v1alpha1.Account, error)

func (*Service) GetFirstLevelAccountForNamespace

func (s *Service) GetFirstLevelAccountForNamespace(ctx context.Context, namespace string) (*v1alpha1.Account, error)

type Servicer

type Servicer interface {
	GetFirstLevelAccountForAccount(ctx context.Context, accountKey client.ObjectKey) (*v1alpha1.Account, error)
	GetFirstLevelAccountForNamespace(ctx context.Context, namespace string) (*v1alpha1.Account, error)

	GetAccount(ctx context.Context, accountKey client.ObjectKey) (*v1alpha1.Account, error)
	GetAccountForNamespace(ctx context.Context, namespace string) (*v1alpha1.Account, error)
}

Jump to

Keyboard shortcuts

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