Logo
Explore Help
Register Sign In
kairos/kairos-agent
1
0
Fork 0
You've already forked kairos-agent
mirror of https://github.com/kairos-io/kairos-agent.git synced 2025-09-02 17:45:10 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
f1854306694992849463bb6a049cfb50b87e7b10
kairos-agent/internal/utils/token.go

14 lines
249 B
Go
Raw Normal View History

Split off cli into separate binaries (#37) * :art: Split off cli into separate binaries This commit splits off the cli into 3 binaries: - agent - cli - provider The provider now is a separate component that can be tested by itself and have its own lifecycle. This paves the way to a ligher c3os variant, HA support and other features that can be provided on runtime. This is working, but still there are low hanging fruit to care about. Fixes #14 * :robot: Add provider bin to releases * :gear: Handle signals * :gear: Reduce buildsize footprint * :art: Scan for providers also in /system/providers * :robot: Run goreleaser * :art: Refactoring
2022-07-04 22:39:34 +02:00
package utils
import "strings"
const sep = "_CREDENTIALS_"
func EncodeRecoveryToken(data ...string) string {
return strings.Join(data, sep)
}
func DecodeRecoveryToken(recoverytoken string) []string {
return strings.Split(recoverytoken, sep)
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 286ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API