valdi

package
v1.122.3 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Error describes internal valdi error.
	Error = errs.Class("valdi service")

	// ErrPrivateKey is error type of private key.
	ErrPrivateKey = errs.Class("private key")

	// ErrEmail is error type of email.
	ErrEmail = errs.Class("email")

	// ErrCreateAPIKey is error type of create api key.
	ErrCreateAPIKey = errs.Class("create api key")

	// ErrCreateUser is error type of create user.
	ErrCreateUser = errs.Class("create user")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	SatelliteEmail string `` /* 162-byte string literal not displayed */
	valdiclient.Config
}

Config contains configurable values for valdi service.

type Service

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

Service handles valdi functionality.

func NewService

func NewService(log *zap.Logger, config Config, client *valdiclient.Client) (*Service, error)

NewService is a constructor for valdi Service.

func (*Service) CreateAPIKey

func (s *Service) CreateAPIKey(ctx context.Context, projectID uuid.UUID) (_ *valdiclient.CreateAPIKeyResponse, status int, err error)

CreateAPIKey creates an API key.

func (*Service) CreateUser

func (s *Service) CreateUser(ctx context.Context, projectID uuid.UUID) (status int, err error)

CreateUser creates a user.

func (*Service) CreateUserEmail

func (s *Service) CreateUserEmail(projectID uuid.UUID) string

CreateUserEmail creates an email address for a valdi user.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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