orchestrator

package
v1.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

ValidOrgRoles are the platform roles that may be assigned to a user within an organization.

ValidTenantRoles are the platform roles that may be assigned to a user within a tenant.

Functions

func InitializeRepository

func InitializeRepository(extFactory *extensions.Factory)

Types

type NetworkOrchestrator

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

func (*NetworkOrchestrator) AllocateExtclientIP

func (n *NetworkOrchestrator) AllocateExtclientIP(ctx context.Context, network *schema.Network) (net.IP, error)

func (*NetworkOrchestrator) AllocateExtclientIPv6

func (n *NetworkOrchestrator) AllocateExtclientIPv6(ctx context.Context, network *schema.Network) (net.IP, error)

func (*NetworkOrchestrator) AllocateNodeIP

func (n *NetworkOrchestrator) AllocateNodeIP(ctx context.Context, network *schema.Network) (net.IP, error)

func (*NetworkOrchestrator) AllocateNodeIPv6

func (n *NetworkOrchestrator) AllocateNodeIPv6(ctx context.Context, network *schema.Network) (net.IP, error)

func (*NetworkOrchestrator) FreeIPv4Reservation

func (n *NetworkOrchestrator) FreeIPv4Reservation(networkID, ip string)

func (*NetworkOrchestrator) FreeIPv6Reservation

func (n *NetworkOrchestrator) FreeIPv6Reservation(networkID, ip string)

func (*NetworkOrchestrator) IsIPv4Unique

func (n *NetworkOrchestrator) IsIPv4Unique(ctx context.Context, network *schema.Network, ip string) bool

func (*NetworkOrchestrator) IsIPv6Unique

func (n *NetworkOrchestrator) IsIPv6Unique(ctx context.Context, network *schema.Network, ip string) bool

type NodeOrchestrator

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

func (*NodeOrchestrator) CreateGateway

func (n *NodeOrchestrator) CreateGateway(ctx context.Context, node *schema.Node, options ...Option) error

func (*NodeOrchestrator) CreateNode

func (n *NodeOrchestrator) CreateNode(ctx context.Context, host *schema.Host, network *schema.Network, options ...Option) (*schema.Node, error)

func (*NodeOrchestrator) ValidateCreateGateway

func (n *NodeOrchestrator) ValidateCreateGateway(ctx context.Context, node *schema.Node, options ...Option) error

type Option

type Option func(options *Options) *Options

func SkipHostUpdate

func SkipHostUpdate() Option

func SkipNodeUpdate

func SkipNodeUpdate() Option

func SkipPublishPeerUpdate

func SkipPublishPeerUpdate() Option

func UseKey

func UseKey(key *schema.EnrollmentKey) Option

func WithInheritedAuth added in v1.7.0

func WithInheritedAuth() Option

func WithInternetGateway

func WithInternetGateway(igwClients []string) Option

func WithRelayedClients

func WithRelayedClients(relayedClients []string) Option

func WithReplicatedAuth added in v1.7.0

func WithReplicatedAuth() Option

func WithTcpProxy added in v1.7.0

func WithTcpProxy(enabled bool, listenPort int, tlsMode, listenAddr, publicHostname string) Option

WithTcpProxy enables TCP proxy listen settings when creating a gateway. tlsMode may be empty (defaults to selfsigned). listenAddr is optional (e.g. 127.0.0.1). publicHostname is used when tlsMode is proxy (clients dial this DNS name).

type Options

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

type Repository

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

func GetRepository

func GetRepository() *Repository

func (*Repository) NetworkOrchestrator

func (r *Repository) NetworkOrchestrator() *NetworkOrchestrator

func (*Repository) NodeOrchestrator

func (r *Repository) NodeOrchestrator() *NodeOrchestrator

func (*Repository) TenantOrchestrator added in v1.7.0

func (r *Repository) TenantOrchestrator() *TenantOrchestrator

func (*Repository) UserOrchestrator added in v1.7.0

func (r *Repository) UserOrchestrator() *UserOrchestrator

type TenantOrchestrator added in v1.7.0

type TenantOrchestrator struct {
}

func (*TenantOrchestrator) CreateDefaultTenant added in v1.7.0

func (t *TenantOrchestrator) CreateDefaultTenant(ctx context.Context, orgID string) (*schema.Tenant, error)

func (*TenantOrchestrator) CreateTenant added in v1.7.0

func (t *TenantOrchestrator) CreateTenant(ctx context.Context, tenant *schema.Tenant) error

func (*TenantOrchestrator) GrantTenantSuperAdmin added in v1.7.0

func (t *TenantOrchestrator) GrantTenantSuperAdmin(ctx context.Context, tenant *schema.Tenant, user *schema.User) error

func (*TenantOrchestrator) TeardownTenant added in v1.7.0

func (t *TenantOrchestrator) TeardownTenant(ctx context.Context, tenantID string) error

type UserOrchestrator added in v1.7.0

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

func (*UserOrchestrator) CreateUser added in v1.7.0

func (u *UserOrchestrator) CreateUser(ctx context.Context, user *schema.User, opts ...Option) error

func (*UserOrchestrator) ValidateCreateUser added in v1.7.0

func (u *UserOrchestrator) ValidateCreateUser(ctx context.Context, user *schema.User, _ ...Option) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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