Documentation
¶
Index ¶
- Constants
- func Bootstrap(skipFrontend bool, inCfg *config.Config) error
- func CreateToken() (string, error)
- func GC(inCfg *zrok_config.Config, opts GCOptions) error
- func HashPassword(password string) (*hashedPassword, error)
- func HealthCheckHTTP(w http.ResponseWriter, _ *http.Request)
- func RepairDialPolicies(cfg *zrok_config.Config, apply bool) error
- func RepairStore(inCfg *zrok_config.Config, opts RepairStoreOptions) error
- func Run(inCfg *config.Config) error
- func Unbootstrap(cfg *config.Config) error
- type GCOptions
- type RepairStoreOptions
Constants ¶
const DefaultGCMinAge = 24 * time.Hour
DefaultGCMinAge is how old an orphaned object must be before gc touches it. a day is well clear of clock skew between the ziti and zrok hosts, and with the leak stopped nothing younger needs reclaiming. any guard at all also keeps gc off a share whose ziti objects are allocated but whose row has not yet committed is never collected.
const DefaultRepairStoreBatch = 500
DefaultRepairStoreBatch is how many rows one repair transaction touches, small enough that no batch holds a long transaction on the store.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func GC ¶
func GC(inCfg *zrok_config.Config, opts GCOptions) error
GC reports, and with opts.Delete removes, the ziti objects carrying a zrokShareToken tag whose token belongs to no live share.
func HashPassword ¶
func HealthCheckHTTP ¶
func HealthCheckHTTP(w http.ResponseWriter, _ *http.Request)
func RepairDialPolicies ¶ added in v2.0.7
func RepairDialPolicies(cfg *zrok_config.Config, apply bool) error
RepairDialPolicies reports, and with apply creates, the dial service policies missing from live shares whose accounts the bandwidth limit journal does not hold limited.
func RepairStore ¶ added in v2.0.8
func RepairStore(inCfg *zrok_config.Config, opts RepairStoreOptions) error
RepairStore reports, and with opts.Apply repairs, the store rows a teardown would have released had it run: stranded environments and shares, access frontends of deleted shares, names of deleted accounts, unmapped allocated names, and share name and frontend mappings of deleted shares and names. it touches the store only: no ziti calls and no frontend notifications.
func Unbootstrap ¶
Types ¶
type RepairStoreOptions ¶ added in v2.0.8
Source Files
¶
- access.go
- accountDetail.go
- addFrontendGrant.go
- addNamespaceFrontendMapping.go
- addNamespaceGrant.go
- addOrganizationMember.go
- adminStore.go
- agentEnroll.go
- agentPing.go
- agentRemoteAccess.go
- agentRemoteShare.go
- agentRemoteStatus.go
- agentRemoteUnaccess.go
- agentRemoteUnshare.go
- agentShareHttpHealthcheck.go
- agentUnenroll.go
- applyLimitClasses.go
- bootstrap.go
- changePassword.go
- configuration.go
- controller.go
- createAccount.go
- createFrontend.go
- createIdentity.go
- createNamespace.go
- createOrganization.go
- createShareName.go
- deleteAccount.go
- deleteFrontend.go
- deleteFrontendGrant.go
- deleteIdentity.go
- deleteNamespace.go
- deleteOrganization.go
- deleteShareName.go
- disable.go
- enable.go
- environmentDetail.go
- frontendDetail.go
- gc.go
- getName.go
- healSeveredName.go
- health.go
- invite.go
- inviteTokenGenerate.go
- listAccesses.go
- listAllNames.go
- listAppliedLimitClasses.go
- listEnvironments.go
- listFrontendNamespaceMappings.go
- listFrontends.go
- listLimitClasses.go
- listMemberships.go
- listNamesForNamespace.go
- listNamespaceFrontendMappings.go
- listNamespaces.go
- listOrgMembers.go
- listOrganizationMembers.go
- listOrganizations.go
- listShareNamespaces.go
- listShares.go
- login.go
- maintenance.go
- mappingUpdates.go
- metrics.go
- orgAccountOverview.go
- overview.go
- passwords.go
- rateLimited.go
- regenerateAccountToken.go
- register.go
- removeAppliedLimitClasses.go
- removeNamespaceFrontendMapping.go
- removeNamespaceGrant.go
- removeOrganizationMember.go
- repairDialPolicies.go
- repairStore.go
- resetPassword.go
- resetPasswordEmail.go
- resetPasswordRequest.go
- share.go
- shareDetail.go
- skipInterstitialGrant.go
- sparkData.go
- sparklines.go
- startup.go
- teardownShare.go
- unaccess.go
- unbootstrap.go
- unshare.go
- updateAccess.go
- updateAccountPassword.go
- updateFrontend.go
- updateNamespace.go
- updateShare.go
- updateShareName.go
- util.go
- verify.go
- verifyEmail.go
- version.go
- zitiCompensation.go