Documentation
¶
Index ¶
- Constants
- Variables
- func CreateLocalDefaults(ctx context.Context) error
- func EnsureLocalOrganization(ctx context.Context) (*schema.Organization, error)
- func EnsureLocalTenant(ctx context.Context, orgID string) (*schema.Tenant, error)
- func MigrateEmqx()
- func RekeyOrganization(ctx context.Context, oldID, newID string) error
- func RekeyTenant(ctx context.Context, oldID, newID string) error
- func Run()
- func ToSQLSchema() error
- type KVRecord
Constants ¶
View Source
const ( TableName_Users = "users" TableName_Networks = "networks" TableName_Hosts = "hosts" )
View Source
const ( TableName_PendingUsers = "pending_users" TableName_UserInvites = "user_invites" TableName_Nodes = "nodes" TableName_Acls = "acls" )
View Source
const ( TableName_ServerConf = "serverconf" TableName_Generated = "generated" TableName_ServerUUID = "serveruuid" TableName_EnrollmentKey = "enrollmentkeys" TableName_ServerSettings = "server_settings" )
View Source
const (
LegacyServerSettingsKey = "server_cfg"
)
Variables ¶
View Source
var ErrMigrationV160Required = errors.New(
"migration-v1.6.0 must complete on Netmaker v1.6.0 before upgrading to v1.7.0; " +
"deploy v1.6.0, restart the server successfully, then upgrade to v1.7.0",
)
ErrMigrationV160Required is returned when v1.7.0 migration is attempted before migration-v1.6.0 completed on a prior v1.6.0 deployment.
View Source
var SyncOrgAndTenants = CreateLocalDefaults
Functions ¶
func CreateLocalDefaults ¶ added in v1.7.0
func EnsureLocalOrganization ¶ added in v1.7.0
func EnsureLocalOrganization(ctx context.Context) (*schema.Organization, error)
func EnsureLocalTenant ¶ added in v1.7.0
func MigrateEmqx ¶ added in v0.24.0
func MigrateEmqx()
func RekeyOrganization ¶ added in v1.7.0
func ToSQLSchema ¶ added in v0.99.0
func ToSQLSchema() error
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.