Documentation
¶
Index ¶
- Variables
- func InitializeRepository(extFactory *extensions.Factory)
- type NetworkOrchestrator
- func (n *NetworkOrchestrator) AllocateExtclientIP(ctx context.Context, network *schema.Network) (net.IP, error)
- func (n *NetworkOrchestrator) AllocateExtclientIPv6(ctx context.Context, network *schema.Network) (net.IP, error)
- func (n *NetworkOrchestrator) AllocateNodeIP(ctx context.Context, network *schema.Network) (net.IP, error)
- func (n *NetworkOrchestrator) AllocateNodeIPv6(ctx context.Context, network *schema.Network) (net.IP, error)
- func (n *NetworkOrchestrator) FreeIPv4Reservation(networkID, ip string)
- func (n *NetworkOrchestrator) FreeIPv6Reservation(networkID, ip string)
- func (n *NetworkOrchestrator) IsIPv4Unique(ctx context.Context, network *schema.Network, ip string) bool
- func (n *NetworkOrchestrator) IsIPv6Unique(ctx context.Context, network *schema.Network, ip string) bool
- type NodeOrchestrator
- func (n *NodeOrchestrator) CreateGateway(ctx context.Context, node *schema.Node, options ...Option) error
- func (n *NodeOrchestrator) CreateNode(ctx context.Context, host *schema.Host, network *schema.Network, ...) (*schema.Node, error)
- func (n *NodeOrchestrator) ValidateCreateGateway(ctx context.Context, node *schema.Node, options ...Option) error
- type Option
- func SkipHostUpdate() Option
- func SkipNodeUpdate() Option
- func SkipPublishPeerUpdate() Option
- func UseKey(key *schema.EnrollmentKey) Option
- func WithInheritedAuth() Option
- func WithInternetGateway(igwClients []string) Option
- func WithRelayedClients(relayedClients []string) Option
- func WithReplicatedAuth() Option
- func WithTcpProxy(enabled bool, listenPort int, tlsMode, listenAddr, publicHostname string) Option
- type Options
- type Repository
- type TenantOrchestrator
- func (t *TenantOrchestrator) CreateDefaultTenant(ctx context.Context, orgID string) (*schema.Tenant, error)
- func (t *TenantOrchestrator) CreateTenant(ctx context.Context, tenant *schema.Tenant) error
- func (t *TenantOrchestrator) GrantTenantSuperAdmin(ctx context.Context, tenant *schema.Tenant, user *schema.User) error
- func (t *TenantOrchestrator) TeardownTenant(ctx context.Context, tenantID string) error
- type UserOrchestrator
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidOrgRoles = map[schema.UserRoleID]bool{ schema.OrgOwner: true, schema.OrgAdmin: true, }
ValidOrgRoles are the platform roles that may be assigned to a user within an organization.
View Source
var ValidTenantRoles = map[schema.UserRoleID]bool{ schema.SuperAdminRole: true, schema.AdminRole: true, schema.PlatformUser: true, schema.ServiceUser: true, schema.Auditor: true, }
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 (*NetworkOrchestrator) AllocateExtclientIPv6 ¶
func (*NetworkOrchestrator) AllocateNodeIP ¶
func (*NetworkOrchestrator) AllocateNodeIPv6 ¶
func (*NetworkOrchestrator) FreeIPv4Reservation ¶
func (n *NetworkOrchestrator) FreeIPv4Reservation(networkID, ip string)
func (*NetworkOrchestrator) FreeIPv6Reservation ¶
func (n *NetworkOrchestrator) FreeIPv6Reservation(networkID, ip string)
func (*NetworkOrchestrator) IsIPv4Unique ¶
func (*NetworkOrchestrator) IsIPv6Unique ¶
type NodeOrchestrator ¶
type NodeOrchestrator struct {
// contains filtered or unexported fields
}
func (*NodeOrchestrator) CreateGateway ¶
func (*NodeOrchestrator) CreateNode ¶
func (*NodeOrchestrator) ValidateCreateGateway ¶
type Option ¶
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 WithRelayedClients ¶
func WithReplicatedAuth ¶ added in v1.7.0
func WithReplicatedAuth() Option
func WithTcpProxy ¶ added in v1.7.0
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 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 (*TenantOrchestrator) CreateTenant ¶ added in v1.7.0
func (*TenantOrchestrator) GrantTenantSuperAdmin ¶ added in v1.7.0
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 (*UserOrchestrator) ValidateCreateUser ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.