mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-31 08:13:44 +00:00

Android is Linux, but that not much Linux. Updates #12614 Change-Id: Ice80bd3e3d173511c30d05a43d25a31e18928db7 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
27 lines
637 B
Go
27 lines
637 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build (ts_aws || (linux && (arm64 || amd64) && !android)) && !ts_omit_aws
|
|
|
|
package store
|
|
|
|
import (
|
|
"tailscale.com/ipn"
|
|
"tailscale.com/ipn/store/awsstore"
|
|
"tailscale.com/types/logger"
|
|
)
|
|
|
|
func init() {
|
|
registerAvailableExternalStores = append(registerAvailableExternalStores, registerAWSStore)
|
|
}
|
|
|
|
func registerAWSStore() {
|
|
Register("arn:", func(logf logger.Logf, arg string) (ipn.StateStore, error) {
|
|
ssmARN, opts, err := awsstore.ParseARNAndOpts(arg)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return awsstore.New(logf, ssmARN, opts...)
|
|
})
|
|
}
|