core

package
v1.6.10 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RealmConnectMaxAttempts  = 3
	RealmConnectSleepTimeout = 2 * time.Second
	RealmSelectMaxAttempts   = 3
)
View Source
const DefaultRealmsPort = 22

Variables

View Source
var (
	ErrBrigadeAlreadyLocated = errors.New("brigade already located")
	ErrAttemptLimitExceeded  = errors.New("attempt limit exceeded")
	ErrDraftRealmNotFound    = errors.New("draft realm not found")
)
View Source
var ErrServiceTemporarilyUnavailable = errors.New("service temporarily unavailable")

Functions

func CheckBrigadier

func CheckBrigadier(ctx context.Context, db *pgxpool.Pool, schema string, seed string,
	name string, mnemo string,
) (uuid.UUID, uuid.UUID, *namesgenerator.Person, bool, time.Time, string, error)

CheckBrigadier checks brigadier by name and mnemonics

func ComposeBrigade

func ComposeBrigade(ctx context.Context, db *pgxpool.Pool, schema string,
	sshconf *ssh.ClientConfig, tag string,
	partnerID uuid.UUID, brigadeID uuid.UUID,
	fullname string, person *namesgenerator.Person,
) (*dcmgmt.Answer, error)

func ReplaceBrigadier

func ReplaceBrigadier(ctx context.Context, db *pgxpool.Pool, schema string, tag string,
	sshconf *ssh.ClientConfig,
	brigadeID uuid.UUID,
) (*dcmgmt.Answer, error)

ReplaceBrigadier - replaces brigadier.

Types

This section is empty.

Jump to

Keyboard shortcuts

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