elektra

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// DefaultTestVpcID is the default VPC ID for testing
	DefaultTestVpcID = "00000000-0000-4000-8000-000000000000"
	// DefaultTestNetworkSegmentID is the default NetworkSegment ID for testing
	DefaultTestNetworkSegmentID = "00000000-0000-4000-9000-000000000000"
	// DefaultTestTenantKeysetID is the default TenantKeyset ID for testing
	DefaultTestTenantKeysetID = "00000000-0000-4000-a000-000000000000"
	// DefaultTestIBParitionID is the default IBPartition ID for testing
	DefaultTestIBParitionID = "00000000-0000-4000-b000-000000000000"
)

Functions

func SetupTestBootstrapSecret

func SetupTestBootstrapSecret(t *testing.T, conf *conftypes.Config) string

SetupTestBootstrapSecret generates a test bootstrap secret

func SetupTestCA

func SetupTestCA(t *testing.T, caCertPath string) string

SetupTestCA generates a test CA certificate and key.

func SetupTestCerts

func SetupTestCerts(t *testing.T, clientCertPath string, clientKeyPath string, caCertPath string) (string, string)

SetupTestCerts generates a test server/client certificate and key signed by the provided CA.

func TestInitElektra

func TestInitElektra(t *testing.T)

TestInitElektra initializes a test version of the Site Agent

Types

type Elektra

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

Elektra - Managers struct

func NewElektraAPI

func NewElektraAPI(superElektra *elektratypes.Elektra, utMode bool) (*Elektra, error)

NewElektraAPI - Instantiate new struct

func (*Elektra) Init

func (Cluster *Elektra) Init() (err error)

Init - initializes the cluster

func (*Elektra) Managers

func (Cluster *Elektra) Managers() *managers.Manager

Managers () Instantiate the Managers

func (*Elektra) Start

func (Cluster *Elektra) Start() (err error)

Start () Start the Cluster

type Interface

type Interface interface {
	Managers() managers.Manager
}

Interface - Managers' interface

Jump to

Keyboard shortcuts

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